Adds PoeThePoet and PreCommit

This commit is contained in:
2024-05-21 20:34:50 -03:00
parent a1077e812f
commit 000cb08e37
4 changed files with 188 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]

5
.githooks/set-hooks.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
pre-commit install --config .githooks/pre-commit-config.yaml
pre-commit autoupdate --config .githooks/pre-commit-config.yaml