-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
120 lines (108 loc) · 2.49 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
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "django-extra-checks"
dynamic = ["version"]
description = "Collection of useful checks for Django Checks Framework"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "Konstantin Alekseev", email = "[email protected]" },
]
keywords = [
"checks",
"django",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.optional-dependencies]
dev = [
"Django",
"django-stubs",
"djangorestframework",
"djangorestframework-stubs",
"mypy",
"pdbpp",
"pre-commit",
"ruff",
]
test = [
"pytest",
"pytest-cov",
"pytest-django",
]
[project.urls]
Homepage = "https://github.com/kalekseev/django-extra-checks"
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.targets.sdist]
include = ["/src"]
[tool.hatch.build.targets.wheel]
packages = ["src/extra_checks"]
[tool.ruff]
src = ["src"]
target-version = "py38"
[tool.ruff.lint]
select = [
'B',
'C',
'E',
'F',
'N',
'W',
'UP',
'RUF',
'INP',
'I',
'TCH',
]
ignore = [
'E501',
'B904',
'B905',
'RUF012',
]
extend-safe-fixes = ["TCH"]
[tool.pytest.ini_options]
addopts = "-p no:doctest --cov=extra_checks --cov-branch --ds=tests.settings"
django_find_project = false
pythonpath = "."
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
disallow_untyped_defs = true
check_untyped_defs = true
ignore_missing_imports = true
implicit_reexport = true
strict_equality = true
warn_unreachable = true
show_error_codes = true
no_implicit_optional = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
[tool.django-stubs]
django_settings_module = "tests.settings"