-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
203 lines (179 loc) · 5.53 KB
/
pyproject.toml
File metadata and controls
203 lines (179 loc) · 5.53 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
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
195
196
197
198
199
200
201
202
203
# Build properties for deployment.
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
# region Core Project Settings and Metadata
[project]
name = "django-expanded-test-cases"
description = "Expands the existing Django TestCase class with extra functionality."
readme = "readme.md"
authors = [
{ name = "Brandon Rodriguez", email = "brodriguez8774@gmail.com" },
]
maintainers = [
{ name = "Brandon Rodriguez", email = "brodriguez8774@gmail.com" },
]
license = { file = "LICENSE" }
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Testing",
]
keywords = [
"django",
"testcases",
"tests",
"unittest",
"unittesting",
]
requires-python = ">=3.6"
dependencies = [
"django >= 2.2.0",
"beautifulsoup4 >= 4.11.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"black",
"coverage",
"pylint",
"pylint-django",
]
doc = [
"doc8",
"pip-tools",
"rstcheck",
"sphinx",
"sphinx-autobuild",
"sphinx-rtd-theme",
]
test = [
"coverage",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-xdist",
]
[project.urls]
Homepage = "https://github.com/brodriguez8774/django-expanded-test-cases"
Documentation = "https://django-expanded-test-cases.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/brodriguez8774/django-expanded-test-cases/issues"
"Source Code" = "https://github.com/brodriguez8774/django-expanded-test-cases"
# endregion Core Project Settings and Metadata
# region Third-Party Package Settings
# "Black" formatter settings.
[tool.black]
line-length = 120
skip-string-normalization = 1
# endregion Third-Party Package Settings
# region Testing Settings
[tool.pytest.ini_options]
python_files = ["tests.py", "tests/test_*.py"]
DJANGO_SETTINGS_MODULE = "tests.django_expanded_test_cases.testing.settings"
pythonpath = "."
# Constructed as
# {action}:{message}:{category}:{module}:{lineno}
#
# For more details, see:
# https://docs.pytest.org/en/stable/how-to/capture-warnings.html
# https://docs.python.org/3/library/warnings.html#warning-filter
# https://stackoverflow.com/questions/57925071/how-do-i-avoid-getting-deprecationwarning-from-inside-dependencies-with-pytest
filterwarnings = ""
[tool.coverage.run]
branch = true
omit = [
# Omit the virtual environment.
"./.venv/*",
# Omit the test folders.
"*/tests/*",
"*/tests.py",
# Omit the migration folders.
"*/migrations/*",
# Omit django files.
"*/manage.py",
"*/wsgi.py",
"*/settings.py",
"*/asgi.py",
# Omit management commands.
"*/management/commands/*.py",
# Omit init files.
"*/__init__.py",
# Omit setup files.
"./setup.py",
# Omit Testing Scripts.
"./runpytests.py",
"./runtests.py",
]
# endregion Testing Settings
# region Pylint Settings
[tool.pylint."messages control"]
# Disable the message, report, category or checker with the given id(s). You can
# either give multiple identifiers separated by comma (,) or put this option
# multiple times (only on the command line, not in the configuration file where
# it should appear only once). You can also use "--disable=all" to disable
# everything first and then re-enable specific checks. For example, if you want
# to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable = [
# Default disables
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-implicit-booleaness-not-comparison-to-string",
"use-implicit-booleaness-not-comparison-to-zero",
"use-symbolic-message-instead",
# Project disables
"arguments-differ",
"broad-exception-caught",
"duplicate-code",
"no-else-raise",
"no-else-return",
"signature-differs",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-public-methods",
"too-many-statements",
"wrong-import-order",
]
[tool.pylint.miscellaneous]
# List of note tags to take in consideration, separated by a comma.
notes = ["DEBUG", "REVIEW", "HACK", "XXX", "L8R", "LOCK", "TODO", "FIXME"]
# endregion Pylint Settings