-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (170 loc) · 4.52 KB
/
pyproject.toml
File metadata and controls
186 lines (170 loc) · 4.52 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "django-datalog"
dynamic = ["version"]
description = "Django Datalog - Logic programming and inference engine for Django applications"
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
authors = [
{ name = "Eddy Ernesto del Valle Pino", email = "eddy@edelvalle.me" },
]
keywords = [
"django",
"datalog",
"logic-programming",
"inference-engine",
"facts",
"rules",
"query",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"Django>=5",
"uuid6>=2024.1.12",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-django>=4.5",
"pytest-cov>=4.0",
"ruff>=0.1",
"basedpyright>=1.12",
]
test = [
"pytest>=7.0",
"pytest-django>=4.5",
"pytest-cov>=4.0",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.0",
"mkdocstrings[python]>=0.24",
]
[project.urls]
Homepage = "https://github.com/edelvalle/django-datalog"
Documentation = "https://django-datalog.readthedocs.io/"
Repository = "https://github.com/edelvalle/django-datalog.git"
Issues = "https://github.com/edelvalle/django-datalog/issues"
Changelog = "https://github.com/edelvalle/django-datalog/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "django_datalog/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/django_datalog",
"/tests",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
]
[tool.hatch.build.targets.wheel]
packages = ["django_datalog"]
[tool.ruff]
target-version = "py313"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"django_datalog/tests/*" = ["F821", "E712", "F841"] # Allow undefined names, True comparisons, and unused vars in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
addopts = "--tb=short --strict-markers --disable-warnings"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
]
[tool.coverage.run]
source = ["django_datalog"]
omit = [
"*/migrations/*",
"*/tests/*",
"*/venv/*",
"*/env/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
]
[tool.basedpyright]
pythonVersion = "3.13"
typeCheckingMode = "basic"
include = ["django_datalog"]
exclude = [
"**/__pycache__",
"build",
"dist",
".venv",
".pytest_cache",
"test_project",
"**/migrations/**",
"**/tests/**",
]
reportMissingImports = true
reportMissingTypeStubs = false
reportAttributeAccessIssue = false
reportAssignmentType = false
reportIncompatibleMethodOverride = false
reportRedeclaration = false
reportOperatorIssue = false
reportArgumentType = false
reportCallIssue = false
reportGeneralTypeIssues = false
reportOptionalOperand = false
reportOptionalMemberAccess = false
reportOptionalCall = false
reportOptionalIterable = false
reportOptionalContextManager = false
reportOptionalSubscript = false
reportPrivateUsage = false
reportTypeCommentUsage = false
reportUnknownParameterType = false
reportUnknownArgumentType = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownLambdaType = false