Skip to content

Commit

Permalink
repo: Update the ruff tool config
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Sep 8, 2023
1 parent 838dca8 commit 0b54c62
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,23 @@ underlines = ["", "", ""]
name = "Miscellaneous"
showcontent = true

[tool.black]
[tool.ruff]
line-length = 85
src = ["src"]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
# "C", # flake8-comprehensions
# "B", # flake8-bugbear
]
ignore = ["E203","E731","E501"]

[tool.ruff.isort]
known-first-party = ["callosum"]
known-local-folder = ["src"]
split-on-trailing-comma = true

[tool.isort]
profile = "black"
line_length = 85
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = ["callosum"]
[tool.black]
line-length = 85

0 comments on commit 0b54c62

Please sign in to comment.