forked from crowdin/crowdin-api-client-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
70 lines (59 loc) · 2.02 KB
/
setup.cfg
File metadata and controls
70 lines (59 loc) · 2.02 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
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html
[flake8]
max-complexity = 6
statistics = True
max-line-length = 100
doctests = True
# Flake plugins:
inline-quotes = double
isort-show-traceback = True
no-accept-encodings = True
# Disable some checks:
ignore = C812, # missing trailing comma
C815, # missing trailing comma in Python 3.5+
C816, # missing trailing comma in Python 3.6+
D100, # Missing docstring in public module
D104, # Missing docstring in public package
D202, # No blank lines allowed after function docstring
D401, # First line should be in imperative mood
E203, # Whitespace before ':'
RST201, # Block quote ends without a blank line; unexpected unindent.
RST203, # Definition list ends without a blank line; unexpected unindent.
RST301, # Unexpected indentation.
W503, # Line break occurred before a binary operator
max-methods = 9
max-module-members = 9
[isort]
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
include_trailing_comma = true
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = FIRSTPARTY
# Should be: 100 - 1
line_length = 99
wrap_length = 99
[doc8]
ignore-path = docs/_build
max-line-length = 100
sphinx = True
[tool:pytest]
python_files = tests.py test_*.py *_tests.py
# Directories that are not visited by pytest collector:
norecursedirs = *.egg .eggs dist build docs .tox .git __pycache__
# You will need to measure your tests speed with `-n auto` and without it,
# so you can see whether it gives you any performance gain, or just gives
# you an overhead. See `docs/template/development-process.rst`.
addopts =
--cache-clear
--strict-markers
--tb=short
--doctest-modules
--cov=crowdin_api
--cov-report=term-missing:skip-covered
--cov-report=xml
--cov-fail-under=95
[coverage:run]
branch = True
omit = *tests*,*fixtures.py