Skip to content

Commit

Permalink
Merge branch 'master' into minor-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
wmalgadey authored Dec 28, 2024
2 parents 4a2c328 + 0be233d commit 533f0a0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches-ignore:
- master
pull_request: ~

env:
FORCE_COLOR: 1

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[all]'
- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.1
9 changes: 1 addition & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ repos:
exclude: tests/
args: ["--profile", "black"]

- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
exclude: tests/
args: [--line-length=100]

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.7
hooks:
Expand Down Expand Up @@ -66,7 +59,7 @@ repos:
args: [--line-length=100, --fix]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.0
hooks:
- id: mypy
exclude: tests/
Expand Down

0 comments on commit 533f0a0

Please sign in to comment.