-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (67 loc) · 1.69 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[project]
name = "xenforo-links-archive"
dependencies = [
"fastapi>=0.115.6",
"pydantic>=2.10.4",
"rich>=13.9.4",
"uvicorn>=0.34.0",
"yarl>=1.18.3"
]
description = "To use with CDL"
readme = "README.md"
requires-python = ">=3.12"
version = "0.1.0"
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"ASYNC", # async calls that do not await anything or use blocking methods
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM8", # flake8-commas linter
"E", # pycodestyle errors
"F", # pyflakes
"FA102", # future annotations
"I", # isort
"N", # PEP8 naming conventions
"PTH", # use pathlib instead of os
"Q", # flake8-quotes
"RUF", # RUF specific fixes
"T20", # flake8-print
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W" # pycodestyle warnings
]
extend-safe-fixes = [
"TC" # move import from and to TYPE_CHECKING blocks
]
ignore = [
"COM812", # missing-trailing-comma
"E501", # suppress line-too-long, let formatter decide
"N806" # uppercase variables in functions
]
unfixable = [
"ERA" # do not autoremove commented out code
]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs}/*" = [
"E402", # imports not at the top of the file.
"T20" # flake8-print
]
"__init__.py" = ["E402"] # imports not at the top of the file.
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
ignore_case = true
in_place = true
sort_first = ["name", "project", "select", "tool"]
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4
[dependency-groups]
dev = [
"pre-commit>=4.0.1",
"ruff>=0.8.6"
]