-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.cfg
More file actions
53 lines (45 loc) · 1.13 KB
/
setup.cfg
File metadata and controls
53 lines (45 loc) · 1.13 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
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3.11/distutils/configfile.html
[flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
show-source = true
statistics = false
doctests = true
# Plugins:
max-complexity = 6
max-line-length = 80
# We only run wemake-python-styleguide and system checks:
select = WPS, E99
# Exclude some pydoctest checks globally:
ignore = WPS305, WPS237, WPS110, WPS226, WPS323, WPS337, WPS111, W503,
WPS428
# Excluding some directories:
extend-exclude =
.venv
.eggs
*.egg
tests/fixtures/**
tests/**/snapshots/**
sandbox.py
# my-awesome-project
# Ignoring some errors in some files:
per-file-ignores =
# Enable string overuse tests:
tests/*.py: WPS226, WPS432, WPS437
[mypy]
# mypy configurations: http://bit.ly/2zEl9WI
enable_error_code =
truthy-bool,
truthy-iterable,
redundant-expr,
unused-awaitable,
ignore-without-code,
possibly-undefined,
redundant-self,
explicit_package_bases = true
ignore_missing_imports = true
strict = true
warn_unreachable = true