Excluding Files and Folders

Qlty is Git aware and always excludes .gitignore’d files. Additionally, we provide multiple ways to exlcude files from analysis.

Using exclude_patterns in qlty.toml

Files and path patterns can also be excluded in your project configuration (.qlty/qlty.toml) using the exclude_patterns key at the top level. For example:

1# ..
2
3exclude_patterns = ["some/file.py", "**/fixtures/**"]
4
5# ...

Files that are excluded like this are not processed by any static analysis.

exclude_patterns applies to static analysis only. To exclude files from code coverage reporting, you’ll need to configure exclusions within your local coverage tool where coverage data is generated. See Excluding Files from Coverage for details.

See Also