forked from ssc-oscar/oscar.py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
43 lines (38 loc) · 1.05 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
ci:
skip: [pytest]
default_language_version:
python: python3.8
repos:
# ruff: linting + formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
# pytest: testing
- repo: local
hooks:
- id: pytest
name: pytest
entry: poetry run bash -c 'python3 setup.py && pytest'
language: system
types: [python]
pass_filenames: false
# enforce conventional commit messages
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
# # skip poetry check for now, it's large and slow
# # poetry: check lock and generate requirements.txt
# - repo: https://github.com/python-poetry/poetry
# rev: 1.8.3
# hooks:
# - id: poetry-check
# args: ["--lock"]
# - id: poetry-export
# args: ["-f", "requirements.txt", "--with", "build", "--output", "requirements.txt"]
# verbose: true