Skip to content

Commit

Permalink
Add CI job to make easier to spot linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-bulnes authored and sssoleileraaa committed Jun 10, 2021
1 parent bc7e116 commit 8e6ece0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ common-steps:
export PYTHONPATH=$PYTHONPATH:. # so alembic can get to Base metadata
make check --keep-going
- &check_python_dependencies_for_vulns
- &run_lint
run:
name: Check Python dependencies for known vulnerabilities
name: Run lint, then static analysis on source code to find security issues
command: |
set -e
source .venv/bin/activate
make safety
make check-black check-isort lint bandit
- &run_static_analysis
- &check_python_dependencies_for_vulns
run:
name: Run static analysis on source code to find security issues
name: Check Python dependencies for known vulnerabilities
command: |
set -e
source .venv/bin/activate
make bandit
make safety
- &install_packaging_dependencies
run:
Expand Down Expand Up @@ -89,8 +89,8 @@ jobs:
- checkout
- run: sudo apt-get install -y sqlite3 libqt5x11extras5
- *run_tests
- *run_lint
- *check_python_dependencies_for_vulns
- *run_static_analysis

workflows:
version: 2
Expand Down

0 comments on commit 8e6ece0

Please sign in to comment.