forked from vitorsilverio/libraryapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (29 loc) · 802 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (29 loc) · 802 Bytes
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
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.263'
hooks:
- id: ruff
name: ruff - linter
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
hooks:
- id: pyupgrade
args: [--py36-plus]
name: pyupgrade - upgrade python syntax
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
name: mypy - optional static type checker
- repo: local
hooks:
- id: pytest
name: pytest - unit tests
entry: pipenv run pytest tests --disable-warnings
stages: [commit]
types: [python]
language: system
pass_filenames: false
always_run: true