20
20
steps :
21
21
- uses : actions/checkout@v3
22
22
# NOTE: python-2 is no longer supported here - try with apt
23
- # - name: Set up Python 3.10
24
- # uses: actions/setup-python@v3
25
- # with:
26
- # python-version: "3.10"
27
23
- name : Set up Python 2.7 with APT and link to default
28
24
run : |
29
25
sudo apt install -y python2 python-pip
@@ -36,11 +32,12 @@ jobs:
36
32
- name : Lint with flake8
37
33
run : |
38
34
# TODO: fix unittest dir and remove from excludes
39
- # TODO: fix or migrate legacy grsfs-fuse dir and remove from excludes
35
+ # TODO: fix or migrate legacy grsfs-fuse dir and remove from excludes
36
+ # TODO: should tests be included here - currently fail on py3-only FileNotFoundError, etc.
40
37
# stop the build if there are Python syntax errors or undefined names
41
- flake8 . --exclude=state,envhelp,fixture,output,unittest,grsfs-fuse,irclib.py,seafile-seahub_settings-template.py --count --select=E9,F63,F7,F82 --show-source --statistics
38
+ 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
42
39
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
43
- flake8 . --exclude=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
40
+ 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
44
41
# NOTE: for interactive clean up one can use current ignores
45
42
# E501 Ignore long lines, E402 imports below top, E722 bare except,
46
43
# F401 unused imports, F502 explicit list in str expand, F841 unused var,
0 commit comments