File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ load-plugins = [
3636```
3737
3838## Usage
39- Add list of patterns and codes you would like to ignore.
39+ Add a list of patterns and codes you would like to ignore.
4040The patterns are matched using [ globs] ( https://docs.python.org/3/library/glob.html ) .
41-
41+ The config is parsed based on newlines, meaning each line should follow the pattern ` <file-pattern>:<rule1>,<rule2> ` .
42+ Newlines between rules are not supported.
4243
4344> Prior to v2.0.0, ` pylint-per-file-ignores ` did not use globs but regex.
4445> When migrating, please check your configuration carefully.
@@ -68,6 +69,16 @@ per-file-ignores = [
6869]
6970```
7071
72+ Please note, that for non-toml files newlines are important.
73+ For example, the following won't parse as expected
74+
75+ ``` ini
76+ [pylint.MESSAGES CONTROL]
77+ per-file-ignores =
78+ /folder_1/*:missing-function-docstring,
79+ missing-class-docstring
80+ ```
81+
7182## Development
7283This project uses ` uv ` .
7384To setup a venv for development use
You can’t perform that action at this time.
0 commit comments