|
| 1 | +repos: |
| 2 | + - repo: https://github.com/asottile/add-trailing-comma |
| 3 | + rev: v3.1.0 |
| 4 | + hooks: |
| 5 | + - id: add-trailing-comma |
| 6 | + - repo: https://github.com/psf/black.git |
| 7 | + rev: 24.4.0 |
| 8 | + hooks: |
| 9 | + - id: black |
| 10 | + - repo: https://github.com/nbQA-dev/nbQA |
| 11 | + rev: 1.8.5 |
| 12 | + hooks: |
| 13 | + - id: nbqa-black |
| 14 | + name: nbqa-black |
| 15 | + description: Run 'black' on a Jupyter Notebook |
| 16 | + entry: nbqa black |
| 17 | + language: python |
| 18 | + require_serial: true |
| 19 | + types_or: [jupyter, markdown] |
| 20 | + additional_dependencies: [black] |
| 21 | + - repo: https://github.com/asottile/pyupgrade |
| 22 | + rev: v3.15.2 |
| 23 | + hooks: |
| 24 | + - id: pyupgrade |
| 25 | + args: [--py39-plus] |
| 26 | + - repo: https://github.com/pycqa/isort |
| 27 | + rev: 5.13.2 |
| 28 | + hooks: |
| 29 | + - id: isort |
| 30 | + - repo: https://github.com/adamchainz/blacken-docs |
| 31 | + rev: 1.16.0 |
| 32 | + hooks: |
| 33 | + - id: blacken-docs |
| 34 | + additional_dependencies: |
| 35 | + - black==24.2.0 |
| 36 | + - repo: https://github.com/nbQA-dev/nbQA |
| 37 | + rev: 1.8.5 |
| 38 | + hooks: |
| 39 | + - id: nbqa-pyupgrade |
| 40 | + name: nbqa-pyupgrade |
| 41 | + description: Run 'pyupgrade' on a Jupyter Notebook |
| 42 | + entry: nbqa pyupgrade |
| 43 | + language: python |
| 44 | + require_serial: true |
| 45 | + types_or: [jupyter, markdown] |
| 46 | + additional_dependencies: [pyupgrade] |
| 47 | + - id: nbqa-isort |
| 48 | + name: nbqa-isort |
| 49 | + description: Run 'isort' on a Jupyter Notebook |
| 50 | + entry: nbqa isort |
| 51 | + language: python |
| 52 | + require_serial: true |
| 53 | + types_or: [jupyter, markdown] |
| 54 | + additional_dependencies: [isort] |
| 55 | + |
| 56 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 57 | + rev: v4.6.0 |
| 58 | + hooks: |
| 59 | + - id: trailing-whitespace |
| 60 | + - id: end-of-file-fixer |
| 61 | + - id: check-yaml |
| 62 | + - id: debug-statements |
| 63 | + - id: name-tests-test |
| 64 | + - id: requirements-txt-fixer |
| 65 | + |
| 66 | + - repo: https://github.com/codespell-project/codespell |
| 67 | + rev: v2.2.6 |
| 68 | + hooks: |
| 69 | + - id: codespell |
| 70 | + additional_dependencies: |
| 71 | + - tomli |
| 72 | + |
| 73 | + - repo: https://github.com/nbQA-dev/nbQA |
| 74 | + rev: 1.8.5 |
| 75 | + hooks: |
| 76 | + - id: nbqa-flake8 |
| 77 | + args: ["--ignore=E501,E712,W291,F632,E203"] |
| 78 | + name: nbqa-flake8 |
| 79 | + description: Run 'flake8' on a Jupyter Notebook |
| 80 | + entry: nbqa flake8 |
| 81 | + language: python |
| 82 | + require_serial: true |
| 83 | + types_or: [jupyter, markdown] |
| 84 | + additional_dependencies: |
| 85 | + - flake8-variables-names |
| 86 | + - pep8-naming |
| 87 | + - flake8-functions-names |
| 88 | + |
| 89 | + - repo: https://github.com/PyCQA/flake8 |
| 90 | + rev: 7.0.0 |
| 91 | + hooks: |
| 92 | + - id: flake8 |
| 93 | + args: ["--ignore=E501,E712,W291,F632,E203"] |
| 94 | + additional_dependencies: |
| 95 | + - flake8-variables-names |
| 96 | + - pep8-naming |
| 97 | + - flake8-functions-names |
| 98 | + |
| 99 | + - repo: https://github.com/nbQA-dev/nbQA |
| 100 | + rev: 1.8.5 |
| 101 | + hooks: |
| 102 | + - id: nbqa-mypy |
| 103 | + name: nbqa-mypy |
| 104 | + description: Run 'mypy' on a Jupyter Notebook |
| 105 | + entry: nbqa mypy |
| 106 | + language: python |
| 107 | + require_serial: true |
| 108 | + types_or: [jupyter, markdown] |
| 109 | + additional_dependencies: |
| 110 | + - mypy |
| 111 | + - pandas-stubs |
| 112 | + - git+https://github.com/numpy/numpy-stubs |
| 113 | + - mypy-extensions |
| 114 | + - types-requests |
| 115 | + - types-PyYAML |
| 116 | + - types-setuptools |
| 117 | + |
| 118 | + args: |
| 119 | + - --cache-dir=/dev/null |
| 120 | + - --cache-dir=nul |
| 121 | + - --no-incremental |
| 122 | + - --explicit-package-bases |
| 123 | + - --ignore-missing-imports |
| 124 | + - --disallow-untyped-calls |
| 125 | + - --disallow-untyped-defs |
| 126 | + - --disallow-untyped-decorators |
| 127 | + - --strict |
| 128 | + - --extra-checks |
| 129 | + - --disallow-any-unimported |
| 130 | + - --disallow-any-decorated |
| 131 | + - --disallow-any-explicit |
| 132 | + - --disallow-any-generics |
| 133 | + - --disallow-subclassing-any |
| 134 | + - --local-partial-types |
| 135 | + - --pretty |
| 136 | + - --force-uppercase-builtins |
| 137 | + - --force-union-syntax |
| 138 | + - --warn-unreachable |
| 139 | + - --warn-redundant-casts |
| 140 | + - --warn-return-any |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 145 | + rev: v1.9.0 |
| 146 | + hooks: |
| 147 | + - id: mypy |
| 148 | + args: |
| 149 | + - --cache-dir=/dev/null |
| 150 | + - --cache-dir=nul |
| 151 | + - --no-incremental |
| 152 | + - --explicit-package-bases |
| 153 | + - --ignore-missing-imports |
| 154 | + - --disallow-untyped-calls |
| 155 | + - --disallow-untyped-defs |
| 156 | + - --disallow-untyped-decorators |
| 157 | + - --strict |
| 158 | + - --extra-checks |
| 159 | + - --disallow-any-unimported |
| 160 | + - --disallow-any-decorated |
| 161 | + - --disallow-any-explicit |
| 162 | + - --disallow-any-generics |
| 163 | + - --disallow-subclassing-any |
| 164 | + - --local-partial-types |
| 165 | + - --pretty |
| 166 | + - --force-uppercase-builtins |
| 167 | + - --force-union-syntax |
| 168 | + - --warn-unreachable |
| 169 | + - --warn-redundant-casts |
| 170 | + - --warn-return-any |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + additional_dependencies: |
| 175 | + - mypy |
| 176 | + - pandas-stubs |
| 177 | + - git+https://github.com/numpy/numpy-stubs |
| 178 | + - mypy-extensions |
| 179 | + - types-requests |
| 180 | + - types-PyYAML |
| 181 | + - types-setuptools |
| 182 | + |
| 183 | + - repo: https://github.com/nbQA-dev/nbQA |
| 184 | + rev: 1.8.5 |
| 185 | + hooks: |
| 186 | + - id: nbqa-pylint |
| 187 | + name: nbqa-pylint |
| 188 | + description: Run 'pylint' on a Jupyter Notebook |
| 189 | + entry: nbqa pylint |
| 190 | + language: python |
| 191 | + require_serial: true |
| 192 | + types_or: [jupyter, markdown] |
| 193 | + additional_dependencies: [pylint] |
| 194 | + args: |
| 195 | + [ |
| 196 | + "--max-line-length=79", |
| 197 | + "--const-naming-style=any", |
| 198 | + "--disable=E0401,W0104", |
| 199 | + ] |
| 200 | + |
| 201 | + - repo: https://github.com/pre-commit/mirrors-pylint |
| 202 | + rev: v2.3.1 |
| 203 | + hooks: |
| 204 | + - id: pylint |
| 205 | + name: pylint |
| 206 | + entry: pylint |
| 207 | + language: python |
| 208 | + types: [python] |
| 209 | + args: |
| 210 | + [--max-line-length=79, "--const-naming-style=any", "--disable=E0401,W0104"] |
| 211 | + additional_dependencies: [pylint] |
| 212 | + |
| 213 | + - repo: https://github.com/nbQA-dev/nbQA |
| 214 | + rev: 1.8.5 |
| 215 | + hooks: |
| 216 | + - id: nbqa-pydocstyle |
| 217 | + name: nbqa-pydocstyle |
| 218 | + description: Run 'pydocstyle' on a Jupyter Notebook |
| 219 | + entry: nbqa pydocstyle |
| 220 | + language: python |
| 221 | + require_serial: true |
| 222 | + types_or: [jupyter, markdown] |
| 223 | + additional_dependencies: [pydocstyle] |
0 commit comments