Adds PoeThePoet and PreCommit
This commit is contained in:
13
.githooks/pre-commit-config.yaml
Normal file
13
.githooks/pre-commit-config.yaml
Normal 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
5
.githooks/set-hooks.sh
Normal 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
|
||||
Reference in New Issue
Block a user