Diff of /.pre-commit-config.yaml [000000] .. [c36663]

Switch to unified view

a b/.pre-commit-config.yaml
1
default_language_version:
2
  python: python3
3
4
ci:
5
  autofix_commit_msg: |
6
    [pre-commit.ci] auto fixes from pre-commit.com hooks
7
  autofix_prs: true
8
  autoupdate_branch: "master"
9
  autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
10
  autoupdate_schedule: quarterly
11
  skip: [ ]
12
  submodules: false
13
14
repos:
15
  - repo: https://github.com/pre-commit/pre-commit-hooks
16
    rev: v5.0.0
17
    hooks:
18
      - id: check-yaml
19
      - id: check-json
20
      - id: check-executables-have-shebangs
21
      - id: check-toml
22
      - id: check-docstring-first
23
      - id: check-added-large-files
24
      - id: end-of-file-fixer
25
      - id: trailing-whitespace
26
      - id: check-case-conflict
27
      - id: mixed-line-ending
28
      - id: end-of-file-fixer
29
      - id: check-case-conflict
30
      - id: forbid-new-submodules
31
      - id: pretty-format-json
32
        args: [ "--autofix", "--no-sort-keys", "--indent=4" ]
33
34
  - repo: https://github.com/charliermarsh/ruff-pre-commit
35
    rev: v0.9.7
36
    hooks:
37
      - id: ruff
38
        args: [ "--ignore=E402,E501,F401", "--fix" ] #, --exit-non-zero-on-fix, ]
39
      - id: ruff
40
        name: ruff lint braindecode preview
41
        args: [ "--fix", "--preview", "--select=NPY201" ]
42
        files: ^braindecode/
43
      - id: ruff
44
        name: ruff lint docs, and examples
45
        # D103: missing docstring in public function
46
        # D400: docstring first line must end with period
47
        args: [ "--ignore=D103,D400,E402", "--fix" ]
48
        files: ^docs/|^examples/
49
      - id: ruff-format
50
        files: ^braindecode/|^docs/|^examples/
51
52
53
  - repo: https://github.com/codespell-project/codespell
54
    rev: v2.4.1
55
    hooks:
56
      - id: codespell
57
        args:
58
          - --ignore-words-list=carin,splitted,meaned,wil,whats,additionals,alle,alot,bund,currenty,datas,farenheit,falsy,fo,haa,hass,iif,incomfort,ines,ist,nam,nd,pres,pullrequests,resset,rime,ser,serie,te,technik,ue,unsecure,withing,zar,mane
59
          - --skip="./.*,*.csv,*.json,*.ambr"
60
          - --quiet-level=2
61
        exclude_types: [ csv, json ]
62
        exclude: ^tests/|generated/^.github
63
64
  - repo: https://github.com/asottile/blacken-docs
65
    rev: 1.19.1
66
    hooks:
67
      - id: blacken-docs
68
        exclude: ^.github|CONTRIBUTING.md
69
70
  - repo: https://github.com/pre-commit/mirrors-mypy
71
    rev: v1.15.0
72
    hooks:
73
      - id: mypy
74
        files: braindecode/.*.py|test/.*.py|examples/.*.py
75
        additional_dependencies:
76
          [
77
            types-PyYAML,
78
            types-requests,
79
          ]
80
        verbose: true