forked from typeddjango/django-stubs
-
Notifications
You must be signed in to change notification settings - Fork 63
/
pyproject.toml
75 lines (67 loc) · 2.08 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
[tool.poetry]
name = "django-types"
version = "0.20.1"
description = "Type stubs for Django"
repository = "https://github.com/sbdchd/django-types"
readme = "README.md"
authors = ["Steve Dignam <[email protected]>"]
license = "MIT"
keywords = ["django", "types", "mypy", "stubs"]
packages = [{ include = "django-stubs" }]
[tool.poetry.dependencies]
python = "^3.8"
types-psycopg2 = ">=2.9.21.13"
[tool.poetry.dev-dependencies]
black = "22.3.0"
pytest = "7.1.1"
wheel = "0.35.1"
mypy = "1.2.0"
isort = "5.10.1"
Django = "4.2.13"
flake8 = "4.0.1"
flake8-pyi = "^20.10.0"
types-PyYAML = "^6.0.1"
types-pytz = "^2021.3.0"
psycopg2-binary = "^2.9.3"
ruff = "^0.0.286"
tomlkit = "^0.12.1"
[tool.black]
line-length = 88
include = '\.pyi?$'
[tool.isort]
profile = "black"
extra_standard_library = [
"typing_extensions",
"_typeshed",
]
[tool.ruff]
line-length = 88
target-version = "py37"
exclude = ["*.py"] # only autofix stubs
select = [
"F401", # Remove unused imports
"UP004", # Remove explicit `object` inheritance
"UP006", # PEP-585 autofixes
"UP007", # PEP-604 autofixes
"UP013", # Class-based syntax for TypedDicts
"UP014", # Class-based syntax for NamedTuples
"UP019", # Use str over typing.Text
"UP035", # import from typing, not typing_extensions, wherever possible
"UP039", # don't use parens after a class definition with no bases
"PYI009", # use `...`, not `pass`, in empty class bodies
"PYI010", # function bodies must be empty
"PYI012", # class bodies must not contain `pass`
"PYI013", # non-empty class bodies must not contain `...`
"PYI020", # quoted annotations are always unnecessary in stubs
"PYI025", # always alias `collections.abc.Set` as `AbstractSet` when importing it
"PYI032", # use `object`, not `Any`, as the second parameter to `__eq__`
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--tb=native -s -v --cache-clear"
filterwarnings = [
"error", # all warnings that are not ignored should raise an error
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"