forked from ape364/aioetherscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 1005 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: detect-private-key
- id: name-tests-test
args: [--pytest-test-first]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
- repo: https://github.com/python-poetry/poetry
rev: 1.7.1
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
name: poetry-export dev
args: [--with, dev, -f, requirements.txt, -o, requirements.dev.txt, --without-hashes]
- id: poetry-export
name: poetry-export prod
args: [-f, requirements.txt, -o, requirements.txt, --without-hashes]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.6
hooks:
# Run the linter.
- id: ruff
args: [ --fix, --show-fixes]
# Run the formatter.
- id: ruff-format