Skip to content

Commit

Permalink
Merge pull request #17 from nationalarchives/fix-python-app-check
Browse files Browse the repository at this point in the history
Fix python app check workflow
  • Loading branch information
anthonyhashemi authored Oct 25, 2023
2 parents 3d96546 + d1b1f4f commit 1e63910
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -27,9 +27,9 @@ jobs:
- name: Check dependencies for known security vulnerabilities
run: safety check -r requirements.txt
- name: Check code for potential security vulnerabilities
run: bandit -r .
run: bandit -c pyproject.toml -r .
- name: Check code formatting
run: black . -l 120 --check
run: black . --check
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ description = ""
authors = ["Your Name <[email protected]>"]
readme = "README.md"

[tool.bandit]
exclude_dirs = ['*_test.py', '*/test_*.py', 'venv']

[tool.poetry.dependencies]
python = "^3.11"
cssmin = "0.2.0"
Expand Down

0 comments on commit 1e63910

Please sign in to comment.