generated from BastiTee/python-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
58 lines (47 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
# -----------------------------------------------------------------------------
# BUILDING WHEELS
# -----------------------------------------------------------------------------
[metadata]
# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
license_files =
LICENSE.txt
README.md
[bdist_wheel]
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels
universal=0
# -----------------------------------------------------------------------------
# FORMATTING AND LINTING
# -----------------------------------------------------------------------------
[flake8]
ignore = D100,D401,Q003,W503,Q000
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
max-line-length = 88
# flake8-use-fstring
percent-greedy = 0
format-greedy = 2
per-file-ignores =
key_set/__init__.py: I001,I005,F401,F403,F405
key_set/__main__.py: F403,F405
tests/*: I001,I005,D100,D101,D102
[mypy]
# Untyped definitions and calls
# Disallows defining functions without type annotations or with
# incomplete type annotations.
disallow_untyped_defs = true
# Type-checks the interior of functions without type annotations
check_untyped_defs = true
# Import discovery
follow_imports = normal
ignore_missing_imports = True
# Warning configuration
warn_unused_ignores = true
warn_unreachable = true
# Error message config
# pretty = true
# -----------------------------------------------------------------------------
# TEST CONFIGURATION
# -----------------------------------------------------------------------------
[tool:pytest]
addopts = -p no:warnings