Skip to content

Commit

Permalink
Add pyproject.toml for Ruff and Black
Browse files Browse the repository at this point in the history
  • Loading branch information
bgottula committed Jul 7, 2024
1 parent f403b97 commit aec270f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tool.black]
line-length = 100
target-version = ["py310"]
skip-string-normalization = true
preview = true

[tool.ruff]
line-length = 100
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
"C", # mccabe complexity
]

[tool.ruff.pydocstyle]
convention = "google"

[tool.ruff.lint.per-file-ignores]
# Ignore missing docstrings in tests
"tests/*" = ["D"]

0 comments on commit aec270f

Please sign in to comment.