-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (125 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
142 lines (125 loc) · 3.55 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
[project]
name = "django-tailwind-cli"
description = "Django and Tailwind integration based on the prebuilt Tailwind CSS CLI."
authors = [{ name = "Oliver Andrich", email = "oliver@andrich.me" }]
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["django", "tailwind", "css"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Environment :: Web Environment",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
]
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = ["django>=4.2,!=5.0.*,!=5.1.*", "django-typer>=2.1.2", "semver>=3.0.4"]
[project.optional-dependencies]
django-extensions = ["django-extensions>=3.2", "werkzeug>=3.0"]
[project.urls]
Home = "https://django-tailwind-cli.rtfd.io/"
Documentation = "https://django-tailwind-cli.rtfd.io/"
Repository = "https://github.com/django-commons/django-tailwind-cli"
[dependency-groups]
dev = [
"django-stubs>=6.0.2",
"pytest-cov>=5.0.0",
"pytest-django>=4.9.0",
"pytest-mock>=3.14.0",
"pytest-randomly>=3.15.0",
"pytest-timeout>=2.3.1",
"pytest>=8.3.3",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
# basedpyright (also read by pyright)
[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "strict"
venvPath = ".venv"
venv = "."
reportPrivateUsage = "warning"
[tool.pyright.defineConstant]
TYPE_CHECKING = true
# Ruff
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.format]
exclude = ["**/migrations/*"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle
"F", # pyflakes
"FBT", # flake8-boolean-trap
"N", # pep8-naming
"Q", # flake8-quotes
"TID", # flake8-tidy-imports
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore complexity
"C901",
]
unfixable = [
# Don't touch unused imports
"F401",
# Don't touch unused variables
"F841",
]
[tool.ruff.lint.isort]
known-first-party = ["django_tailwind_cli"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["PLR2004", "S101", "TID252", "ARG001", "FBT001"]
"tests/snapshots/*" = ["ALL"]
"**/migrations/*" = ["ALL"]
# Pytest
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
pythonpath = [".", "src"]
testpaths = ["tests"]
filterwarnings = [
"ignore:In Typer, only the parameter 'autocompletion' is supported.:DeprecationWarning",
]
# Coverage
[tool.coverage.run]
source = ["src"]
branch = false
parallel = false
omit = ["*/migrations/*", "*/tests/*", "*/conftest.py"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"pass",
"if __name__ == .__main__.:",
]