-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.cfg
70 lines (56 loc) · 1.32 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
#
# babel
#
[extract_messages]
mapping_file = etc/babel.cfg
# _n => ngettext, _l => lazy_gettext
keywords = _n:1,2 _l
output-file = abilian/sbe/translations/messages.pot
input-dirs = abilian/sbe
[update_catalog]
input-file = abilian/sbe/translations/messages.pot
output-dir = abilian/sbe/translations
[compile_catalog]
directory = abilian/sbe/translations
[init_catalog]
input-file = abilian/sbe/translations/messages.pot
output-dir = abilian/sbe/translations
#
# Testing
#
[tool:pytest]
python_files = test_*.py tests.py *_tests.py
; norecursedirs = .* env* _build *.egg *.egg-info tools deploy etc docs demo bin
#
# Static analysis
#
[flake8]
# F401,T568: false positive since we're using type annotations as comments
# B902: should be fixed someday
ignore = E203,F401,E711,E712,W503,E741,B902
# TODO: reduce to 8
max-complexity = 15
accept-encodings = utf-8
max-line-length = 100
banned-modules =
six = We're Py3k only now !
[mypy]
ignore_missing_imports = True
warn_redundant_casts = True
warn_no_return = True
strict_optional = True
warn_unused_ignores = True
[isort]
known_first_party = abilian.sbe
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = THIRDPARTY
profile = black
#
# Coverage
#
[coverage:report]
omit = */test*
#
#
# [semantic_release]
# version_toml = "pyproject.toml:tool.poetry.version"