Skip to content

Commit 36dbc91

Browse files
committed
Ignore unused globals for now as there are some legacy ones we don't want to touch.
1 parent e6077ba commit 36dbc91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/python-sanity-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636
# TODO: fix unittest dir and remove from excludes
3737
# TODO: fix or migrate legacy grsfs-fuse dir and remove from excludes
3838
# TODO: should tests be included here - currently fail on py3-only FileNotFoundError, etc.
39+
# TODO: fix e.g. '`global logger` is unused' and remove F824 from ignores
3940
# stop the build if there are Python syntax errors or undefined names
40-
flake8 . --exclude=tests,state,envhelp,fixture,output,unittest,grsfs-fuse,irclib.py,seafile-seahub_settings-template.py --count --select=E9,F63,F7,F82 --show-source --statistics
41+
flake8 . --exclude=tests,state,envhelp,fixture,output,unittest,grsfs-fuse,irclib.py,seafile-seahub_settings-template.py --count --select=E9,F63,F7,F82 --ignore=F824 --show-source --statistics
4142
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4243
flake8 . --exclude=tests,state,envhelp,fixture,output,unittest,grsfs-fuse,vm-proxy,irclib.py,seafile-seahub_settings-template.py --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4344
# NOTE: for interactive clean up one can use current ignores

0 commit comments

Comments
 (0)