Skip to content

Commit 1e6e332

Browse files
authored
fix pre-commit ci (#96)
1 parent dba821e commit 1e6e332

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,6 @@ cython_debug/
163163

164164
.DS_Store
165165
.zed
166+
167+
# Vscode
168+
.vscode

.pre-commit-config.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
repos:
2-
- repo: https://github.com/rtts/djhtml
3-
rev: '3.0.6'
2+
- repo: local
43
hooks:
5-
- id: djhtml
6-
entry: djhtml --tabwidth 2 templates
4+
- id: format
5+
name: format
6+
stages: [commit]
7+
entry: pdm
8+
args: ['format']
9+
language: system
10+
pass_filenames: false

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ plugins = ["pdm-autoexport"]
2424
dev = "flask --app app run --debug"
2525
test = "pytest -n auto"
2626
run_black = "black ."
27-
djhtml = "djhtml --tabwidth 2 templates"
27+
djhtml.cmd = "djhtml --tabwidth 2 templates"
28+
djhtml.env = {PYTHONUTF8 = "1"}
2829
format = {composite = ["run_black", "djhtml"]}
2930

3031
[tool.pdm.dev-dependencies]

0 commit comments

Comments
 (0)