-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.cfg
128 lines (110 loc) · 2.79 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
[bumpversion]
current_version = 4.19.0
commit = True
tag = True
tag_name = {new_version}
[bumpversion:file:CHANGES.rst]
search =
`Unreleased <https://github.com/crim-ca/weaver/tree/master>`_ (latest)
========================================================================
replace =
`Unreleased <https://github.com/crim-ca/weaver/tree/master>`_ (latest)
========================================================================
Changes:
--------
- No change.
Fixes:
------
- No change.
.. _changes_{new_version}:
`{new_version} <https://github.com/crim-ca/weaver/tree/{new_version}>`_ ({now:%%Y-%%m-%%d})
========================================================================
[bumpversion:file:README.rst]
search = {current_version}
replace = {new_version}
[bumpversion:file:weaver/__meta__.py]
search = {current_version}
replace = {new_version}
[bumpversion:file:Makefile]
search = APP_VERSION ?= {current_version}
replace = APP_VERSION ?= {new_version}
[bumpversion:file:docker/Dockerfile-base]
search = LABEL version="{current_version}"
replace = LABEL version="{new_version}"
[tool:pytest]
addopts =
--strict-markers
--tb=native
weaver/
log_cli = false
log_level = DEBUG
python_files = test_*.py
markers =
cli: mark test as related to CLI operations
testbed14: mark test as 'testbed14' validation
functional: mark test as functionality validation
quotation: mark test with quotation extension
workflow: mark test as workflow execution (E2E)
online: mark test to need internet connection
slow: mark test to be slow
remote: mark test with remote Weaver instance requirement
vault: mark test with Vault file feature validation
[isort]
line_length = 120
multi_line_output = 3
lines_between_types = 0
combine_as_imports = true
default_section = FIRSTPARTY
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_standard_library = posixpath,typing,typing_extensions
known_first_party = weaver
known_third_party = cornice_swagger,cwltool,cwt,docker
skip = *.egg*,build,env,src,venv
[bandit]
skips = B101,B320,B410
exclude = *.egg-info,build,dist,env,tests,./tests,test_*
targets = .
[flake8]
ignore = E126,E226,E402,F401,W503,W504
max-line-length = 120
exclude =
src,
.git,
__pycache__,
docs,
build,
dist,
eggs,
parts,
examples,
[doc8]
max-line-length = 120
ignore-path = docs/build,docs/source/autoapi
[pydocstyle]
add_ignore = D100,D101,D102,D103,D104,D105,D107,D200,D202,D204,D212,D401
add_select = D201,D213
[pylint]
[coverage:run]
branch = true
source = ./
include = weaver/*
omit =
setup.py
docs/*
tests/*
*_mako
[coverage:report]
exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
if TYPE_CHECKING:
if __name__ == "__main__":
LOGGER.debug
LOGGER.info
LOGGER.warning
LOGGER.error
LOGGER.exception
LOGGER.log
@overload
if not result.success: