]> git.madduck.net Git - etc/vim.git/blob - .pre-commit-config.yaml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

a7ae7761494eac06d5c8505e6b560f4b62760559
[etc/vim.git] / .pre-commit-config.yaml
1 # Note: don't use this config for your own repositories. Instead, see
2 # "Version control integration" in docs/integrations/source_version_control.md
3 exclude: ^(profiling/|tests/data/)
4 repos:
5   - repo: local
6     hooks:
7       - id: check-pre-commit-rev-in-example
8         name: Check pre-commit rev in example
9         language: python
10         entry: python -m scripts.check_pre_commit_rev_in_example
11         files: '(CHANGES\.md|source_version_control\.md)$'
12         additional_dependencies:
13           &version_check_dependencies [
14             commonmark==0.9.1,
15             pyyaml==6.0.1,
16             beautifulsoup4==4.9.3,
17           ]
18
19       - id: check-version-in-the-basics-example
20         name: Check black version in the basics example
21         language: python
22         entry: python -m scripts.check_version_in_basics_example
23         files: '(CHANGES\.md|the_basics\.md)$'
24         additional_dependencies: *version_check_dependencies
25
26   - repo: https://github.com/pycqa/isort
27     rev: 5.12.0
28     hooks:
29       - id: isort
30
31   - repo: https://github.com/pycqa/flake8
32     rev: 6.1.0
33     hooks:
34       - id: flake8
35         additional_dependencies:
36           - flake8-bugbear
37           - flake8-comprehensions
38           - flake8-simplify
39         exclude: ^src/blib2to3/
40
41   - repo: https://github.com/pre-commit/mirrors-mypy
42     rev: v1.4.1
43     hooks:
44       - id: mypy
45         exclude: ^docs/conf.py
46         additional_dependencies:
47           - types-PyYAML
48           - tomli >= 0.2.6, < 2.0.0
49           - click >= 8.1.0, != 8.1.4, != 8.1.5
50           - packaging >= 22.0
51           - platformdirs >= 2.1.0
52           - pytest
53           - hypothesis
54
55   - repo: https://github.com/pre-commit/mirrors-prettier
56     rev: v3.0.1
57     hooks:
58       - id: prettier
59         exclude: \.github/workflows/diff_shades\.yml
60
61   - repo: https://github.com/pre-commit/pre-commit-hooks
62     rev: v4.4.0
63     hooks:
64       - id: end-of-file-fixer
65       - id: trailing-whitespace
66
67 ci:
68   autoupdate_schedule: quarterly