]> 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:

Added decent coloring (#2712)
[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: ^(src/blib2to3/|profiling/|tests/data/)
4 repos:
5   - repo: local
6     hooks:
7       - id: black
8         name: black
9         language: system
10         entry: black
11         minimum_pre_commit_version: 2.9.2
12         require_serial: true
13         types_or: [python, pyi]
14
15       - id: check-pre-commit-rev-in-example
16         name: Check pre-commit rev in example
17         language: python
18         entry: python -m scripts.check_pre_commit_rev_in_example
19         files: '(CHANGES\.md|source_version_control\.md)$'
20         additional_dependencies:
21           &version_check_dependencies [
22             commonmark==0.9.1,
23             pyyaml==5.4.1,
24             beautifulsoup4==4.9.3,
25           ]
26
27       - id: check-version-in-the-basics-example
28         name: Check black version in the basics example
29         language: python
30         entry: python -m scripts.check_version_in_basics_example
31         files: '(CHANGES\.md|the_basics\.md)$'
32         additional_dependencies: *version_check_dependencies
33
34   - repo: https://gitlab.com/pycqa/flake8
35     rev: 3.9.2
36     hooks:
37       - id: flake8
38         additional_dependencies:
39           - flake8-bugbear
40           - flake8-comprehensions
41           - flake8-simplify
42
43   - repo: https://github.com/pre-commit/mirrors-mypy
44     rev: v0.910-1
45     hooks:
46       - id: mypy
47         exclude: ^docs/conf.py
48         additional_dependencies:
49           - types-dataclasses >= 0.1.3
50           - types-PyYAML
51           - tomli >= 0.2.6, < 2.0.0
52           - types-typed-ast >= 1.4.1
53           - click >= 8.0.0
54           - platformdirs >= 2.1.0
55
56   - repo: https://github.com/pre-commit/mirrors-prettier
57     rev: v2.5.1
58     hooks:
59       - id: prettier
60         exclude: ^Pipfile\.lock
61
62   - repo: https://github.com/pre-commit/pre-commit-hooks
63     rev: v4.0.1
64     hooks:
65       - id: end-of-file-fixer
66       - id: trailing-whitespace