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 26, 2024
1 parent 87bb2d4 commit 2f1e2df
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,28 @@ 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 = 2
lines_after_imports = 2
combine_as_imports = true
force_sort_within_sections = true

0 comments on commit 2f1e2df

Please sign in to comment.