flake8 --per-file-ignores='tests/*:S101' .

Category: Python & pip

flake8 --per-file-ignores='tests/*:S101' .

Ignore specific codes only in certain files or directories

Ignores specific codes only for specific file patterns — e.g. allow assert in test files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.