-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.cfg
102 lines (90 loc) · 2.48 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
########################
##### Tox settings #####
########################
[tox:tox]
distshare = {homedir}/.tox/distshare
envlist = py{39,310,311,312}-django{32,42,50}-opensearch{10,20}
skipsdist = true
skip_missing_interpreters = true
indexserver =
pypi = https://pypi.python.org/simple
[testenv]
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE = tests.project.settings
opensearch10: DJANGO_OS_PORT=9210
opensearch20: DJANGO_OS_PORT=9220
deps =
-rrequirements.txt
-rrequirements_dev.txt
django32: django>=3.2.0,<3.3.0
django42: django>=4.2.0,<4.3.0
django50: django>=5.0.0,<5.1.0
opensearch10: opensearch-py>=2.2.0
opensearch20: opensearch-py>=2.2.0
commands =
python3 manage.py migrate
coverage run --source=. manage.py test
coverage report -m
coverage xml
########################
### Checks settings ####
########################
[pycodestyle]
count = True
max-line-length = 120
max-doc-length = 100
exclude = venv, .tox
ignore = W503, W504, W605, E121, E123, E126, E203, E501
# W503: Line break occurred before a binary operator
# W504: Line break occurred after a binary operator
# W605: Invalid escape sequence
# E121: Continuation line under-indented for hanging indent
# E123: Closing bracket does not match indentation of opening bracket's line
# E126: Continuation line over-indented for hanging indent
# E203: Whitespace before ':'
# E501: Line too long
[pydocstyle]
convention = numpy
match_dir = (?!django_dummy_app|project|venv|migrations|tests|\.).*
match = (?!manage).*\.py
add_ignore = D100, D104, D105, D106
# D100: Missing docstring in public module
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D106: Missing docstring in public nested class
[tool:isort]
profile = black
line_length = 120
src_paths = django_opensearch_dsl,tests
[bandit]
targets = django_opensearch_dsl, tests
exclude = venv, .tox
recursive = True
quiet = True
format = custom
msg-template = {abspath}:{line} - {test_id} - {severity} - {msg}
#############################
##### Coverage settings #####
#############################
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
def __str__
TYPE_CHECKING
raise NotImplementedError
@abstractmethod
if verbosity
if verbose
include =
django_opensearch_dsl/*
omit =
venv/*
site-packages/*
[coverage:run]
branch = True
source =
django_opensearch_dsl
[coverage:html]
title = Django Opensearch DSL's Coverage