-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
96 lines (83 loc) · 2.09 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "nanodjango"
description = "Run Django models and views from a single file, and convert it to a full project."
dynamic = ["version"]
authors = [
{ name="Richard Terry", email="[email protected]" },
]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Django",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
keywords = ["django"]
requires-python = ">=3.8"
dependencies = [
"black",
"click",
"gunicorn",
"isort",
"Django>=3.2",
"django-ninja",
"uvicorn",
"whitenoise",
]
[project.scripts]
nanodjango = "nanodjango.commands:invoke"
[project.urls]
Homepage = "https://radiac.net/projects/nanodjango/"
Documentation = "https://nanodjango.readthedocs.io/en/latest/"
Changelog = "https://nanodjango.readthedocs.io/en/latest/changelog.html"
Repository = "https://github.com/radiac/nanodjango"
Issues = "https://github.com/radiac/nanodjango/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["nanodjango*"]
exclude = ["docs*", "tests*", "examples*", "src*", "dist*"]
[tool.setuptools.dynamic]
version = {attr = "nanodjango.__version__"}
[tool.pytest.ini_options]
addopts = "--cov=nanodjango --cov-report=term --cov-report=html"
testpaths = [
"tests",
"nanodjango",
"examples",
]
pythonpath = ["."]
[tool.coverage.run]
source = ["nanodjango"]
[tool.black]
line-length = 88
target-version = ["py311"]
include = "\\.pyi?$"
[tool.isort]
multi_line_output = 3
line_length = 88
known_django = "django"
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
include_trailing_comma = true
lines_after_imports = 2
skip = [".git"]
[tool.mypy]
follow_imports = "skip"
ignore_missing_imports = true
[tool.doc8]
max-line-length = 88
ignore-path = ["*.txt"]
[tool.ruff]
line-length = 88
lint.select = ["E", "F"]
lint.ignore = [
"E501", # line length
]
exclude = [
".git",
"dist",
]