-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (110 loc) · 4.04 KB
/
pyproject.toml
File metadata and controls
139 lines (110 loc) · 4.04 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# -*- coding: utf-8 -*-
# =============================================================================
# Project Configuration
# =============================================================================
[project]
name = "swing_starter"
version = "0.0.1"
description = "Starter Django project template"
license = { text = "BSD-3-Clause" }
readme = "README.md"
requires-python = ">=3.12,<4.0"
authors = [{ name = "Scape Press", email = "info@scape.press" }]
maintainers = [{ name = "Lars van Vianen", email = "lars@scape.press" }]
keywords = ["Django", "starter", "template", "swing"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Framework :: Django :: 5",
"Framework :: Django :: 6",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["dependencies"]
# =============================================================================
# Project URLs
# =============================================================================
[project.urls]
homepage = "https://swing.dj/"
repository = "https://github.com/swing-collection/swing-starter"
documentation = "https://github.com/swing-collection/swing-starter/tree/dev/docs"
# =============================================================================
# Poetry
# =============================================================================
[tool.poetry]
package-mode = false
# =============================================================================
# Dependencies
# =============================================================================
[tool.poetry.dependencies]
django = ">=5.0,<7.0"
# =============================================================================
# Development Dependencies
# =============================================================================
[tool.poetry.group.dev.dependencies]
pytest = "^8.0"
pytest-django = "^4.8"
pytest-cov = "^5.0"
black = "^24.0"
isort = "^5.13"
flake8 = "^7.1"
mypy = "^1.10"
pylint = "^3.2"
pylint-django = "^2.5"
django-stubs = "^5.0"
bandit = { extras = ["toml"], version = "^1.7" }
pre-commit = "^3.7"
honcho = "^1.1"
tox = "^4.15"
[tool.poetry.group.doc.dependencies]
mkdocs = "^1.6"
mkdocs-material = "^9.5"
# =============================================================================
# Pylint Configuration
# =============================================================================
[tool.pylint.master]
load-plugins = ["pylint_django"]
django_settings_module = "exe.demo_project.settings"
ignore = ["bup", "tmp", "tst", "migrations"]
[tool.pylint."messages control"]
disable = [
"import-outside-toplevel",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"line-too-long",
"too-few-public-methods",
"redefined-outer-name", # Normal pytest fixture pattern
"unused-argument", # db fixture required by pytest-django
]
[tool.pylint.format]
max-line-length = 120
# =============================================================================
# Mypy Configuration
# =============================================================================
[tool.mypy]
python_version = "3.12"
plugins = ["mypy_django_plugin.main"]
strict = false
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "*.migrations.*"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "exe.demo_project.settings"
# =============================================================================
# Build System
# =============================================================================
[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"