Skip to content

Commit 9406dfe

Browse files
committed
fix: Add flake8 and safety
1 parent 5cc6802 commit 9406dfe

File tree

3 files changed

+390
-10
lines changed

3 files changed

+390
-10
lines changed

.github/workflows/build-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,23 @@ jobs:
3737
- name: Lint with flake8
3838
run: |
3939
# stop the build if there are Python syntax errors or undefined names
40-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
40+
poetry run flake8 . --count --select=E9,F63,F7,F82 \
41+
--show-source --statistics
4142
4243
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
43-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
44+
poetry run flake8 . --count --exit-zero --max-complexity=10 \
45+
--max-line-length=127 --statistics
4446
4547
- name: Run tests
4648
run: poetry run pytest
4749

4850
- name: Dependencies safety check
49-
run: poetry export --without-hashes -f requirements.txt | safety check --full-report --stdin
51+
run: |
52+
poetry export --without-hashes -f requirements.txt | \
53+
poetry run safety check --full-report --stdin
5054
5155
build-publish:
52-
name: Build project
56+
name: Build and publish
5357
runs-on: ubuntu-latest
5458
permissions:
5559
id-token: write

0 commit comments

Comments
 (0)