Skip to content

Commit fb817f1

Browse files
committed
Ignore non existing files with flake8
This prevents flake8 from showing a "No such file or directory" error which can occur when running automated checks on deleted files.
1 parent d4bfdd5 commit fb817f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.cfg

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[flake8]
2-
ignore = E111,E114
2+
ignore = E111,E114,E902
33
max-complexity = 10
4+
5+
# Notes:
6+
# - E902 is dissabled to prevent IO errors. The automated tests generate a list
7+
# of files that were changed (added, removed and edited) and runs the flake8
8+
# on those. Disabling this error will prevent false negative tests when a
9+
# python file has been removed.

0 commit comments

Comments
 (0)