mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Move linter config from deprecated top-level to own section
This commit is contained in:
parent
1acaf20f72
commit
3bcc7072d6
|
@ -96,7 +96,7 @@ config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable"
|
||||||
test-command = "cd {project} && .github/workflows/wheels-test.sh"
|
test-command = "cd {project} && .github/workflows/wheels-test.sh"
|
||||||
test-extras = "tests"
|
test-extras = "tests"
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
"C4", # flake8-comprehensions
|
"C4", # flake8-comprehensions
|
||||||
"E", # pycodestyle errors
|
"E", # pycodestyle errors
|
||||||
|
@ -118,11 +118,11 @@ extend-ignore = [
|
||||||
"E241", # Multiple spaces after ','
|
"E241", # Multiple spaces after ','
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"Tests/oss-fuzz/fuzz_font.py" = ["I002"]
|
"Tests/oss-fuzz/fuzz_font.py" = ["I002"]
|
||||||
"Tests/oss-fuzz/fuzz_pillow.py" = ["I002"]
|
"Tests/oss-fuzz/fuzz_pillow.py" = ["I002"]
|
||||||
|
|
||||||
[tool.ruff.isort]
|
[tool.ruff.lint.isort]
|
||||||
known-first-party = ["PIL"]
|
known-first-party = ["PIL"]
|
||||||
required-imports = ["from __future__ import annotations"]
|
required-imports = ["from __future__ import annotations"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user