-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (59 loc) · 2.35 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (59 loc) · 2.35 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: local
hooks:
- id: ruff
name: ruff (all)
entry: uv run ruff check --fix --exit-non-zero-on-fix
language: system
types_or: [python, pyi]
files: ^(Coarse-to-Fine|LayoutDiffusion|LayoutFormer\+\+|LayoutPrompter|Parse-Then-Place)/
- id: ruff-format
name: ruff format (all)
entry: uv run ruff format
language: system
types_or: [python, pyi]
files: ^(Coarse-to-Fine|LayoutDiffusion|LayoutFormer\+\+|LayoutPrompter|Parse-Then-Place)/
- id: vulture
name: vulture (all)
entry: uv run vulture --min-confidence 100 LayoutDiffusion/src LayoutDiffusion/improved-diffusion/improved_diffusion LayoutDiffusion/eval_src LayoutDiffusion/util_scripts
language: system
pass_filenames: false
files: ^LayoutDiffusion/
- id: pytest-c2f
name: pytest (Coarse-to-Fine)
entry: bash -c 'cd Coarse-to-Fine && uv run pytest -vsx -o addopts= --cov=coarse_to_fine'
language: system
pass_filenames: false
files: ^Coarse-to-Fine/
- id: pytest-layoutdiffusion
name: pytest (LayoutDiffusion)
entry: bash -c 'uv run --project LayoutDiffusion pytest -vsx -c LayoutDiffusion/pytest.ini LayoutDiffusion/tests'
language: system
pass_filenames: false
files: ^LayoutDiffusion/
- id: pytest-layoutformer-pp
name: pytest (LayoutFormer++)
entry: bash -c 'cd LayoutFormer++ && uv run pytest -vsx -o addopts= --cov=layoutformer_pp'
language: system
pass_filenames: false
files: ^LayoutFormer\+\+/
- id: pytest-layoutprompter
name: pytest (LayoutPrompter)
entry: bash -c 'cd LayoutPrompter && uv run pytest -vsx -o addopts= --cov=layoutprompter'
language: system
pass_filenames: false
files: ^LayoutPrompter/
- id: pytest-parse-then-place
name: pytest (Parse-Then-Place)
entry: bash -c 'cd Parse-Then-Place && uv run pytest -vsx -o addopts= --cov=parse_then_place'
language: system
pass_filenames: false
files: ^Parse-Then-Place/