Skip to content

Commit e562335

Browse files
committed
Move Ruff config to pyproject.toml
1 parent 4a7eb64 commit e562335

2 files changed

Lines changed: 30 additions & 34 deletions

File tree

‎.ruff.toml‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎pyproject.toml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
[tool.ruff]
2+
target-version = "py313" # Pin Ruff to Python 3.13
3+
line-length = 88
4+
output-format = "full"
5+
format.preview = true
6+
format.docstring-code-format = true
7+
lint.select = [
8+
"B", # flake8-bugbear
9+
"C4", # flake8-comprehensions
10+
"E", # pycodestyle
11+
"F", # pyflakes
12+
"FA", # flake8-future-annotations
13+
"FLY", # flynt
14+
"G", # flake8-logging-format
15+
"I", # isort
16+
"N", # pep8-naming
17+
"PERF", # perflint
18+
"PGH", # pygrep-hooks
19+
"PT", # flake8-pytest-style
20+
"TC", # flake8-type-checking
21+
"UP", # pyupgrade
22+
"W", # pycodestyle
23+
]
24+
lint.ignore = [
25+
"E501", # Ignore line length errors (we use auto-formatting)
26+
]
27+
lint.flake8-type-checking.exempt-modules = []
28+
lint.flake8-type-checking.strict = true
29+
lint.preview = true
30+
131
[tool.pytest]
232
minversion = "9.0"
333
pythonpath = [ "." ]

0 commit comments

Comments
 (0)