Repository navigation
54 lines (50 loc) · 1.84 KB
/
Copy pathpre-commit.yml
File metadata and controls
54 lines (50 loc) · 1.84 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
# SPDX-License-Identifier: AGPL-3.0-or-later
# Commercial license available
# © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
# © Code 2020–2026 Miroslav Šotek. All rights reserved.
# ORCID: 0009-0009-3560-0851
# Contact: www.anulum.li | protoscience@anulum.li
# DEPLOY-PACK — repository validation tooling
name: Exact native hook parity
'on':
workflow_call:
permissions:
contents: read
concurrency:
group: deploy-pack-pre-commit-${{ github.ref }}
cancel-in-progress: true
jobs:
hooks:
name: hooks
runs-on: ubuntu-24.04
timeout-minutes: 15
env:
UV_LINK_MODE: hardlink
UV_CACHE_DIR: ${{ github.workspace }}/.tool-cache/uv
TMPDIR: ${{ github.workspace }}/.tool-cache/tmp
PRE_COMMIT_HOME: ${{ github.workspace }}/.tool-cache/pre-commit
RAYON_NUM_THREADS: '1'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: 'false'
- name: Prepare bounded working directories
run: mkdir -p .tool-cache/tmp .tool-cache/uv
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
with:
python-version: 3.13.16
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d
with:
version: 0.13.10
checksum: bf65ac1a0af10f92c522d91ac096c7c0a39657647b155577e7836c2cbbb4526c
enable-cache: 'false'
- name: Install exact development graph
run: 'uv venv --python 3.13.16 .venv
uv pip install --python .venv/bin/python --require-hashes --build-constraints requirements-dev.txt
--default-index https://pypi.org/simple -r requirements-dev.txt
'
- name: Install exact verified native validation tools
run: make native-tools
- name: Exact native hook parity
run: '.venv/bin/pre-commit run --all-files --show-diff-on-failure
'