Skip to content

Commit 4c5945f

Browse files
committed
Manual merge
1 parent 5fb45c8 commit 4c5945f

File tree

1,701 files changed

+175829
-31980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,701 files changed

+175829
-31980
lines changed

.github/workflows/codegen.yml renamed to .github/workflows/python-tooling.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Codegen
1+
name: Python tooling
22

33
on:
44
pull_request:
55
paths:
66
- "misc/bazel/**"
77
- "misc/codegen/**"
8+
- "misc/scripts/models-as-data/bulk_generate_mad.py"
89
- "*.bazel*"
910
- .github/workflows/codegen.yml
1011
- .pre-commit-config.yaml
@@ -17,17 +18,17 @@ permissions:
1718
contents: read
1819

1920
jobs:
20-
codegen:
21+
check-python-tooling:
2122
runs-on: ubuntu-latest
2223
steps:
2324
- uses: actions/checkout@v4
24-
- uses: actions/setup-python@v4
25+
- uses: actions/setup-python@v5
2526
with:
26-
python-version-file: 'misc/codegen/.python-version'
27+
python-version: '3.12'
2728
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
2829
name: Check that python code is properly formatted
2930
with:
30-
extra_args: autopep8 --all-files
31+
extra_args: black --all-files
3132
- name: Run codegen tests
3233
shell: bash
3334
run: |

.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3+
default_language_version:
4+
python: python3.12
35
repos:
46
- repo: https://github.com/pre-commit/pre-commit-hooks
57
rev: v3.2.0
68
hooks:
79
- id: trailing-whitespace
810
exclude: /test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
911
- id: end-of-file-fixer
10-
exclude: /test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
12+
exclude: Cargo.lock$|/test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
1113

1214
- repo: https://github.com/pre-commit/mirrors-clang-format
1315
rev: v17.0.6
1416
hooks:
1517
- id: clang-format
1618

17-
- repo: https://github.com/pre-commit/mirrors-autopep8
18-
rev: v2.0.4
19+
- repo: https://github.com/psf/black
20+
rev: 25.1.0
1921
hooks:
20-
- id: autopep8
21-
files: ^misc/codegen/.*\.py
22+
- id: black
23+
files: ^(misc/codegen/.*|misc/scripts/models-as-data/.*)\.py$
2224

2325
- repo: local
2426
hooks:

0 commit comments

Comments
 (0)