Skip to content

Commit 8891535

Browse files
authored
Merge branch 'github:main' into main
2 parents fc319d8 + f568d41 commit 8891535

File tree

4,257 files changed

+224807
-69087
lines changed

Some content is hidden

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

4,257 files changed

+224807
-69087
lines changed

.github/workflows/check-change-note.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
- "shared/**/*.qll"
1717
- "!**/experimental/**"
1818
- "!ql/**"
19-
- "!rust/**"
2019
- ".github/workflows/check-change-note.yml"
2120

2221
jobs:

.github/workflows/codegen.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/python-tooling.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Python tooling
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "misc/bazel/**"
7+
- "misc/codegen/**"
8+
- "misc/scripts/models-as-data/bulk_generate_mad.py"
9+
- "*.bazel*"
10+
- .github/workflows/codegen.yml
11+
- .pre-commit-config.yaml
12+
branches:
13+
- main
14+
- rc/*
15+
- codeql-cli-*
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
check-python-tooling:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.12'
28+
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
29+
name: Check that python code is properly formatted
30+
with:
31+
extra_args: black --all-files
32+
- name: Run codegen tests
33+
shell: bash
34+
run: |
35+
bazel test //misc/codegen/...

.github/workflows/ql-for-ql-dataset_measure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Create database
5454
run: |
5555
"${CODEQL}" database create \
56-
--search-path "${{ github.workspace }}"
56+
--search-path "${{ github.workspace }}" \
5757
--threads 4 \
5858
--language ql --source-root "${{ github.workspace }}/repo" \
5959
"${{ runner.temp }}/database"

.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)