File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,23 @@ jobs:
32
32
- name : Checkout
33
33
uses : actions/checkout@v2
34
34
35
- - name : Set up Python
36
- uses : actions/ setup-python@v1
37
- with :
38
- python-version : ' 3.8.6 '
35
+ - name : Run the set up script
36
+ id : setup
37
+ run : |
38
+ "${{ github.workspace }}/action-setup.sh"
39
39
40
40
- name : Install flake8
41
41
run : |
42
- python -m pip install --upgrade pip
43
- pip install --quiet flake8
44
- pip install --quiet pep8-naming
42
+ source "${{ steps.setup.outputs.python-venv-activate-script-path }}"
43
+ "${{ steps.setup.outputs.python-command }}" \
44
+ -m \
45
+ pip install \
46
+ flake8 \
47
+ pep8-naming
45
48
46
49
- name : Lint with flake8
47
50
env :
48
51
PYTHON_PROJECT_PATH : ${GITHUB_WORKSPACE}/compilesketches
49
52
run : |
53
+ source "${{ steps.setup.outputs.python-venv-activate-script-path }}"
50
54
flake8 --config "${{ env.PYTHON_PROJECT_PATH }}/.flake8" --show-source "${{ env.PYTHON_PROJECT_PATH }}"
Original file line number Diff line number Diff line change 1
1
[flake8]
2
2
doctests = True
3
+ extend-exclude = .venv
3
4
# W503 and W504 are mutually exclusive. PEP 8 recommends line break before.
4
5
ignore = W503
5
6
max-complexity = 10
You can’t perform that action at this time.
0 commit comments