-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (94 loc) · 2.3 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (94 loc) · 2.3 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tool.uv.workspace]
members = ["packages/*"]
[tool.ruff]
fix = true
target-version = "py310"
[tool.ruff.lint]
preview = true
extend-select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"CPY", # flake8-copyright
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"ERA", # flake8-eradicate/eradicate
"EXE", # flake8-executable
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PGH", # pygrep
"PIE", # flake8-pie
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff checks
"SIM", # flake8-simplify
"T10", # flake8-debugger
"TC", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
]
ignore = ["missing-trailing-comma", "try-consider-else", "missing-copyright-notice"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = false
lines-between-types = 1
lines-after-imports = 2
order-by-type = true
relative-imports-order = "closest-to-furthest"
extra-standard-library = ["typing"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.per-file-ignores]
"packages/portal/**/*.py" = [
"function-call-in-default-argument",
"complex-structure",
"raw-string-in-exception",
"f-string-in-exception",
"error-suffix-on-exception-name",
"unused-async",
"typing-only-first-party-import",
"typing-only-third-party-import",
"typing-only-standard-library-import",
"raise-vanilla-args",
]
[[tool.mypy.overrides]]
module = ["asyncpg", "fetch.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
# Apply asyncio support to every async test.
asyncio_mode = "auto"
testpaths = ["tests"]
[dependency-groups]
dev = [
"djlint==1.44.1",
"httpx2>=2.9.1",
"mypy>=2.3.0",
"pyinstaller>=6.21.0",
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"ruff==0.16.2",
]