Skip to content

Commit

Permalink
Run pre-commit hooks in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark90 committed Jan 2, 2025
1 parent 6801d23 commit 159fc75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@ jobs:
python -m pip install --upgrade pip
pip install flit
flit install --deps develop
- name: Check formatting
run: |
black --check .
- name: Lint with ruff
run: |
ruff check .
- name: MyPy
run: |
mypy -p oauth2_lib
- name: License headers
run: |
apache-license-check --copyright "2019-`date +%Y` SURF" oauth2_lib
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
- name: Test with pytest
run: |
mkdir reports
Expand Down
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ repos:
rev: 24.10.0
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
Expand Down Expand Up @@ -39,8 +38,7 @@ repos:
rev: v1.14.1
hooks:
- id: mypy
language_version: python3.11
additional_dependencies: [pydantic<2.0.0, strawberry-graphql]
additional_dependencies: [strawberry-graphql]
args:
- --no-warn-unused-ignores
- --allow-untyped-decorators
Expand Down

0 comments on commit 159fc75

Please sign in to comment.