Skip to content

Commit 11f1714

Browse files
fix(workflow): pipx usage for flake8, pyright
1 parent 34bc5f5 commit 11f1714

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.github/workflows/lint.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
11-
- name: Set up Python 3.10
12-
uses: actions/setup-python@v2
13-
with:
14-
python-version: "3.10"
15-
16-
- name: Install requirements
17-
run: |
18-
pip install pipx
19-
pipx install cookiecutter
20-
pipx runpip cookiecutter install -r requirements.txt
10+
- uses: actions/checkout@v3
11+
- name: Set up Python 3.10
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.10"
2115

22-
- name: Linting code by flake8
23-
run: |
24-
pipx run flake8 --show-source --statistics
25-
26-
- name: Check types by pyright
27-
run: |
28-
pipx run pyright
16+
- name: Install requirements
17+
run: |
18+
pip install flake8 pyright
19+
pip install -r requirements.txt
20+
21+
- name: Linting code by flake8
22+
run: |
23+
flake8 --show-source --statistics
24+
25+
- name: Check types by pyright
26+
run: |
27+
pyright

0 commit comments

Comments
 (0)