-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
194 lines (178 loc) · 4.02 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Build Settings
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
# Project Settings
[project]
name = "django_unmanaged_assistant"
version = "2024.10.28.1"
description = "A Django app to create databases/schemas/tables for unmanaged models in the local environment."
authors = [{name="Hanny", email="[email protected]"},]
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Utilities",
]
keywords = ["django", "unmanaged", "tables", "models"]
[project.urls]
Homepage = "https://github.com/hannylicious/django-unmanaged-assistant"
Issues = "https://github.com/hannylicious/django-unmanaged-assistant/issues"
# Coverage Options
[tool.coverage.run]
omit = [
"__init__.py",
".gitignore",
"pre-commit-config.yaml",
"pyproject.toml",
"README.md",
"requirements.txt",
"*/__init__.py",
"*/package.json",
"*tests*",
"*/test-results/*",
"*/venv/*",
]
# Pytest Options
[tool.pytest.ini_options]
minversion = "6.0"
addopts = """
--cov=django_unmanaged_assistant
--junitxml=./test-results/junit.xml
--cov-report term-missing
--cov-report html:./test-results/htmlcov
--html=./test-results/test_results.html
--self-contained-html
"""
junit_family = "xunit2"
norecursedirs = ".svn _build tmp* node_modules"
python_files = "tests_*.py *_tests.py *_test.py test_*.py test.py tests.py"
# Ruff Options
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [".bzr",
".coverage",
".direnv",
".DS_Store",
".eggs",
".git",
".hg",
".log",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"__pycache__",
"_build",
"blib2to3",
"buck-out",
"build",
"db.sqlite3",
"dist",
"fixtures",
"htmlcov",
"migrations",
"node_modules",
"profiling",
"static",
"templates",
"tests/data",
"venv",
]
# Settings that should be the same as Black.
line-length = 79
# Assume Python 3.12.
target-version = "py312"
# Ruff Formatting Options
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Ruff Linting Options
[tool.ruff.lint]
# Enabled rules
select = [
# flake8-annotations
"ANN",
# flake8-bugbear
"B",
# mccabe
"C90",
# pycodestyle
"E",
# pyflakes
"F",
# PEP8-naming
"N",
# flake8-datetimez
"DTZ",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-bandit
"S",
# flake8-django
"DJ",
# flake8-pytest-style
"PT",
# isort
"I"
]
# Igore pydocstyle rules not relevant to pep257 (https://tinyurl.com/yyz4p3p3).
# Ignore recommended rules:
# (https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules)
ignore = [
"ANN101",
"D203",
"D206",
"D212",
"D213",
"D214",
"D215",
"D300",
"D404",
"D405",
"D406",
"D407",
"D408",
"D409",
"D410",
"D411",
"D413",
"D415",
"D416",
"D417",
"E111",
"E114",
"E117"
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# McCabe Complexity Options
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
# Ruff Per-File Ignores
[tool.ruff.lint.per-file-ignores]
"*/tests/*" = ["S101"]