Skip to content

Commit

Permalink
Better comments in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton authored and mkolopanis committed Jul 22, 2024
1 parent 14a8f8e commit 3447fa0
Showing 1 changed file with 20 additions and 36 deletions.
56 changes: 20 additions & 36 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,47 +67,31 @@ addopts = "--ignore=scripts"

[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pycodestyle warnings
"W",
# Pyflakes
"F",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# pep8-naming
"N",
# flake8-simplify
"SIM",
# isort
"I",
# McCabe complexity. Consider for the future
# "C90"
"E", # pycodestyle
"W", # pycodestyle warnings
"F", # Pyflakes
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"N", # pep8-naming
"SIM", # flake8-simplify
"I", # isort
# "C90", # McCabe complexity. Consider for the future
]
ignore = [
"E203",
"D107",
"N803",
"N806",
"B028",
"SIM108",
"D203",
"D212",
"N806", # non-lowercase variable (we use N* for axes lengths)
"B028", # no-explicit-stacklevel for warnings
"SIM108", # prefer ternary opperators. I find them difficult to read.
"D203", # one-blank-line-before-class. we use two.
"D212", # multi-line-summary-first-line. We put it on the second line.
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["D"]
"docs/*.py" = ["D", "A"]
"setup.py" = ["D"]
"tests/*" = ["D"] # Don't require docstrings for tests
"docs/*.py" = ["D", "A"] # Don't require docstrings or worry about builtins for docs
"setup.py" = ["D"] # Don't require docstrings for setup.py

[tool.ruff.format]
skip-magic-trailing-comma = true
Expand Down

0 comments on commit 3447fa0

Please sign in to comment.