Skip to content

Commit

Permalink
Add ruff, black & isort configs
Browse files Browse the repository at this point in the history
Not mandated, but for use if wanted (e.g. using "format selection" in IDEs).
Chosen defaults that best match our current style.
  • Loading branch information
MetRonnie committed Sep 25, 2024
1 parent 87bb2d4 commit c3ca6ab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,27 @@ showcontent = true
directory = "fix"
name = "🔧 Fixes"
showcontent = true


# Not mandated to use these tools, but if you do:

[tool.ruff]
line-length = 79
target-version = "py37"

[tool.ruff.format]
quote-style = "preserve"


[tool.black]
line-length = 79
target-version = ['py37']
skip-string-normalization = true


[tool.isort]
profile = "black"
line_length = 79
force_grid_wrap = 4
lines_after_imports = 2
combine_as_imports = true

0 comments on commit c3ca6ab

Please sign in to comment.