Skip to content

Commit

Permalink
ruff: T6583: Added settings for ruff
Browse files Browse the repository at this point in the history
Ruff settings help to write code in the same style for all contributors. These
settings are compatible with requirements used in another very (if not the most)
popular code formatter - black, except using a single quote, to keep the style
also compatible with what we have now.
  • Loading branch information
zdc committed Jul 15, 2024
1 parent 79d5230 commit 3f0e48b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Same as Black.
line-length = 88
indent-width = 4

# Assume Python 3.11
target-version = "py311"

[format]
quote-style = "single"

# Like Black, indent with spaces, rather than tabs.
indent-style = "space"

# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

0 comments on commit 3f0e48b

Please sign in to comment.