You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my ci pipeline i'm linting only on changed files, so i first get a list of files, then apply it to flake8 $FILES command, and it completely ignores what i have in config file's exclude section (alembic migrations files in my case)
i see in a code, this behavior is intentional, could we discuss a rationale behind this? since the ticket is still open, i guess it's a place for debates. @asottile
Activity
vosi commentedon Sep 23, 2025
getting same problem with current flake
in my ci pipeline i'm linting only on changed files, so i first get a list of files, then apply it to
flake8 $FILEScommand, and it completely ignores what i have in config file'sexcludesection (alembic migrations files in my case)will this be fixed?
vosi commentedon Sep 23, 2025
i see in a code, this behavior is intentional, could we discuss a rationale behind this? since the ticket is still open, i guess it's a place for debates.
@asottile
asottile commentedon Sep 23, 2025
if you've explicitly listed a file on the commandline the expectation is that you explicitly want to lint it
this particular issue is unrelated to that -- it's about an inconsistency where file exclude is still applied in some cases (but shouldn't be)
vosi commentedon Sep 23, 2025
aha, sorry, have inaccurately read .4