-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
44 lines (34 loc) · 1.28 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
[flake8]
ignore =
# 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,
# E203 whitespace before ':'
E203,
# 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,
# 1 blank line required between summary line and description
D205,
# First line should end with a period
D400,
# First line should be in imperative mood
D401,
# First line should not be the function's "signature"
D402
exclude =
template.py
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
zyte_spider_templates/__init__.py:F401
zyte_spider_templates/page_objects/__init__.py:F401
zyte_spider_templates/page_objects/product_navigation_heuristics.py:F401
zyte_spider_templates/pages/__init__.py:F401
# E731: Ignore "do not assign a lambda expression, use a def" since
# we're using quick shortcuts for the tests
tests/test_ecommerce.py:E731
tests/test_job_posting.py:E731