forked from scrapinghub/web-poet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
54 lines (46 loc) · 2.07 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
54
[flake8]
ignore =
# Refers to "whitespace before ':'", which black produces.
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
E203,
# Refers to the max-line length. Let's suppress the error and simply
# let black take care on how it wants to format the lines.
E501,
# Refers to "line break before binary operator".
# Similar to above, let black take care of the formatting.
W503,
# Refers to "necessary dict call - rewrite as a literal".
C408,
# To be addressed:
D100, # Missing docstring in public module
D101, # Missing docstring in public class
D103, # Missing docstring in public function
D104, # Missing docstring in public package
D105, # Missing docstring in magic method
D107, # Missing docstring in __init__
D200, # One-line docstring should fit on one line with quotes
D202, # No blank lines allowed after function docstring
D205, # 1 blank line required between summary line and description
D209, # Multi-line docstring closing quotes should be on a separate line
D400, # First line should end with a period
D401, # First line should be in imperative mood
D402, # First line should not be the function's "signature"
# see https://github.com/PyCQA/flake8-bugbear/issues/278
B024 # abstract base class without abstract methods
per-file-ignores =
# F401: Ignore "imported but unused" errors in __init__ files, as those
# imports are there to expose submodule functions so they can be imported
# directly from that module
# F403: Ignore * imports in these files
# D102: Missing docstring in public method
web_poet/__init__.py:F401,F403
web_poet/page_inputs/__init__.py:F401,F403
web_poet/serialization/__init__.py:F401,F403
web_poet/testing/__init__.py:F401,F403
web_poet/testing/pytest.py:D102
tests/*:D102
# the suggestion makes the code worse
tests/test_serialization.py:B028
# Documentation examples may miss docstrings and include undefined, example
# names.
docs/*:D102,F821