-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
73 lines (61 loc) · 1.57 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
[tool.poetry]
name = "django_pat"
version = "1.1.0"
description = "A Django package for creating, using, and managing personal access tokens."
readme = "README.md"
authors = ["Chris Muthig <[email protected]>"]
license = "MIT"
packages = [
{ include = "django_pat", from = "src" },
]
classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
]
[tool.poetry.dependencies]
python = ">= 3.7, < 3.12"
django = [
{version = "~3.2", python = "3.7"},
{version = ">= 3.2, < 5.0", python = ">= 3.8"},
]
djangorestframework = { version = "^3.11", optional = true }
[tool.poetry.extras]
djangorestframework = ["djangorestframework"]
[tool.poetry.dev-dependencies]
djangorestframework = "^3.11"
pytest = "^7.1"
pytest-django = "^4.5"
pre-commit = "^2.18"
flake8 = "^5.0"
black = "^23.1"
mypy = "^1.0"
django-stubs = "^4.2"
djangorestframework-stubs = "^3.14.0"
nox = "^2024.4"
isort = "^5.10"
coverage = {extras = ["toml"], version = "^7.0.5"}
pytest-cov = "^4.0.0"
[tool.pytest.ini_options]
pythonpath = ["src"]
DJANGO_SETTINGS_MODULE = "tests.settings"
[tool.black]
line-length = 128
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
exclude = [
"manage.py",
]
[tool.django-stubs]
django_settings_module = "tests.settings"
[tool.coverage.paths]
source = ["src/django_pat"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
omit = ["tests/*", "**/migrations/*", "**/__init__.py"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"