Debian Codegraph @

.pre-commit-config.yaml

raw
1 repos:
2 - repo: https://github.com/pre-commit/pre-commit-hooks
3 rev: v4.6.0
4 hooks:
5 - id: end-of-file-fixer
6 - id: debug-statements
7 - repo: https://github.com/MarcoGorelli/absolufy-imports
8 rev: v0.3.1
9 hooks:
10 - id: absolufy-imports
11 name: absolufy-imports
12 - repo: https://github.com/pycqa/isort
13 rev: 5.13.2
14 hooks:
15 - id: isort
16 language_version: python3
17 - repo: https://github.com/asottile/pyupgrade
18 rev: v3.17.0
19 hooks:
20 - id: pyupgrade
21 args:
22 - --py310-plus
23 - repo: https://github.com/psf/black
24 rev: 24.8.0
25 hooks:
26 - id: black
27 language_version: python3
28 args:
29 - --target-version=py310
30 - repo: https://github.com/pycqa/flake8
31 rev: 7.1.1
32 hooks:
33 - id: flake8
34 language_version: python3
35 additional_dependencies:
36 # NOTE: autoupdate does not pick up flake8-bugbear since it is a transitive
37 # dependency. Make sure to update flake8-bugbear manually on a regular basis.
38 - flake8-bugbear==24.8.19
39 - repo: https://github.com/codespell-project/codespell
40 rev: v2.3.0
41 hooks:
42 - id: codespell
43 types_or: [rst, markdown]
44 files: docs
45 additional_dependencies:
46 - tomli
47 - repo: https://github.com/pre-commit/mirrors-mypy
48 # pinned due to
49 # https://github.com/python/typeshed/pull/9771 and
50 # https://github.com/python/mypy/issues/15257 for DaskCollection.__dask_scheduler__
51 rev: v1.11.2
52 hooks:
53 - id: mypy
54 # Override default --ignore-missing-imports
55 # Use pyproject.toml if possible instead of adding command line parameters here
56 args: [--warn-unused-configs]
57 additional_dependencies:
58 # Type stubs
59 # - pandas-stubs # TODO
60 - types-docutils
61 - types-PyYAML
62 - types-psutil
63 - types-requests
64 - types-setuptools
65 # Typed libraries
66 - numpy
67 - pytest