-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathsetup.cfg
61 lines (53 loc) · 1.73 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
[flake8]
# flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
show-source = true
statistics = false
doctests = true
enable-extensions = G
max-line-length = 88
extend-select = B950
extend-ignore = E203,E501,E701
# darglint configuration:
# https://github.com/terrencepreilly/darglint
strictness = long
docstring-style = sphinx
# Flake plugins:
max-complexity = 6
# # Excluding some directories:
exclude = .git,__pycache__,venv,.eggs,*.egg,src/typesense/__init__.py
ignore = Q000, WPS602, WPS432, WPS305, WPS221, WPS230, WPS234, WPS433, WPS440, W503, WPS331, WPS306, WPS237, WPS202, RST301, RST306, WPS214, WPS235, WPS226, WPS337, WPS320, F821, WPS201
per-file-ignores =
tests/*.py: S101, WPS226, WPS118, WPS202, WPS204, WPS218, WPS211, WPS604, WPS431, WPS210, WPS201, WPS437
src/typesense/types/*.py: B950, WPS215, WPS111, WPS462, WPS322, WPS428, WPS114, WPS110, WPS202
src/typesense/documents.py: WPS320, E704, D102, WPS428, WPS220
src/typesense/stemming_dictionaries.py: WPS320, E704, D102, WPS428, WPS220
src/typesense/api_call.py: WPS110, WPS211
src/typesense/request_handler.py: WPS110, WPS211
[metadata]
license_file = LICENSE
[isort]
# isort configuration:
# https://github.com/PyCQA/isort/wiki/isort-Settings
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
[mypy]
# Mypy configuration:
# https://mypy.readthedocs.io/en/latest/config_file.html
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