Skip to content

Commit a01338a

Browse files
authored
Merge pull request #105 from hugovk/debug-format
Triple lint YAML
2 parents e0e5456 + 5e60c0c commit a01338a

3 files changed

Lines changed: 60 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
FORCE_COLOR: 1
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
cache: pip
21+
- uses: pre-commit/action@v3.0.1

.github/workflows/source-and-docs-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
source-and-docs:
2323
runs-on: ubuntu-22.04
2424
steps:
25+
- name: "Workflow run information"
26+
run: |
27+
echo "git_remote: ${{ inputs.git_remote }}"
28+
echo "git_commit: ${{ inputs.git_commit }}"
29+
echo "cpython_release: ${{ inputs.cpython_release }}"
30+
2531
- name: "Checkout python/release-tools"
2632
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2733

@@ -75,7 +81,7 @@ jobs:
7581
tar xvf Python-${{ inputs.cpython_release }}.tgz
7682
cd Python-${{ inputs.cpython_release }}
7783
78-
./configure --prefix=$(realpath '../installation/')
84+
./configure "--prefix=$(realpath '../installation/')"
7985
make -j
8086
make install -j
8187

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
exclude: windows-release/azure-pipelines.yml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: forbid-submodules
13+
- id: trailing-whitespace
14+
15+
- repo: https://github.com/python-jsonschema/check-jsonschema
16+
rev: 0.28.1
17+
hooks:
18+
- id: check-dependabot
19+
- id: check-github-workflows
20+
21+
- repo: https://github.com/rhysd/actionlint
22+
rev: v1.6.27
23+
hooks:
24+
- id: actionlint
25+
26+
- repo: meta
27+
hooks:
28+
- id: check-hooks-apply
29+
- id: check-useless-excludes
30+
31+
ci:
32+
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)