1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 01:25:11 +01:00

Ruff config and such

This commit is contained in:
2024-02-11 21:24:46 +01:00
parent a3cdccdb8a
commit 0351760d3f

View File

@@ -48,8 +48,14 @@ exclude = [
"example_config/gunicorn_digimarks_conf.py", "example_config/gunicorn_digimarks_conf.py",
"example_config/settings.py", "example_config/settings.py",
] ]
ignore = ["D203"]
line-length = 120 line-length = 120
[tool.ruff.format]
# Prefer single quotes over double quotes
quote-style = "single"
[tool.ruff.lint]
ignore = ["D203", "D213"]
select = [ select = [
"C9", "C9",
"D", "D",
@@ -58,14 +64,10 @@ select = [
"W", "W",
] ]
[tool.ruff.flake8-quotes] [tool.ruff.lint.flake8-quotes]
docstring-quotes = "double" docstring-quotes = "double"
inline-quotes = "single" inline-quotes = "single"
multiline-quotes = "double" multiline-quotes = "double"
[tool.ruff.format] [tool.ruff.lint.mccabe]
# Prefer single quotes over double quotes
quote-style = "single"
[tool.ruff.mccabe]
max-complexity = 10 max-complexity = 10