Skip to content

Commit

Permalink
Managing all linters by pre-commit hooks
Browse files Browse the repository at this point in the history
This will make it easier to manage all the code quality and formatting (linting) tools.
  • Loading branch information
arnav13081994 authored and jleclanche committed Jul 31, 2021
1 parent 0ae2fd4 commit bd2d493
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: python -m pip install flake8 isort black . djangorestframework
- name: Check for flake8 issues
run: flake8 .
- name: Check code formatting with Black
run: black . --check
- name: Check import ordering with isort
run: isort . --check --diff
- name: Install and Run Pre-commit
uses: pre-commit/[email protected]
- name: Check for missing migrations
run: python manage.py makemigrations --check --dry-run
env:
Expand Down

0 comments on commit bd2d493

Please sign in to comment.