Skip to content

Commit f4f283a

Browse files
committed
Add E402 in pre-commit-config
1 parent 0f518f1 commit f4f283a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repos:
4444

4545
# these are errors that will be ignored by flake8
4646
# https://www.flake8rules.com/rules/{code}.html
47-
- "--ignore=E203,E501,W503,W605"
47+
- "--ignore=E203,E501,W503,W605,E402"
4848
# E203 - Colons should not have any space before them.
4949
# Needed for list indexing
5050
# E501 - Line lengths are recommended to be no greater than 79 characters.
@@ -54,3 +54,5 @@ repos:
5454
# W605 - a backslash-character pair that is not a valid escape sequence now
5555
# generates a DeprecationWarning. This will eventually become a SyntaxError.
5656
# Needed because we use \d as an escape sequence
57+
# E402 - Place module level import at the top.
58+
# Needed to prevent circular import error

0 commit comments

Comments
 (0)