6.NUR/ci/pyproject.toml
Gavin John fac45f20ff pyproject.toml: Move relevant pyproject entries into lint subsection
According to `ruff check .`:

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
2024-11-22 18:59:35 +00:00

31 lines
516 B
TOML

[tool.ruff]
target-version = "py311"
line-length = 88
lint.select = ["E", "F", "I"]
lint.ignore = ["E501"]
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
)/
'''
[tool.mypy]
python_version = "3.11"
warn_redundant_casts = true
disallow_untyped_calls = true
disallow_untyped_defs = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = "setuptools.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true