|
1 | 1 | --- |
2 | 2 | ci: |
3 | | - autoupdate_schedule: quarterly |
4 | | - |
| 3 | + autoupdate_schedule: quarterly |
5 | 4 | repos: |
6 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
7 | | - rev: v4.6.0 |
8 | | - hooks: |
9 | | - - id: end-of-file-fixer |
10 | | - - id: trailing-whitespace |
11 | | - exclude: miscellaneous/structures/SiO2.xyz |
12 | | - - id: check-yaml |
13 | | - - id: check-added-large-files |
14 | | - args: [--maxkb=6000] |
15 | | - - repo: https://github.com/pycqa/isort |
16 | | - rev: 5.13.2 |
17 | | - hooks: |
18 | | - - id: isort |
19 | | - args: [--profile, black, --filter-files] |
20 | | - - repo: https://github.com/PyCQA/autoflake |
21 | | - rev: v2.3.1 |
22 | | - hooks: |
23 | | - - id: autoflake |
24 | | - - repo: https://github.com/asottile/pyupgrade |
25 | | - rev: v3.16.0 |
26 | | - hooks: |
27 | | - - id: pyupgrade |
28 | | - args: [--py38-plus] |
29 | | - - repo: https://github.com/psf/black |
30 | | - rev: 24.4.2 |
31 | | - hooks: |
32 | | - - id: black |
33 | | - language_version: python3 # Should be a command that runs python3.6+ |
34 | | - - repo: https://github.com/PyCQA/flake8 |
35 | | - rev: 7.1.0 |
36 | | - hooks: |
37 | | - - id: flake8 |
38 | | - args: [--count, --show-source, --statistics] |
39 | | - additional_dependencies: |
40 | | - - flake8-bugbear |
41 | | - - flake8-builtins |
42 | | - - flake8-comprehensions |
43 | | - - flake8-debugger |
44 | | - - flake8-logging-format |
45 | | - - pep8-naming |
46 | | - - pyflakes |
47 | | - - tryceratops |
48 | | - # - repo: https://github.com/pre-commit/mirrors-mypy |
49 | | - # rev: v1.5.1 |
50 | | - # hooks: |
51 | | - # - id: mypy |
52 | | - # additional_dependencies: |
53 | | - # - types-click-spinner |
54 | | - # - types-requests |
55 | | - # - types-tabulate |
56 | | - # - types-toml |
57 | | - - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt |
58 | | - rev: 0.2.3 |
59 | | - hooks: |
60 | | - - id: yamlfmt |
61 | | - - repo: https://github.com/asottile/setup-cfg-fmt |
62 | | - rev: v2.5.0 |
63 | | - hooks: |
64 | | - - id: setup-cfg-fmt |
65 | | - - repo: https://github.com/kynan/nbstripout |
66 | | - rev: 0.7.1 |
67 | | - hooks: |
68 | | - - id: nbstripout |
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | + rev: v5.0.0 |
| 7 | + hooks: |
| 8 | + - id: end-of-file-fixer |
| 9 | + - id: trailing-whitespace |
| 10 | + - id: check-yaml |
| 11 | + - id: check-added-large-files |
| 12 | + args: [--maxkb=6000] |
| 13 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 14 | + rev: v0.7.4 |
| 15 | + hooks: |
| 16 | + # Ruff fix |
| 17 | + - id: ruff |
| 18 | + types_or: [python, pyi] |
| 19 | + args: [--fix] |
| 20 | + name: ruff (fix) |
| 21 | + # Ruff formatter |
| 22 | + - id: ruff-format |
| 23 | + types_or: [python, pyi] |
| 24 | + name: ruff (format) |
| 25 | + - repo: https://github.com/google/yamlfmt |
| 26 | + rev: v0.14.0 |
| 27 | + hooks: |
| 28 | + - id: yamlfmt |
| 29 | + name: YAML (format) |
| 30 | + types: [yaml] |
| 31 | + - repo: https://github.com/kynan/nbstripout |
| 32 | + rev: 0.8.1 |
| 33 | + hooks: |
| 34 | + - id: nbstripout |
0 commit comments