-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
70 lines (63 loc) · 2.68 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This is the config for using `pre-commit` on this repository.
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
#
# NOTE: Individual hook revisions are kept up to date automatically with the `auto_updates` workflow, which
# bumps hooks to the latest tag. That workflow manually specifies every repository except for `poetry`
# since it sometimes specifies the most recent tag on a stable version branch instead of the default branch.
# NOTE: New repos added here should also be added to the `auto_updates` workflow.
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: trailing-whitespace
exclude_types: [svg]
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: no-commit-to-branch
- repo: https://github.com/psf/black
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: f0b5944bef86f50d875305821a0ab0d8c601e465 # frozen: v0.8.4
hooks:
- id: ruff
- repo: https://github.com/dosisod/refurb
rev: 2e31f0033b6c00bf99912fc6a8b5fd00460c9ba0 # frozen: v2.0.0
hooks:
- id: refurb
- repo: https://github.com/jendrikseipp/vulture
rev: dada4a02e862cfe72d6c8eac2e9b7aae080b1df2 # frozen: v2.14
hooks:
- id: vulture
- repo: https://github.com/adrienverge/yamllint
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # frozen: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/python-poetry/poetry
# NOTE: The frozen version here may not always be the latest version:
# https://python-poetry.org/docs/pre-commit-hooks/#why-does-pre-commit-autoupdate-not-update-to-the-latest-version
# NOTE: This `rev` should be manually updated whenever `poetry` is updated. The `rev` can be found by checking out
# the `poetry` repository and running the command: `git show-ref --tags <tag_name>`
rev: 19a2f7bddb9bdf931a229ea0913a84021f3f9b93 # frozen: 1.8.5
hooks:
- id: poetry-check
args: [--lock]
- id: poetry-lock
args: [--no-update, --no-cache]
# NOTE: Don't use this config for your own repositories. Instead, see
# "Git pre-commit Integration" at https://docs.phylum.io/phylum-ci/git_precommit
- repo: local
hooks:
- id: phylum-ci
name: analyze dependencies with phylum-ci
language: system
files: ^poetry\.lock$
entry: poetry run phylum-ci -vv