This repository was archived by the owner on Feb 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (74 loc) · 2.48 KB
/
pyproject.toml
File metadata and controls
79 lines (74 loc) · 2.48 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
[project]
name = "django-xtdb"
description = "XTDB database backend for Django"
version = "0.0.1"
license = {text = "EUPL"}
requires-python = ">= 3.11"
dependencies = [
"django >= 5.2",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"Operating System :: OS Independent",
]
[tool.mypy]
strict = true
[tool.ruff]
fix = true
extend-exclude = [
"__pycache__"
]
line-length = 120
# Support Python 3.11 and higher
target-version = "py311"
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = [
"ALL",
]
ignore = [
"A003", # Built-in shadowing is usually not a problem and some built-ins have very generic names
"ANN401", # Sometimes Any is needed
"ARG002", # The Django APIs have unused arguments
"D1", # Docstrings shouldn't be required for everything
"COM812", # Incompatible with formatter
"D203", # Incompatible with formatter
"D212", # Incompatible with D213
"EM", # Not a problem
"FIX", # Comments indicating todos are useful
"FBT001", # We can't fix the Django APIs
"FBT002", # We can't fix the Django APIs
"PLR2004", # False positives
"PLR5501", # Not always better
"RET505", # If/else can be more readable by showing intent
"RET508", # If/else can be more readable by showing intent
"SIM102", # Nested if statement are sometimes useful for better code understanding
"SIM103", # Creating long return statements is often less readable
"SIM108", # Ternary operator is not always more readable
"SIM114", # This is not always easier to understand
"S101", # Assert use is normal in pytest tests
"S104", # Binding to all is normal in containers
"S105", # Disabled because of false positives
"S106", # Disabled because of false positives
"S308", # Mark_safe usage is okay
"S324", # Insecure hash functions can still be useful
"S603", # Disabled because of false positives
"S607", # Disabled because of false positives
"TD002", # Not necessary if TD003 is fixed
"TD003", # TODO: Make sure all TODOs have issues
"TRY003", # Not a problem
"ANN", # TODO: Add typing
"RUF012", # TODO: Add typing
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false