-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsetup.cfg
85 lines (74 loc) · 2.16 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
# 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 = 120
doctests = True
# Flake plugins:
inline-quotes = double
isort-show-traceback = True
no-accept-encodings = True
# Disable some checks:
ignore =
# missing trailing comma
C812,
# missing trailing comma in Python 3.5+
C815,
# missing trailing comma in Python 3.6+
C816,
# function is too complex
C901,
# Missing docstring in public module
D100,
# Missing docstring in public package
D104,
# No blank lines allowed after function docstring
D202,
# First line should be in imperative mood
D401,
# Whitespace before ':'
E203,
# Block quote ends without a blank line; unexpected unindent.
RST201,
# Definition list ends without a blank line; unexpected unindent.
RST203,
# Unexpected indentation.
RST301,
# Line break occurred before a binary operator
W503,
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