forked from drmikehenry/romt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
58 lines (46 loc) · 1.62 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
##############################################################################
# Style checking
[flake8]
# Enforce the Google Python style for grouping and sorting imports:
# https://github.com/google/styleguide/blob/gh-pages/pyguide.md#313-imports-formatting
import-order-style = google
max-line-length = 79
# Inform flake8-import-order plugin about local package name.
application-import-names = romt
# Ignore some flake8 diagnostics:
# E203 whitespace before ':'
# N811 constant imported as non constant
# N812 lowercase imported as non lowercase
# N813 camelcase imported as lowercase
# N814 camelcase imported as constant
# I202 Additional newline in a group of imports
# W503 line break before binary operator
ignore = E203, N811, N812, N813, N814, I202, W503
# Use double-quotes.
inline-quotes = double
# Match python-language-server default McCabe complexity.
max-complexity = 15
##############################################################################
# Type checking
[mypy]
warn_unused_configs = True
ignore_missing_imports = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
##############################################################################
# Coverage support
[coverage:run]
branch = True
[coverage:paths]
# Files with these prefixes are treated as identical for the purposes of
# coverage combine.
source =
# The first path is the name to which all paths get unified.
src/
# tox on Linux.
.tox/py*/lib/python*/site-packages/
# tox on Windows.
.tox/py*/Lib/site-packages/