Skip to content

Commit

Permalink
update pre-commit (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau authored Apr 2, 2024
1 parent 349a680 commit 1ebcce8
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 116 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/black.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/codespell.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/flake8.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/isort.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/run_precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: pre-commit

on:
pull_request:
push:
branches: [master]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/update_precommit_hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: peter-evans/create-pull-request@v6
with:
commit-message: pre-commit hooks auto-update
base: main
base: master
token: ${{ secrets.GITHUB_TOKEN }}
delete-branch: true
title: '[BOT] update pre-commit hooks'
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ repos:
args: [--profile, black, --settings-path, pyproject.toml]

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
rev: 24.3.0
hooks:
- id: black
additional_dependencies: ['.[jupyter]']
Expand All @@ -56,7 +56,7 @@ repos:
args: [--mapping, '4', --sequence, '4', --offset, '0']

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
rev: v2.13.0
hooks:
- id: pretty-format-toml
args: [--autofix, --indent, '4']
Expand Down

0 comments on commit 1ebcce8

Please sign in to comment.