Skip to content

Commit d9f67ab

Browse files
committed
Fix lint
1 parent 9957b1a commit d9f67ab

File tree

1 file changed

+40
-25
lines changed

1 file changed

+40
-25
lines changed

pyproject.toml

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ exclude = [
117117
"pipenv/vendor/*",
118118
]
119119

120-
select = [
120+
lint.select = [
121121
"ASYNC",
122122
"B",
123123
"C4",
@@ -136,30 +136,45 @@ select = [
136136
"W",
137137
"YTT",
138138
]
139-
ignore = [
140-
"B904",
141-
"PIE790",
142-
"PLR5501",
143-
"PLW2901",
144-
]
145-
pylint.allow-magic-value-types = [ "int", "str" ]
146-
pylint.max-args = 20
147-
pylint.max-branches = 38
148-
pylint.max-returns = 9
149-
pylint.max-statements = 155
150-
mccabe.max-complexity = 44
151-
per-file-ignores."docs/conf.py" = [ "E402", "E501" ]
152-
per-file-ignores."get-pipenv.py" = [ "E402" ]
153-
per-file-ignores."pipenv/__init__.py" = [ "E401" ]
154-
per-file-ignores."pipenv/cli/command.py" = [ "TID252" ]
155-
per-file-ignores."pipenv/utils/internet.py" = [ "PLW0603" ]
156-
per-file-ignores."pipenv/utils/resolver.py" = [ "B018" ]
157-
per-file-ignores."tests/*" = [ "E501", "F401", "I", "PLC1901", "S101" ]
158-
per-file-ignores."tests/integration/conftest.py" = [ "B003", "PIE800", "PLW0603" ]
159-
per-file-ignores."tests/integration/test_pipenv.py" = [ "E741" ]
160-
per-file-ignores."tests/integration/test_requirements.py" = [ "E741" ]
161-
per-file-ignores."tests/unit/test_funktools.py" = [ "B015" ]
162-
per-file-ignores."tests/unit/test_utils.py" = [ "F811" ]
139+
lint.ignore = [ "B904", "PIE790", "PLR5501", "PLW2901" ]
140+
lint.per-file-ignores = { "pipenv/cli/command.py" = [
141+
"F811",
142+
], "pipenv/__init__.py" = [
143+
"E402",
144+
"E501",
145+
], "pipenv/utils/shell.py" = [
146+
"E402",
147+
], "pipenv/utils/internet.py" = [
148+
"E401",
149+
], "pipenv/utils/dependencies.py" = [
150+
"TID252",
151+
], "pipenv/vendor/requirementslib/models/requirements.py" = [
152+
"PLW0603",
153+
], "pipenv/vendor/requirementslib/models/utils.py" = [
154+
"B018",
155+
], "pipenv/project.py" = [
156+
"E501",
157+
"F401",
158+
"I",
159+
"PLC1901",
160+
"S101",
161+
], "pipenv/cli/options.py" = [
162+
"B003",
163+
"PIE800",
164+
"PLW0603",
165+
], "pipenv/utils/processes.py" = [
166+
"E741",
167+
], "pipenv/vendor/vistir/misc.py" = [
168+
"E741",
169+
], "pipenv/vendor/pythonfinder/models/python.py" = [
170+
"B015",
171+
] }
172+
lint.mccabe.max-complexity = 44
173+
lint.pylint.allowed-redefined-builtins = [ "int", "str" ]
174+
lint.pylint.max-args = 9
175+
lint.pylint.max-branches = 20
176+
lint.pylint.max-returns = 38
177+
lint.pylint.max-statements = 155
163178

164179
[tool.pyproject-fmt]
165180
# after how many column width split arrays/dicts into multiple lines, 1 will force always

0 commit comments

Comments
 (0)