-
Notifications
You must be signed in to change notification settings - Fork 5
/
.flake8
35 lines (26 loc) · 1000 Bytes
/
.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
[flake8]
# General settings
# B,B9: Fake8-BugBear (additional bugs / design issues)
# BLK: Black (code formatting)
# C: McCabe (code complexity)
# E,W: PyCodeStyle (Pep8 warnings/errors)
# F: PyFlakes (invalid Python code)
# I: Flake8-Import-Order (import ordering)
# S: Bandit (security footguns etc.)
select = B,B9,BLK,C,E,F,I,W,S
# E203: Pep8 (whitespace before ':') - incompatible with Black
# E501: Pep8 (80 character line length) - replaced by BugBear check
# W503: Pep8 (Line break before binary operator) - incompatible with Black
ignore = E203,E501,W503
# S101: Use of assert - ignored in tests due to PyTest
per-file-ignores =
tests/*:S101
*test.py:S101
# Flake8-Bugbear
max-line-length = 120
# Flake8-Import-Order settings
# See https://mapaction.atlassian.net/browse/DATAPIPE-84 for discussion over these names
application-import-names = utils,pipeline_plugin,airflow.operators.pipeline_plugin,tests
import-order-style = google
# PyCodeStyle settings
max-complexity = 10