-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
79 lines (67 loc) · 1.58 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
74
75
76
77
78
79
[project]
name = "django-query-prefixer"
dynamic = ["version"]
authors = [
{ name="Erle Carrara", email="[email protected]" },
]
description = "Add helpful annotations to SQL queries."
readme = "README.md"
requires-python = ">=3.8"
keywords = []
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 4"
]
[project.urls]
Source = "https://github.com/ecarrara/django-query-prefixer"
Issues = "https://github.com/ecarrara/django-query-prefixer/issues"
[project.optional-dependencies]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "django_query_prefixer/__init__.py"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"django>=4.2"
]
[[tool.hatch.envs.test.matrix]]
python = ["3.11", "3.10", "3.9", "3.8"]
[tool.hatch.envs.test.scripts]
cov = "pytest --cov=django_query_prefixer {args:tests}"
[tool.hatch.envs.default]
dependencies = [
"black>=23.3",
"pyright>=1.1",
"ruff>=0.0.274",
"pytest",
"sphinx",
"django>=4.2"
]
[tool.hatch.envs.default.scripts]
typing = "pyright {args:django-query-prefixer tests}"
style = [
"ruff {args:.}",
"black --check --diff {args:.}"
]
fmt = [
"black {args:.}",
"ruff --fix {args:.}",
"style"
]
doc = [
"sphinx-build -b html docs _build/html"
]
[tool.black]
target-version = ["py38"]
line-length = 120
[tool.ruff]
target-version = "py38"
line-length = 120
[tool.ruff.isort]
known-first-party = ["django-query-prefixer"]