Added Ruff config.
Some checks failed
CI / Linux C++ (clang++, ubuntu-22.04) (push) Has been cancelled
CI / Linux C++ (clang++, ubuntu-24.04) (push) Has been cancelled
CI / Linux C++ (g++, ubuntu-22.04) (push) Has been cancelled
CI / Linux C++ (g++, ubuntu-24.04) (push) Has been cancelled
CI / Pylint (push) Has been cancelled
CI / Ruff (push) Has been cancelled
CI / Linux Python (ubuntu-22.04, 3.7) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, 3.10) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, 3.11) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, 3.12) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, 3.13) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, 3.8) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, 3.9) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, pypy3.10) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, pypy3.6) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, pypy3.7) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, pypy3.8) (push) Has been cancelled
CI / Linux Python (ubuntu-latest, pypy3.9) (push) Has been cancelled

This commit is contained in:
Teal Dulcet
2025-07-01 06:20:56 -07:00
parent e94e99b837
commit 271da89153
9 changed files with 95 additions and 18 deletions

79
python/pyproject.toml Normal file
View File

@@ -0,0 +1,79 @@
[tool.ruff]
line-length = 132 # 88
indent-width = 4
target-version = "py37"
preview = true
output-format = "concise"
[tool.ruff.lint]
select = [
"F",
"E4",
"E7",
"E9",
"W",
"I",
"D",
"UP",
"YTT",
"ANN",
"S",
"BLE",
"B",
"A",
"COM819",
"C4",
"T10",
"EM",
"EXE",
"ISC",
"ICN",
"G",
"PIE",
"PYI",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TC",
"ARG",
"PGH",
"PL",
"TRY",
"FLY",
"PERF",
"FURB",
"LOG",
"RUF"
]
ignore = [
"W191",
"D211",
"D213",
"D401",
"PLR09",
"PLR1702",
"PLR2004",
"FURB101",
"FURB167",
"RUF001",
"RUF002",
"RUF003",
"RUF023"
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
skip-magic-trailing-comma = true