Title: ignoring previous errors by flakehell [flaskhell baseline not taken into account] · Issue #32 · flakehell/flakehell · GitHub
Open Graph Title: ignoring previous errors by flakehell [flaskhell baseline not taken into account] · Issue #32 · flakehell/flakehell
X Title: ignoring previous errors by flakehell [flaskhell baseline not taken into account] · Issue #32 · flakehell/flakehell
Description: I am trying to make flakehell lint command ignore previous errors and warnings. I just created a main.py file with a code that is not clean: from sys import * unused_var = 55 used = 45 addition =66 def Somme(addnumberoneinordertogenerate...
Open Graph Description: I am trying to make flakehell lint command ignore previous errors and warnings. I just created a main.py file with a code that is not clean: from sys import * unused_var = 55 used = 45 addition =66...
X Description: I am trying to make flakehell lint command ignore previous errors and warnings. I just created a main.py file with a code that is not clean: from sys import * unused_var = 55 used = 45 addition =66...
Opengraph URL: https://github.com/flakehell/flakehell/issues/32
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ignoring previous errors by flakehell [flaskhell baseline not taken into account]","articleBody":"I am trying to make flakehell lint command ignore previous errors and warnings. I just created a main.py file with a code that is not clean:\r\n`from sys import *\r\nunused_var = 55\r\nused = 45\r\naddition =66\r\ndef Somme(addnumberoneinordertogenerateanerror, b):\r\n return addnumberoneinordertogenerateanerror+b\r\nprint(Somme(used, addition))`\r\n\r\nmy pyproject.toml file\r\n`[tool.flakehell]\r\nbaseline = \"baseline.txt\"\r\nformat = \"grouped\"\r\nmax_line_length = 88\r\n[tool.flakehell.plugins]\r\npycodestyle = [\"+*\"]\r\n\"flake8-*\" = [\"+*\"]\r\npep8-naming = [\"+*\"]\r\npyflakes = [\"+*\"]\r\npylint = [\"+*\"]`\r\n\r\nwhen I run flakehell lint command I get this output:\r\n\r\n`(venv) PS C:\\Dev_workspace\\tests_and_Tuto\\flakehell\u003e flakehell lint\r\n.\\main.py\r\n 5: 11 E225 missing whitespace around operator [pycodestyle]\r\n 8: 48 E226 missing whitespace around arithmetic operator [pycodestyle]\r\n 7: 1 E302 expected 2 blank lines, found 1 [pycodestyle]\r\n 10: 1 E305 expected 2 blank lines after class or function definition, found 1 [pycodestyle]\r\n 10: 29 W292 no newline at end of file [pycodestyle]\r\n 1: 1 F401 'sys.*' imported but unused [pyflakes]\r\n 1: 1 F403 'from sys import *' used; unable to detect undefined names [pyflakes]`\r\n\r\nI ran the command:\r\n\r\n `flakehell baseline \u003e baseline.txt`\r\n\r\nand this generated a file baseline.txt that I have added it to [tool.flakehell] in pyproject.toml file when I run\r\n\r\nflakehell lint\r\nI am getting the same previous output, while I am expecting to get nothing since the previous errors must be ignored because of the baseline.txt file.\r\n\r\nwhat am I doing wrong in that case?\r\n\r\nother thing to mention I have these versions installed (I need to work with them for a bigger project):\r\n\r\npython 3.10.0\r\nflake8 3.9.0\r\nflakehell 0.8.0","author":{"url":"https://github.com/arijbt","@type":"Person","name":"arijbt"},"datePublished":"2024-02-14T15:53:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/32/flakehell/issues/32"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e6edcb0-591c-07e1-3bfc-d684d73a9f85 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDCA:1352F2:20839D7:29AE174:6990108C |
| html-safe-nonce | f769150bc6b304efd1482309fd1926a1ebb23cd1562437c0bbc852b163f1812c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRENBOjEzNTJGMjoyMDgzOUQ3OjI5QUUxNzQ6Njk5MDEwOEMiLCJ2aXNpdG9yX2lkIjoiNjQ0NjAxNDE1ODAxMzk5MzEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aed6bfd990b8f505a085da18335cedadec2b3b2f7ed95f55d780c08205738967 |
| hovercard-subject-tag | issue:2134661993 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/flakehell/flakehell/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b33ad054832f5a51927374b6a54510e71b0aff70e01e2b191ab04c96255f79d/flakehell/flakehell/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b33ad054832f5a51927374b6a54510e71b0aff70e01e2b191ab04c96255f79d/flakehell/flakehell/issues/32 |
| og:image:alt | I am trying to make flakehell lint command ignore previous errors and warnings. I just created a main.py file with a code that is not clean: from sys import * unused_var = 55 used = 45 addition =66... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arijbt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/flakehell/flakehell git https://github.com/flakehell/flakehell.git |
| octolytics-dimension-user_id | 77460385 |
| octolytics-dimension-user_login | flakehell |
| octolytics-dimension-repository_id | 335882057 |
| octolytics-dimension-repository_nwo | flakehell/flakehell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 335882057 |
| octolytics-dimension-repository_network_root_nwo | flakehell/flakehell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width