-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pre-commits instead of black in ci
- Loading branch information
1 parent
d1ef585
commit 0ac8849
Showing
1 changed file
with
6 additions
and
14 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 |
---|---|---|
|
@@ -3,22 +3,14 @@ name: Tests | |
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
formatting: | ||
name: Check Black Formatting | ||
pre-commit: | ||
name: Run pre-commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Install black | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install black | ||
- name: Check code formatting with black | ||
run: | | ||
black --check --diff --color django_pwned tests setup.py | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
0ac8849
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report