-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (88 loc) · 2.71 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "django-autotyping"
description = "Automatically add type hints for Django powered applications."
authors = [
{name = "Viicos", email = "65306057+Viicos@users.noreply.github.com"}
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Framework :: Django",
"Typing :: Typed",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"django",
"libcst>=0.4.10",
"typing-extensions>=4.4.0; python_version < '3.12'",
]
license = {file = "LICENSE"}
dynamic = ["version", "readme"]
[project.urls]
Homepage = "https://github.com/Viicos/django-autotyping"
Source = "https://github.com/Viicos/django-autotyping"
Changelog = "https://github.com/Viicos/django-autotyping/blob/main/CHANGELOG.md"
Documentation = "https://viicos.github.io/django-autotyping/"
[tool.setuptools.dynamic]
version = {attr = "django_autotyping.__version__"}
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"django_autotyping" = ["py.typed"]
[tool.ruff]
line-length = 120
src = ["src"]
exclude = ["tests/codemodtestproj", "tests/stubstestproj", "tests/stubbing/testfiles"]
target-version = "py38"
[tool.ruff.lint]
preview = true
explicit-preview-rules = true
select = [
"E", # pycodestyle (E)
"W", # pycodestyle (W)
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
"PL", # Pylint
"RUF", # Ruff
"RUF022", # Ruff-preview
"YTT", # flake8-2020
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"PIE", # flake8-pie
"T20", # flake8-print
"RSE", # flake8-raise
"PTH", # flake8-use-pathlib
]
ignore = [
"PLR0912",
"PLR0913",
"PLW2901",
"RUF012",
]
[tool.ruff.lint.isort]
known-first-party = ["django_autotyping"]
[tool.pytest.ini_options]
pythonpath = "src"
norecursedirs = "tests/helpers"
markers = [
"mypy: test generated stubs against mypy (deselect with '-m \"not mypy\"')",
"pyright: test generated stubs against pyright (deselect with '-m \"not pyright\"')",
]