-
Notifications
You must be signed in to change notification settings - Fork 21
/
.flake8
53 lines (47 loc) · 1.53 KB
/
.flake8
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
[flake8]
max-line-length = 160
max-complexity = 13
inline-quotes = "
application-import-names = dedoc, tests, scripts, train_dataset
import-order-style = pycharm
extend-immutable-calls = File, Depends
banned-modules =
dedoc = Use full path
dedoc.data_structures = Use full path
dedoc.attachments_extractors = Use full path
dedoc.attachments_handler = Use full path
dedoc.converters = Use full path
dedoc.metadata_extractors = Use full path
dedoc.readers = Use full path
dedoc.structure_constructors = Use full path
dedoc.structure_extractors = Use full path
exclude =
.git,
__pycache__,
.idea,
.github,
*__init__.py,
resources,
venv,
.venv,
build,
dedoc.egg-info,
docs/_build,
scripts/fintoc2022/metric.py
# ANN101 - type annotations for self
# T201 - prints found
# JS101 - Multi-line container not broken after opening character
# ANN001 - Missing type annotation for function argument
# ANN201 - Missing return type annotation for public function
# ANN202 - Missing return type annotation for protected function
# ANN204 - Missing return type annotation for special method
# N802 - function name should be lowercase
# I251 - Banned import (Use full path)
ignore =
ANN101
per-file-ignores =
scripts/*:T201
scripts/benchmark_pdf_performance*:JS101
tests/custom_test_runner.py:ANN001,ANN201,ANN202,ANN204,N802
docs/source/_static/code_examples/*:I251,T201
docs/source/_static/code_examples/langchain/*:FOL001,FOL002,FOL003,FOL004,FOL005,I100,I202,I251