Skip to content

Commit bc1ed80

Browse files
Merge branch 'main' into impr/3995/NO_COLOR+FORCE_COLOR
2 parents dc3dd52 + 68cb5b3 commit bc1ed80

File tree

422 files changed

+4038
-3415
lines changed

Some content is hidden

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

422 files changed

+4038
-3415
lines changed

.github/ISSUE_TEMPLATE/BUG-REPORT.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ body:
8181
label: Pylint version
8282
description: >-
8383
Please copy and paste the result of `pylint --version` or specify the range of
84-
version affected.
84+
versions affected.
8585
placeholder: |
86-
pylint 2.9.6
87-
astroid 2.6.5
88-
Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
86+
pylint 3.3.0
87+
astroid 3.3.0
88+
Python 3.12.0 (v3.12.0:0fb18b02c8, Oct 2 2023, 09:45:56)
8989
render: shell
9090
validations:
9191
required: true

.github/workflows/changelog.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
CACHE_VERSION: 1
1010
KEY_PREFIX: base-venv
11-
DEFAULT_PYTHON: "3.12"
11+
DEFAULT_PYTHON: "3.13"
1212

1313
permissions:
1414
contents: read
@@ -21,14 +21,14 @@ jobs:
2121
timeout-minutes: 10
2222
steps:
2323
- name: Check out code from GitHub
24-
uses: actions/checkout@v4.1.6
24+
uses: actions/checkout@v4.2.2
2525
with:
2626
# `towncrier check` runs `git diff --name-only origin/main...`, which
2727
# needs a non-shallow clone.
2828
fetch-depth: 0
2929
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3030
id: python
31-
uses: actions/setup-python@v5.1.0
31+
uses: actions/setup-python@v5.3.0
3232
with:
3333
python-version: ${{ env.DEFAULT_PYTHON }}
3434
check-latest: true
@@ -41,7 +41,7 @@ jobs:
4141
$GITHUB_OUTPUT
4242
- name: Restore Python virtual environment
4343
id: cache-venv
44-
uses: actions/cache@v4.0.2
44+
uses: actions/cache@v4.1.2
4545
with:
4646
path: venv
4747
key: >-

.github/workflows/checks.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ on:
1111
- "maintenance/**"
1212

1313
env:
14-
CACHE_VERSION: 1
14+
CACHE_VERSION: 2
1515
KEY_PREFIX: base-venv
16-
DEFAULT_PYTHON: "3.11"
16+
DEFAULT_PYTHON: "3.13"
1717
PRE_COMMIT_CACHE: ~/.cache/pre-commit
1818

1919
concurrency:
@@ -33,10 +33,10 @@ jobs:
3333
pre-commit-key: ${{ steps.generate-pre-commit-key.outputs.key }}
3434
steps:
3535
- name: Check out code from GitHub
36-
uses: actions/checkout@v4.1.6
36+
uses: actions/checkout@v4.2.2
3737
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3838
id: python
39-
uses: actions/setup-python@v5.1.0
39+
uses: actions/setup-python@v5.3.0
4040
with:
4141
python-version: ${{ env.DEFAULT_PYTHON }}
4242
check-latest: true
@@ -49,7 +49,7 @@ jobs:
4949
$GITHUB_OUTPUT
5050
- name: Restore Python virtual environment
5151
id: cache-venv
52-
uses: actions/cache@v4.0.2
52+
uses: actions/cache@v4.1.2
5353
with:
5454
path: venv
5555
key: >-
@@ -71,7 +71,7 @@ jobs:
7171
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
7272
- name: Restore pre-commit environment
7373
id: cache-precommit
74-
uses: actions/cache@v4.0.2
74+
uses: actions/cache@v4.1.2
7575
with:
7676
path: ${{ env.PRE_COMMIT_CACHE }}
7777
key: >-
@@ -89,16 +89,16 @@ jobs:
8989
needs: prepare-base
9090
steps:
9191
- name: Check out code from GitHub
92-
uses: actions/checkout@v4.1.6
92+
uses: actions/checkout@v4.2.2
9393
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
9494
id: python
95-
uses: actions/setup-python@v5.1.0
95+
uses: actions/setup-python@v5.3.0
9696
with:
9797
python-version: ${{ env.DEFAULT_PYTHON }}
9898
check-latest: true
9999
- name: Restore Python virtual environment
100100
id: cache-venv
101-
uses: actions/cache@v4.0.2
101+
uses: actions/cache@v4.1.2
102102
with:
103103
path: venv
104104
fail-on-cache-miss: true
@@ -107,7 +107,7 @@ jobs:
107107
needs.prepare-base.outputs.python-key }}
108108
- name: Restore pre-commit environment
109109
id: cache-precommit
110-
uses: actions/cache@v4.0.2
110+
uses: actions/cache@v4.1.2
111111
with:
112112
path: ${{ env.PRE_COMMIT_CACHE }}
113113
fail-on-cache-miss: true
@@ -130,16 +130,16 @@ jobs:
130130
needs: prepare-base
131131
steps:
132132
- name: Check out code from GitHub
133-
uses: actions/checkout@v4.1.6
133+
uses: actions/checkout@v4.2.2
134134
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
135135
id: python
136-
uses: actions/setup-python@v5.1.0
136+
uses: actions/setup-python@v5.3.0
137137
with:
138138
python-version: ${{ env.DEFAULT_PYTHON }}
139139
check-latest: true
140140
- name: Restore Python virtual environment
141141
id: cache-venv
142-
uses: actions/cache@v4.0.2
142+
uses: actions/cache@v4.1.2
143143
with:
144144
path: venv
145145
fail-on-cache-miss: true
@@ -158,16 +158,16 @@ jobs:
158158
needs: prepare-base
159159
steps:
160160
- name: Check out code from GitHub
161-
uses: actions/checkout@v4.1.6
161+
uses: actions/checkout@v4.2.2
162162
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
163163
id: python
164-
uses: actions/setup-python@v5.1.0
164+
uses: actions/setup-python@v5.3.0
165165
with:
166166
python-version: ${{ env.DEFAULT_PYTHON }}
167167
check-latest: true
168168
- name: Restore Python virtual environment
169169
id: cache-venv
170-
uses: actions/cache@v4.0.2
170+
uses: actions/cache@v4.1.2
171171
with:
172172
path: venv
173173
fail-on-cache-miss: true

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v4.1.6
51+
uses: actions/checkout@v4.2.2
5252

5353
# Initializes the CodeQL tools for scanning.
5454
- name: Initialize CodeQL

.github/workflows/primer-test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030
timeout-minutes: 5
3131
strategy:
3232
matrix:
33-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
33+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
3434
outputs:
3535
python-key: ${{ steps.generate-python-key.outputs.key }}
3636
steps:
3737
- name: Check out code from GitHub
38-
uses: actions/checkout@v4.1.6
38+
uses: actions/checkout@v4.2.2
3939
- name: Set up Python ${{ matrix.python-version }}
4040
id: python
41-
uses: actions/setup-python@v5.1.0
41+
uses: actions/setup-python@v5.3.0
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444
check-latest: true
@@ -51,7 +51,7 @@ jobs:
5151
$GITHUB_OUTPUT
5252
- name: Restore Python virtual environment
5353
id: cache-venv
54-
uses: actions/cache@v4.0.2
54+
uses: actions/cache@v4.1.2
5555
with:
5656
path: venv
5757
key: >-
@@ -72,19 +72,19 @@ jobs:
7272
needs: prepare-tests-linux
7373
strategy:
7474
matrix:
75-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
75+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
7676
steps:
7777
- name: Check out code from GitHub
78-
uses: actions/checkout@v4.1.6
78+
uses: actions/checkout@v4.2.2
7979
- name: Set up Python ${{ matrix.python-version }}
8080
id: python
81-
uses: actions/setup-python@v5.1.0
81+
uses: actions/setup-python@v5.3.0
8282
with:
8383
python-version: ${{ matrix.python-version }}
8484
check-latest: true
8585
- name: Restore Python virtual environment
8686
id: cache-venv
87-
uses: actions/cache@v4.0.2
87+
uses: actions/cache@v4.1.2
8888
with:
8989
path: venv
9090
fail-on-cache-miss: true

.github/workflows/primer_comment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
# This needs to be the SAME as in the Main and PR job
1717
CACHE_VERSION: 4
1818
KEY_PREFIX: venv-primer
19-
DEFAULT_PYTHON: "3.12"
19+
DEFAULT_PYTHON: "3.13"
2020

2121
permissions:
2222
contents: read
@@ -30,18 +30,18 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Check out code from GitHub
33-
uses: actions/checkout@v4.1.6
33+
uses: actions/checkout@v4.2.2
3434
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3535
id: python
36-
uses: actions/setup-python@v5.1.0
36+
uses: actions/setup-python@v5.3.0
3737
with:
3838
python-version: ${{ env.DEFAULT_PYTHON }}
3939
check-latest: true
4040

4141
# Restore cached Python environment
4242
- name: Restore Python virtual environment
4343
id: cache-venv
44-
uses: actions/cache@v4.0.2
44+
uses: actions/cache@v4.1.2
4545
with:
4646
path: venv
4747
key:

.github/workflows/primer_run_main.yaml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ jobs:
2929
timeout-minutes: 45
3030
strategy:
3131
matrix:
32-
python-version: ["3.8", "3.12"]
32+
python-version: ["3.9", "3.13"]
3333
batches: [4]
3434
batchIdx: [0, 1, 2, 3]
3535
steps:
3636
- name: Check out code from GitHub
37-
uses: actions/checkout@v4.1.6
37+
uses: actions/checkout@v4.2.2
3838
- name: Set up Python ${{ matrix.python-version }}
3939
id: python
40-
uses: actions/setup-python@v5.1.0
40+
uses: actions/setup-python@v5.3.0
4141
with:
4242
python-version: ${{ matrix.python-version }}
4343
check-latest: true
4444

4545
# Create a re-usable virtual environment
46-
- name: Create Python virtual environment cache
46+
- name: Restore Python virtual environment cache
4747
id: cache-venv
48-
uses: actions/cache@v4.0.2
48+
uses: actions/cache/restore@v4.1.2
4949
with:
5050
path: venv
5151
key:
@@ -60,6 +60,17 @@ jobs:
6060
. venv/bin/activate
6161
python -m pip install -U pip setuptools wheel
6262
pip install -U -r requirements_test.txt
63+
# Save cached Python environment (explicit because cancel-in-progress: true)
64+
- name: Save Python virtual environment to cache
65+
if: steps.cache-venv.outputs.cache-hit != 'true'
66+
uses: actions/cache/[email protected]
67+
with:
68+
path: venv
69+
key:
70+
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
71+
env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{ hashFiles('pyproject.toml',
72+
'requirements_test.txt', 'requirements_test_min.txt',
73+
'requirements_test_pre_commit.txt') }}
6374

6475
# Cache primer packages
6576
- name: Get commit string
@@ -71,7 +82,7 @@ jobs:
7182
echo "commitstring=$output" >> $GITHUB_OUTPUT
7283
- name: Restore projects cache
7384
id: cache-projects
74-
uses: actions/cache@v4.0.2
85+
uses: actions/cache/restore@v4.1.2
7586
with:
7687
path: tests/.pylint_primer_tests/
7788
key: >-
@@ -82,8 +93,16 @@ jobs:
8293
run: |
8394
. venv/bin/activate
8495
python tests/primer/__main__.py prepare --clone
96+
- name: Save projects cache
97+
if: steps.cache-projects.outputs.cache-hit != 'true'
98+
uses: actions/cache/[email protected]
99+
with:
100+
path: tests/.pylint_primer_tests/
101+
key: >-
102+
${{ runner.os }}-${{ matrix.python-version }}-${{
103+
steps.commitstring.outputs.commitstring }}-primer
85104
- name: Upload commit string
86-
uses: actions/upload-artifact@v4.3.3
105+
uses: actions/upload-artifact@v4.4.3
87106
if: matrix.batchIdx == 0
88107
with:
89108
name: primer_commitstring_${{ matrix.python-version }}
@@ -104,7 +123,7 @@ jobs:
104123
then echo "::warning ::$WARNINGS"
105124
fi
106125
- name: Upload output
107-
uses: actions/upload-artifact@v4.3.3
126+
uses: actions/upload-artifact@v4.4.3
108127
with:
109128
name:
110129
primer_output_main_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}

0 commit comments

Comments
 (0)