Skip to content

Commit

Permalink
Modernize ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jul 15, 2024
1 parent 0c255e9 commit feb031c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ line_length = 110
write_to = "python/lsst/daf/butler_migrate/version.py"

[tool.ruff]
target-version = "py311"
line-length = 110
exclude = [
"__init__.py",
"migrations/*/*.py",
]

[tool.ruff.lint]
ignore = [
"N802",
"N803",
Expand All @@ -85,7 +89,6 @@ ignore = [
"D205",
"D400",
]
line-length = 110
select = [
"E", # pycodestyle
"F", # pycodestyle
Expand All @@ -95,15 +98,14 @@ select = [
"UP",
"C4",
]
target-version = "py311"
extend-select = [
"RUF100", # Warn about unused noqa
]

[tool.ruff.pycodestyle]
[tool.ruff.lint.pycodestyle]
max-doc-length = 79

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.pytest.ini_options]
Expand Down

0 comments on commit feb031c

Please sign in to comment.