Skip to content

Commit

Permalink
feat(dx): add ruff config.
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Mar 4, 2023
1 parent 66c6793 commit effa2e3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,27 @@ sphinx-autodoc-typehints = "^1.11.1"
recommonmark = "^0.7.1"
sphinx_rtd_theme = "^0.5.1"

[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
# "D", # pydocstyle
"UP", # pyupgrade
"C", # flake8-comprehensions
"B", # flake8-bugbear
"PT", # flake8-pytest-style
"RUF" # ruff specific rules
]
ignore = [
"E501", # line too long - let black handle.
"C901", # too complex
"C408", # rewrite as literal; makes comprehensions harder sometimes imo
]
line-length = 100
target-version = 'py38'
src = ['pydngconverter']

[tool.black]
line-length = 100
Expand Down

0 comments on commit effa2e3

Please sign in to comment.