Files not being excluded via Atom, but command line flake8 does
See original GitHub issueThis is the setup.cfg
file. I know that the linter reads the file because ignore
is honored so there’s something going on with the exclude
. The first screenshot shows the linter raising an error in apollo/config/settings/local.py
while the second screenshot clearly shows that this file was ignored. Let me know what additional info is needed.
Using Mac OS, virtualenvwrapper
[flake8]
ignore = D100, D210, D400, D413
exclude =
.git,
__pycache__,
__init__.py,
*/migrations/*,
apollo/config/settings/*.py,
apollo/manage.py
max-line-length = 99
max-complexity = 10
Location of flake8
: ~/Developer/.virtualenvs/apollo/bin/flake8
Project structure
.
├── apollo
│ ├── config
│ │ ├── __init__.py
│ │ ├── settings
│ │ │ ├── __init__.py
│ │ │ ├── base.py
│ │ │ ├── local.py
│ │ │ ├── production.py
│ │ │ ├── settings.py
│ │ │ ├── staging.py
│ │ │ └── test.py
│ │ ├── urls.py
│ │ └── wsgi.py
│ └── manage.py
└── setup.cfg
Screenshots
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Can linter-flake8 ignore files by using a project-wide .flake8rc?
I'm using Atom and linter-flake8 for my project. I have a set of huge generated Python files and I want them ignored by...
Read more >Configuring Flake8 — flake8 6.0.0 documentation
Each command-line option that you want to specify in your config file can be named in either of two ways: Using underscores (...
Read more >Important notes 1.x — Borg - Deduplicating Archiver 2.0.0b5 ...
In case your OS does not provide Python >= 3.8, consider using our binary, ... cmd line arg; complement the documentation for pattern...
Read more >How to run python script in git bash - Caritas Castellaneta
But what usually will end up in a bash or batch file, can be also done in Python. ... Although, the command's result...
Read more >Changelog — Python 3.11.1 documentation
gh-99886: Fix a crash when an object which does not have a dictionary frees its ... tags found in configuration files when no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am looking into this.
@lucasdf Ideally these providers should be “the same as running the tool in the CLI”, unfortunately what that actually means can get really tricky. I generally follow the rules of:
Which one of those a provider falls under is just the start of the trickiness 😉.
I think this provider should follow the second one, unless this issue is describing a situation where that doesn’t match what running
flake8
in the CLI does, in which case we may need to change it?