Skip to content

Commit

Permalink
Run pre-commits instead of black in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danialkeimasi committed Sep 25, 2023
1 parent d1ef585 commit 0ac8849
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 0ac8849

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
django_pwned
   validators.py45198%44
TOTAL218199% 

Tests Skipped Failures Errors Time
13 0 💤 0 ❌ 0 🔥 0.412s ⏱️

Please sign in to comment.