Skip to content

Commit

Permalink
chore: Add [tool.ruff.lint] section
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 29, 2024
1 parent e5fc70c commit 2f0197c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 119
select = ["ALL"]
target-version = "py310"

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", "COM", "EM",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
Expand All @@ -16,10 +18,10 @@ ignore = [
"PYI024", # Python 3.10 has no generic namedtuples
]

[tool.ruff.flake8-builtins]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["copyright"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"docs/conf.py" = ["INP001"] # no __init__.py file
"tests/*" = [
"D", # docstring
Expand Down

0 comments on commit 2f0197c

Please sign in to comment.