forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Managing all linters by pre-commit hooks
This will make it easier to manage all the code quality and formatting (linting) tools.
- Loading branch information
1 parent
0ae2fd4
commit bd2d493
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|