-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
420 lines (367 loc) · 9.74 KB
/
setup.cfg
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# django-read-only-admin
# setup.cfg
[metadata]
name = django-read-only-admin
version = 0.17.5
description = Really full Django read only admin implementation
python_requires = >=3.7
license_file = MIT-LICENSE
author = Alexei Andrushievich
author_email = vint21h@vint21h.pp.ua
url = https://github.com/vint21h/django-read-only-admin/
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Plugins
Framework :: Django :: 2.2
Framework :: Django :: 3.2
Framework :: Django :: 4.0
License :: OSI Approved :: MIT License
Operating System :: Unix
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Utilities
license = MIT
long_description = file:README.rst
long_description_content_type = text/x-rst
keywords = django,django-admin,admin,read-only
[options]
packages = find:
zip_safe = False
include_package_data = True
test_suite = tests
install_requires =
django>=2.2,<4.1
django-appconf>=1.0.3
[options.extras_require]
test =
attrs==21.4.0
bandit==1.7.2
black==22.1.0
bpython==0.22.1
check-manifest==0.47
check-wheel-contents==0.3.4
coverage==6.3.1
coveralls==3.3.1
curlylint==0.13.0
darglint==1.8.1
dennis==0.9
django-stubs==1.9.0
dlint==0.12.0
dodgy==0.2.1
dotenv-linter==0.3.0
flake8-annotations-complexity==0.0.6
flake8-annotations-coverage==0.0.5
flake8-broken-line==0.4.0
flake8-bugbear==22.1.11
flake8-builtins==1.5.3
flake8-coding==1.3.2
flake8-cognitive-complexity==0.1.0
flake8-comprehensions==3.8.0
flake8-debugger==4.0.0
flake8-django==1.1.2
flake8-docstrings==1.6.0
flake8-eradicate==1.2.0
flake8-executable==2.1.1
flake8-expression-complexity==0.0.9
flake8-fixme==1.1.1
flake8-functions==0.0.6
flake8-mutable==1.2.0
flake8-no-implicit-concat==0.3.3
flake8-print==4.0.0
flake8-return==1.1.3
flake8-simplify==0.17.1
flake8-typing-imports==1.12.0
flake8-use-fstring==1.3
flake8-variables-names==0.0.4
flake8==3.9.2 # do not update before ALL plugins start 4.x support
importlib-metadata==4.11.1
interrogate==1.5.0
isort==5.10.1
mypy==0.931
pep8-naming==0.12.1
pip-outdated==0.5.0
polint==0.4
pre-commit-hooks==4.1.0
pre-commit==2.17.0
pygments==2.11.2
pylint-django==2.5.2
pylint==2.12.2
pyroma==3.2
pytest-cov==3.0.0
pytest-django==4.5.2
pytest-extra-durations==0.1.3
pytest-instafail==0.4.2
pytest-sugar==0.9.4
pytest-timer[termcolor]==0.0.11
pytest==7.0.1
readme_renderer==32.0
removestar==1.3.1
seed-isort-config==2.2.0
tabulate==0.8.9
tox-gh-actions==2.9.1
tox-pyenv==1.1.0
tox==3.24.5
twine==3.8.0
wheel==0.37.1
yesqa==1.3.0
[options.packages.find]
exclude =
tests.*
tests
[bdist_wheel]
universal = False
[sdist]
formats = zip
[mypy]
files = read_only_admin,tests
check_untyped_defs = True
disallow_any_generics = True
disallow_untyped_calls = True
ignore_errors = False
ignore_missing_imports = True
implicit_reexport = True
strict_optional = True
strict_equality = True
no_implicit_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
warn_no_return = True
plugins = mypy_django_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = tests.settings
[flake8]
max-line-length = 88
select = B,C,D,E,F,W,T4,C4,TAE,T,M511,T100,TYP,A,EXE,CFQ,SIM,DUO,N,DJ,ECE,FS,R,CCR,NIC
doctests = True
ignore = D100,D104,D401
max-annotations-complexity = 5
max-expression-complexity = 5
max-cognitive-complexity = 5
min-python-version = 3.7
exclude = setup.py
[check-manifest]
ignore =
.editorconfig
.env
.env.example
.envrc
.gitattributes
.github
.gitignore
.pre-commit-config.yaml
.python-version
AUTHORS
Makefile
MIT-LICENSE
README.rst
tests
tests.*
TODO
ignore-bad-ideas =
*.mo
[coverage:run]
branch = True
source = read_only_admin
omit =
*/__init__.py
read_only_admin/apps.py
[coverage:report]
omit =
*/__init__.py
read_only_admin/apps.py
exclude_lines =
pragma: no cover
[isort]
balanced_wrapping = True
combine_as_imports = True
default_section = FIRSTPARTY
force_grid_wrap = 0
force_sort_within_sections = True
force_to_top = True
include_trailing_comma = True
known_first_party = read_only_admin
line_length = 88
lines_after_imports = 2
length_sort = True
multi_line_output = 3
use_parentheses = True
virtual_env = $VIRTUAL_ENV
known_third_party = appconf,django,setuptools
[darglint]
docstring_style = sphinx
[bandit]
skips = B507
tests = B101,B102,B103,B104,B105,B106,B107,B108,B110,B112,B201,B301,B302,B303,B304,B305,B306,B307,B308,B309,B310,B311,B312,B313,B314,B315,B316,B317,B318,B319,B320,B321,B323,B324,B325,B401,B402,B403,B404,B405,B406,B407,B408,B409,B410,B411,B412,B413,B501,B502,B503,B504,B505,B506,B601,B602,B603,B604,B605,B606,B607,B608,B609,B610,B611,B701,B702,B703
[tool:check-wheel-contents]
ignore = W004
[tox:tox]
skip_missing_interpreters = True
tox_pyenv_fallback = False
skipsdist = False
envlist =
{py37,py38,py39,py310}-2.2.x
{py37,py38,py39,py310}-3.2.x
{py38,py39,py310}-4.0.x
check
check-build
[testenv]
usedevelop = True
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
2.2.x: Django>=2.2,<3.0
3.2.x: Django>=3.2,<4.0
4.0.x: Django>=4.0,<4.1
commands=
pip install .[test]
make test
whitelist_externals =
make
[testenv:check]
skip_install = True
commands =
make check
whitelist_externals =
make
[testenv:check-build]
skip_install = True
commands =
make build -B
make check-build -B
whitelist_externals =
make
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[pylint.MASTER]
ignore = CVS
ignore-patterns =
persistent = yes
load-plugins = pylint_django
jobs = 1
unsafe-load-any-extension = no
extension-pkg-whitelist =
optimize-ast = no
[pylint.'MESSAGES CONTROL']
confidence =
disable = all
enable = E0001,E0100,E0101,E0102,E0103,E0104,E0105,E0106,E0107,E0110,
E0113,E0114,E0115,E0116,E0117,E0108,E0202,E0203,E0211,E0236,
E0238,E0239,E0240,E0241,E0301,E0302,E0601,E0603,E0604,E0701,
E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1102,E1111,E0112,
E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1132,E1200,E1201,
E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,
C0123,C0200,C0303,C1001,
W0101,W0102,W0104,W0105,W0106,W0107,W0108,W0109,W0110,W0120,
W0122,W0124,W0150,W0199,W0221,W0222,W0233,W0404,W0410,W0601,
W0602,W0604,W0611,W0612,W0622,W0623,W0702,W0705,W0711,W1300,
W1301,W1302,W1303,,W1305,W1306,W1307
R0102,R0201,R0202,R0203
[pylint.REPORTS]
output-format = text
files-output = no
reports = yes
evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
[pylint.BASIC]
good-names = i,j,k,ex,Run,_
bad-names = foo,bar,baz,toto,tutu,tata
name-group =
include-naming-hint = no
property-classes = abc.abstractproperty
const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__))$
const-name-hint = (([A-Z_][A-Z0-9_]*)|(__.*__))$
class-rgx = [A-Z_][a-zA-Z0-9]+$
class-name-hint = [A-Z_][a-zA-Z0-9]+$
argument-rgx = [a-z_][a-z0-9_]{2,30}$
argument-name-hint = [a-z_][a-z0-9_]{2,30}$
variable-rgx = [a-z_][a-z0-9_]{2,30}$
variable-name-hint = [a-z_][a-z0-9_]{2,30}$
class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
class-attribute-name-hint = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
method-rgx = [a-z_][a-z0-9_]{2,30}$
method-name-hint = [a-z_][a-z0-9_]{2,30}$
module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
module-name-hint = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
function-rgx = [a-z_][a-z0-9_]{2,30}$
function-name-hint = [a-z_][a-z0-9_]{2,30}$
attr-rgx = [a-z_][a-z0-9_]{2,30}$
attr-name-hint = [a-z_][a-z0-9_]{2,30}$
inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
inlinevar-name-hint = [A-Za-z_][A-Za-z0-9_]*$
no-docstring-rgx = ^_
docstring-min-length = -1
[pylint.ELIF]
max-nested-blocks = 5
[pylint.FORMAT]
max-line-length = 88
ignore-long-lines = ^\s*(# )?<?https?://\S+>?$
single-line-if-stmt = no
no-space-check = trailing-comma,dict-separator
max-module-lines = 1000
indent-string=' '
indent-after-paren = 4
expected-line-ending-format = LF
[pylint.LOGGING]
logging-modules = logging
[pylint.MISCELLANEOUS]
notes = FIXME,XXX,TODO
[pylint.SIMILARITIES]
min-similarity-lines = 4
ignore-comments = yes
ignore-docstrings = yes
ignore-imports = no
[pylint.SPELLING]
spelling-dict =
spelling-ignore-words =
spelling-private-dict-file =
spelling-store-unknown-words = no
[pylint.TYPECHECK]
ignore-mixin-members = yes
ignored-modules =
ignored-classes = optparse.Values,thread._local,_thread._local
generated-members =
contextmanager-decorators = contextlib.contextmanager
[pylint.VARIABLES]
init-import = no
dummy-variables-rgx = (_+[a-zA-Z0-9]*?$)|dummy
additional-builtins =
callbacks = cb_,_cb
redefining-builtins-modules = six.moves,future.builtins
[pylint.CLASSES]
defining-attr-methods = __init__,__new__,setUp
valid-classmethod-first-arg = cls
valid-metaclass-classmethod-first-arg = mcs
exclude-protected = _asdict,_fields,_replace,_source,_make
[pylint.DESIGN]
max-args = 5
ignored-argument-names = _.*
max-locals = 15
max-returns = 6
max-branches = 12
max-statements = 50
max-parents = 7
max-attributes = 7
min-public-methods = 2
max-public-methods = 20
max-bool-expr = 5
[pylint.IMPORTS]
deprecated-modules = optparse
import-graph =
ext-import-graph =
int-import-graph =
known-standard-library =
known-third-party = enchant
analyse-fallback-blocks = no
[pylint.EXCEPTIONS]
overgeneral-exceptions = Exception
[tool:pytest]
DJANGO_SETTINGS_MODULE = tests.settings
python_files = tests.py test_*.py *_tests.py
python_classes =