Skip to content

Commit f42a920

Browse files
committed
chore: add flake8 config
1 parent e4a5968 commit f42a920

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

setup.cfg

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
[flake8]
2-
max-line-length = 160
2+
# flake8 configuration:
3+
# https://flake8.pycqa.org/en/latest/user/configuration.html
4+
format = wemake
5+
show-source = true
6+
statistics = false
7+
doctests = true
8+
enable-extensions = G
9+
max-line-length = 88
10+
extend-select = B950
11+
extend-ignore = E203,E501,E701
12+
13+
# darglint configuration:
14+
# https://github.com/terrencepreilly/darglint
15+
strictness = long
16+
docstring-style = sphinx
17+
18+
# Flake plugins:
19+
max-complexity = 6
20+
21+
# # Excluding some directories:
22+
exclude = .git,__pycache__,venv,.eggs,*.egg
23+
ignore = Q000, WPS602, WPS432, WPS305, WPS221, WPS230, WPS234, WPS433, WPS440, W503, WPS331, WPS306, WPS237, WPS202, RST301, RST306, WPS214, WPS235, WPS226, WPS337, WPS320, F821, WPS201
24+
per-file-ignores =
25+
tests/*.py: S101, WPS226, WPS118, WPS202, WPS204, WPS218, WPS211, WPS604, WPS431, WPS210, WPS201, WPS437
26+
src/typesense/types/*.py: B950, WPS215, WPS111, WPS462, WPS322, WPS428, WPS114, WPS110, WPS202
27+
src/typesense/documents.py: WPS320, E704, D102, WPS428, WPS220
28+
src/typesense/api_call.py: WPS110, WPS211
29+
src/typesense/request_handler.py: WPS110, WPS211
30+
331

432
[metadata]
533
license_file = LICENSE

0 commit comments

Comments
 (0)