Repository navigation
Expand file tree
/
Copy pathsetup.cfg
More file actions
42 lines (36 loc) · 1.42 KB
/
Copy pathsetup.cfg
File metadata and controls
42 lines (36 loc) · 1.42 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
# 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
# Scalar values are part of the public option API.
allowed-domain-names = value
# We only run wemake-python-styleguide and system checks:
select = WPS, E99
# Excluding some directories:
extend-exclude =
.venv
# Ignoring some errors in some files:
per-file-ignores =
# Keep imgproxy fixtures and their container setup helpers together.
tests/fixtures/imgproxy.py: WPS202
# Generic factories return an exact position independent of the class parameter.
imgproxykit/options/gravity.py: WPS602
# Enable string overuse tests and private member access:
tests/*.py: WPS226, WPS432
# Keep DRF field tests and their declaration classes together.
tests/test_unit/test_integrations/test_drf.py: WPS202, WPS226, WPS432
# Keep client registration and constructor validation checks together.
tests/test_unit/test_integrations/test_litestar.py: WPS202
# Allow mutable settings, printing results, and readable image dimensions.
docs/examples/*.py: WPS407, WPS421, WPS432
# Image sizes in runnable test applications are illustrative values.
test_apps/*.py: WPS432