Skip to content

Commit fa77888

Browse files
committed
Update configuration using latest references
1 parent 5fa6450 commit fa77888

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ on:
3131

3232
jobs:
3333
pre-commit:
34-
runs-on: ubuntu-22.04
34+
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v3
37-
- uses: actions/setup-python@v3
38-
- uses: pre-commit/[email protected]
36+
- uses: actions/[email protected]
37+
- uses: actions/[email protected]
38+
with:
39+
python-version: '3.12'
40+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,37 @@
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

2727
repos:
28-
- repo: https://github.com/timothycrosley/isort
29-
rev: 5.12.0
28+
- repo: https://github.com/PyCQA/isort
29+
rev: 7.0.0
3030
hooks:
3131
- id: isort
3232
additional_dependencies: [toml]
3333
- repo: https://github.com/psf/black
34-
rev: 23.1.0
34+
rev: 25.9.0
3535
hooks:
3636
- id: black
3737
types_or: [python, cython]
3838
- repo: https://github.com/PyCQA/flake8
39-
rev: 5.0.4
39+
rev: 7.3.0
4040
hooks:
4141
- id: flake8
4242
args: [--max-line-length=88, --select=C,E,F,W,B,B950, --extend-ignore = E203,E501]
4343
types_or: [python, cython]
4444
- repo: https://github.com/pre-commit/mirrors-clang-format
45-
rev: v16.0.5
45+
rev: v21.1.2
4646
hooks:
4747
- id: clang-format
4848
types_or: [c, c++, cuda, proto, textproto, java]
4949
args: ["-fallback-style=none", "-style=file", "-i"]
5050
- repo: https://github.com/codespell-project/codespell
51-
rev: v2.2.4
51+
rev: v2.4.1
5252
hooks:
5353
- id: codespell
5454
additional_dependencies: [tomli]
5555
args: ["--toml", "pyproject.toml"]
5656
exclude: (?x)^(.*stemmer.*|.*stop_words.*|^CHANGELOG.md$)
57-
# More details about these pre-commit hooks here:
58-
# https://pre-commit.com/hooks.html
5957
- repo: https://github.com/pre-commit/pre-commit-hooks
60-
rev: v4.4.0
58+
rev: v6.0.0
6159
hooks:
6260
- id: check-case-conflict
6361
- id: check-executables-have-shebangs

0 commit comments

Comments
 (0)