Skip to content

Commit 44c25ff

Browse files
committed
Format YAML files for consistency and readability
1 parent 32ef3e3 commit 44c25ff

3 files changed

Lines changed: 14 additions & 21 deletions

File tree

.github/ISSUE_TEMPLATE/typo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ body:
1919
label: "Opis błędu:"
2020
description: >
2121
Opisz szczegółowo błąd i jego lokalizację.
22+
2223
validations:
2324
required: true
2425
- type: dropdown

.github/workflows/update-lint-and-build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Translation and Linting Workflow
2-
32
on:
43
schedule:
54
- cron: '0 * * * *'
65
push:
76
branches:
87
- '*'
98
workflow_dispatch:
10-
119
permissions: {}
12-
1310
jobs:
1411
update:
1512
runs-on: ubuntu-latest
@@ -18,7 +15,7 @@ jobs:
1815
matrix:
1916
version: [3.15, 3.14, 3.13, 3.12, 3.11, '3.10']
2017
permissions:
21-
contents: write # commit and push
18+
contents: write # commit and push
2219
steps:
2320
- uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
2421
with:
@@ -50,7 +47,7 @@ jobs:
5047
if: ${{ hashFiles('README.md') != '' }}
5148
env:
5249
TX_TOKEN: ${{ secrets.TX_TOKEN }}
53-
- name: Update README.en.md
50+
- name: Update README.en.md
5451
run: python -Werror -m cogapp -rP README.en.md
5552
if: ${{ hashFiles('README.en.md') != '' }}
5653
env:
@@ -60,6 +57,7 @@ jobs:
6057
- name: Check changes significance
6158
run: >
6259
! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# ' -I'^"Last-Translator: ' -I'^"Project-Id-Version: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> "$GITHUB_ENV" || exit 0
60+
6361
- run: git add .
6462
- run: git commit -m "$(python manage_translation.py generate_commit_msg)"
6563
if: env.SIGNIFICANT_CHANGES
@@ -69,7 +67,6 @@ jobs:
6967
with:
7068
branch: ${{ matrix.version }}
7169
github_token: ${{ secrets.GITHUB_TOKEN }}
72-
7370
lint:
7471
runs-on: ubuntu-latest
7572
strategy:
@@ -89,7 +86,6 @@ jobs:
8986
persist-credentials: false
9087
- uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0
9188
- run: sphinx-lint
92-
9389
build:
9490
runs-on: ubuntu-latest
9591
strategy:
@@ -101,7 +97,7 @@ jobs:
10197
steps:
10298
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
10399
with:
104-
python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
100+
python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
105101
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106102
with:
107103
repository: python/cpython
@@ -126,7 +122,6 @@ jobs:
126122
with:
127123
name: build-${{ matrix.version }}-${{ matrix.format }}
128124
path: Doc/build/${{ matrix.format }}
129-
130125
output-pdf:
131126
runs-on: ubuntu-latest
132127
strategy:
@@ -144,7 +139,6 @@ jobs:
144139
with:
145140
name: build-${{ matrix.version }}-pdf
146141
path: .
147-
148142
lint-epub:
149143
runs-on: ubuntu-latest
150144
strategy:

.pre-commit-config.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: 0c7b6c989466a93942def1f84baf36ddfcd60c83 # frozen: v0.15.14
3+
rev: 0c7b6c989466a93942def1f84baf36ddfcd60c83 # frozen: v0.15.14
44
hooks:
55
- id: ruff-check
66
args: [--fix, --exit-non-zero-on-fix]
77
- id: ruff-format
8-
98
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
9+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
1110
hooks:
1211
- id: check-added-large-files
1312
- id: check-case-conflict
@@ -18,27 +17,26 @@ repos:
1817
exclude: ^\.tx/
1918
- id: forbid-submodules
2019
- id: trailing-whitespace
21-
2220
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2
21+
rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2
2422
hooks:
2523
- id: check-github-workflows
26-
2724
- repo: https://github.com/rhysd/actionlint
28-
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
25+
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
2926
hooks:
3027
- id: actionlint
31-
3228
- repo: meta
3329
hooks:
3430
- id: check-hooks-apply
3531
- id: check-useless-excludes
36-
3732
- repo: https://github.com/zizmorcore/zizmor-pre-commit
38-
rev: 9257c6050c0261b8c57e712f632dc4a8010109a9 # frozen: v1.25.2
33+
rev: 9257c6050c0261b8c57e712f632dc4a8010109a9 # frozen: v1.25.2
3934
hooks:
4035
- id: zizmor
4136
args: [--fix]
42-
37+
- repo: https://github.com/google/yamlfmt
38+
rev: 21ca5323a9c87ee37a434e0ca908efc0a89daa07 # frozen: v0.21.0
39+
hooks:
40+
- id: yamlfmt
4341
ci:
4442
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)