Skip to content

Commit a6097f2

Browse files
committed
wip
1 parent 2058053 commit a6097f2

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

.pre-commit-config.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# HOWTO: https://pre-commit.com/#usage
2+
# pip3 install pre-commit
3+
# pre-commit install -t pre-commit -t pre-push
4+
5+
repos:
6+
# - repo: https://github.com/psf/black
7+
# rev: 23.11.0
8+
# hooks:
9+
# - id: black
10+
# - repo: https://github.com/pre-commit/mirrors-prettier
11+
# rev: v3.1.0
12+
# hooks:
13+
# - id: prettier
14+
# exclude: tests_recording/test_data/
15+
# - repo: https://github.com/pre-commit/pre-commit-hooks
16+
# rev: v4.5.0
17+
# hooks:
18+
# - id: check-added-large-files
19+
# exclude: tests_recording/test_data/test_api/
20+
# - id: check-ast
21+
# - id: check-builtin-literals
22+
# - id: check-docstring-first
23+
# - id: check-executables-have-shebangs
24+
# exclude: (files/bash-completion/packit|tests/data/)
25+
# - id: check-merge-conflict
26+
# - id: check-symlinks
27+
# - id: check-yaml
28+
# - id: detect-private-key
29+
# exclude: tests/integration/conftest.py
30+
# - id: end-of-file-fixer
31+
# exclude: ^(tests/data/patches|tests/.+\.patch)
32+
# - id: mixed-line-ending
33+
# - id: trailing-whitespace
34+
# exclude: ^(tests/data/patches|tests/.+\.patch)
35+
- repo: https://github.com/astral-sh/ruff-pre-commit
36+
rev: v0.1.6
37+
hooks:
38+
- id: ruff
39+
args: [--fix, --exit-non-zero-on-fix]
40+
- repo: https://github.com/pre-commit/mirrors-mypy
41+
rev: v1.7.1
42+
hooks:
43+
- id: mypy
44+
args: [--no-strict-optional, --ignore-missing-imports]
45+
additional_dependencies:
46+
[
47+
types-click,
48+
types-pkg_resources,
49+
types-requests,
50+
types-tabulate,
51+
types-Deprecated,
52+
types-PyYAML,
53+
types-cachetools,
54+
]
55+
# - repo: https://github.com/teemtee/tmt.git
56+
# rev: 1.29.0
57+
# hooks:
58+
# - id: tmt-lint
59+
# - repo: https://github.com/packit/pre-commit-hooks
60+
# rev: v1.2.0
61+
# hooks:
62+
# - id: validate-config # passes when packit not installed (e.g. in CI)
63+
# - id: check-rebase
64+
# args:
65+
# - https://github.com/packit/packit.git
66+
# stages: [manual, push]
67+
# - repo: https://github.com/python-jsonschema/check-jsonschema
68+
# rev: 0.28.0
69+
# hooks:
70+
# - id: check-github-workflows
71+
# args: ["--verbose"]
72+
# - repo: https://github.com/Lucas-C/pre-commit-hooks
73+
# rev: v1.5.5
74+
# hooks:
75+
# - id: insert-license
76+
# files: \.py$
77+
# exclude: (tests/data/|tests_recording/test_data/)
78+
# args:
79+
# - --license-filepath
80+
# - LICENSE_HEADER.txt
81+
# - --comment-style
82+
# - "#"

0 commit comments

Comments
 (0)