okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

nekomimi.petrun treefmt in test.sh and the commit hook, as CI doesf51ff27

main
1.1 KiB37 linesraw
1repos:
2  - repo: local
3    hooks:
4      - id: gleam-format
5        name: gleam format
6        entry: gleam format
7        language: system
8        files: ^(src|test)/.*\.gleam$
9      - id: gleam-lint
10        name: Gleam lint
11        entry: test/gleam-lint.sh
12        language: system
13        pass_filenames: false
14        files: ^((src|test)/.*\.gleam$|gleam\.toml$|test/gleam-lint\.sh$|flake/.*\.nix$|flake\.(nix|lock)$)
15  - repo: local
16    hooks:
17      - id: treefmt
18        name: treefmt
19        entry: nix fmt -- --fail-on-change --no-cache
20        language: system
21  - repo: https://github.com/astral-sh/ruff-pre-commit
22    rev: v0.16.10
23    hooks:
24      - id: ruff-check
25        pass_filenames: false
26        files: ^((priv/python|test)/.*\.py$|pyproject\.toml$)
27      - id: ruff-format
28        files: ^(priv/python|test)/.*\.py$
29  - repo: local
30    hooks:
31      - id: ty
32        name: ty check
33        entry: ty check
34        language: python
35        additional_dependencies: [ty==0.0.85]
36        pass_filenames: false
37        files: ^((priv/python|test)/.*\.py$|pyproject\.toml$)