mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
Go all the way and use docker-compose for linting
This commit is contained in:
parent
6da0d461ab
commit
e45cf11d94
1 changed files with 5 additions and 18 deletions
23
.github/workflows/test.yaml
vendored
23
.github/workflows/test.yaml
vendored
|
@ -12,27 +12,14 @@ on:
|
|||
jobs:
|
||||
python-linting:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v3
|
||||
- name: Install linters
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install bandit black flake8 mypy types-requests
|
||||
- name: Lint with flake8
|
||||
|
||||
- name: Linting
|
||||
working-directory: ./src
|
||||
run: flake8 . --count --show-source --statistics
|
||||
- name: Check formatting with black
|
||||
working-directory: ./src
|
||||
run: black --check .
|
||||
- name: Run type checking
|
||||
working-directory: ./src
|
||||
run: mypy .
|
||||
- name: Run bandit security scanning
|
||||
working-directory: ./src
|
||||
run: bandit -r .
|
||||
# all of our linting is configured in
|
||||
# registrar/management/commands/lint.py
|
||||
run: docker compose run app python manage.py lint
|
||||
|
||||
python-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue