-
Notifications
You must be signed in to change notification settings - Fork 12
/
.flake8
30 lines (27 loc) · 2.13 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
[flake8]
max_line_length=120
; E203: Spaces before colon. Black and Flake8 conflicts on this rule. Flake8's implementation is unable to
; discriminate well between various scenarios of list slicing using ':'. So we decided to side with Black and
; disabling this rule in Flake8. For more details, see
; https://github.com/psf/black/issues/565
; Python Connector used additional exclusions:
; https://github.com/snowflakedb/snowflake/blob/18776c2a3a40403a7f253d6c62e4d9058f2c4202/Python/snowflake/connector/setup.cfg
; Those exclusions seem to not have been carried over to the current public branch:
; https://sourcegraph.c2.us-central1.gcp-dev.app.snowflake.com/github.com/snowflakedb/snowflake-connector-python/-/blob/setup.cfg
; E122: Continuation line missing indentation or outdented (E122) https://www.flake8rules.com/rules/E122.html
; E125: Continuation line with same indent as next logical line (E125) https://www.flake8rules.com/rules/E125.html
; E126: Continuation line over-indented for hanging indent (E126) https://www.flake8rules.com/rules/E126.html
; E127: Continuation line over-indented for visual indent (E127) https://www.flake8rules.com/rules/E127.html
; E128: Continuation line under-indented for visual indent (E128) https://www.flake8rules.com/rules/E128.html
; E131: Continuation line unaligned for hanging indent (E131) https://www.flake8rules.com/rules/E131.html
; E402: Module level import not at top of file (E402) https://www.flake8rules.com/rules/E402.html
; E501: Line too long (82 > 79 characters) (E501) https://www.flake8rules.com/rules/E501.html
; E722: Do not use bare except, specify exception instead (E722) https://www.flake8rules.com/rules/E722.html
; E731: Do not assign a lambda expression, use a def (E731) https://www.flake8rules.com/rules/E731.html
; F821: Undefined name name (F821) https://www.flake8rules.com/rules/F821.html
; W504: Line break occurred after a binary operator (W504) https://www.flake8rules.com/rules/W504.html
; T2xx: Use print https://github.com/jbkahn/flake8-print
extend-ignore=E203
exclude=build,setup,tool,.tox,connector_python3,parameters.py
per-file-ignores =
tests/*: T2