Skip to content

Commit d523ef6

Browse files
authored
Check config.ini is sorted with GitHub Actions (#592)
1 parent 154f515 commit d523ef6

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/lint.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions: {}
6+
7+
env:
8+
FORCE_COLOR: 1
9+
RUFF_OUTPUT_FORMAT: github
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.x"
22+
- uses: tox-dev/action-pre-commit-uv@v1

.pre-commit-config.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: sort-ini
5+
name: Sort config.ini
6+
entry: python3 config/sort-ini.py config/config.ini
7+
language: python
8+
pass_filenames: false
9+
files: ^config/config.ini$

0 commit comments

Comments
 (0)