Skip to content

Commit 02e5541

Browse files
authored
Merge branch 'main' into patch-1
2 parents b821b21 + b813010 commit 02e5541

File tree

4,762 files changed

+331073
-109647
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,762 files changed

+331073
-109647
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
When reviewing code:
2+
* do not review changes in files with `.expected` extension (they are automatically ensured to be correct).
3+
* in `.ql` and `.qll` files, do not try to review the code itself as you don't understand the programming language
4+
well enough to make comments in these languages. You can still check for typos or comment improvements.

.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:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check overlay annotations
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'rc/*'
8+
pull_request:
9+
branches:
10+
- main
11+
- 'rc/*'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
sync:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Check overlay annotations
22+
run: python config/add-overlay-annotations.py --check java
23+

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

.github/workflows/validate-change-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
- name: Fail if there are any errors with existing change notes
3232

3333
run: |
34-
codeql pack release --groups cpp,csharp,java,javascript,python,ruby,-examples,-test,-experimental
34+
codeql pack release --groups actions,cpp,csharp,go,java,javascript,python,ruby,shared,swift -examples,-test,-experimental

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