Skip to content

Commit f5fe7d3

Browse files
authored
Merge branch 'main' into collections-fix
2 parents 0c768c8 + f79f2b4 commit f5fe7d3

File tree

100 files changed

+926
-790
lines changed

Some content is hidden

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

100 files changed

+926
-790
lines changed

.github/workflows/ci.yaml

+30-27
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
env:
1111
CACHE_VERSION: 3
1212
KEY_PREFIX: venv
13-
DEFAULT_PYTHON: "3.12"
13+
DEFAULT_PYTHON: "3.13"
1414
PRE_COMMIT_CACHE: ~/.cache/pre-commit
1515

1616
concurrency:
@@ -24,10 +24,10 @@ jobs:
2424
timeout-minutes: 20
2525
steps:
2626
- name: Check out code from GitHub
27-
uses: actions/checkout@v4.1.7
27+
uses: actions/checkout@v4.2.2
2828
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
2929
id: python
30-
uses: actions/setup-python@v5.1.1
30+
uses: actions/setup-python@v5.3.0
3131
with:
3232
python-version: ${{ env.DEFAULT_PYTHON }}
3333
check-latest: true
@@ -39,7 +39,7 @@ jobs:
3939
'requirements_full.txt', 'requirements_minimal.txt') }}" >> $GITHUB_OUTPUT
4040
- name: Restore Python virtual environment
4141
id: cache-venv
42-
uses: actions/cache@v4.0.2
42+
uses: actions/cache@v4.1.2
4343
with:
4444
path: venv
4545
key: >-
@@ -59,7 +59,7 @@ jobs:
5959
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
6060
- name: Restore pre-commit environment
6161
id: cache-precommit
62-
uses: actions/cache@v4.0.2
62+
uses: actions/cache@v4.1.2
6363
with:
6464
path: ${{ env.PRE_COMMIT_CACHE }}
6565
key: >-
@@ -81,15 +81,15 @@ jobs:
8181
strategy:
8282
fail-fast: false
8383
matrix:
84-
python-version: [3.9, "3.10", "3.11", "3.12", "3.13-dev"]
84+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
8585
outputs:
8686
python-key: ${{ steps.generate-python-key.outputs.key }}
8787
steps:
8888
- name: Check out code from GitHub
89-
uses: actions/checkout@v4.1.7
89+
uses: actions/checkout@v4.2.2
9090
- name: Set up Python ${{ matrix.python-version }}
9191
id: python
92-
uses: actions/setup-python@v5.1.1
92+
uses: actions/setup-python@v5.3.0
9393
with:
9494
python-version: ${{ matrix.python-version }}
9595
check-latest: true
@@ -106,7 +106,7 @@ jobs:
106106
'requirements_full.txt', 'requirements_minimal.txt') }}" >> $GITHUB_OUTPUT
107107
- name: Restore Python virtual environment
108108
id: cache-venv
109-
uses: actions/cache@v4.0.2
109+
uses: actions/cache@v4.1.2
110110
with:
111111
path: venv
112112
key: >-
@@ -117,18 +117,19 @@ jobs:
117117
run: |
118118
python -m venv venv
119119
. venv/bin/activate
120-
python -m pip install -U pip setuptools wheel
120+
python -m pip install -U pip wheel
121121
pip install -U -r requirements_full.txt
122122
pip install -e .
123123
- name: Run pytest
124124
run: |
125125
. venv/bin/activate
126126
pytest --cov
127127
- name: Upload coverage artifact
128-
uses: actions/upload-artifact@v4.3.4
128+
uses: actions/upload-artifact@v4.5.0
129129
with:
130130
name: coverage-linux-${{ matrix.python-version }}
131131
path: .coverage
132+
include-hidden-files: true
132133

133134
tests-windows:
134135
name: tests / run / ${{ matrix.python-version }} / Windows
@@ -138,17 +139,17 @@ jobs:
138139
strategy:
139140
fail-fast: false
140141
matrix:
141-
python-version: [3.9, "3.10", "3.11", "3.12", "3.13-dev"]
142+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
142143
steps:
143144
- name: Set temp directory
144145
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
145146
# Workaround to set correct temp directory on Windows
146147
# https://github.com/actions/virtual-environments/issues/712
147148
- name: Check out code from GitHub
148-
uses: actions/checkout@v4.1.7
149+
uses: actions/checkout@v4.2.2
149150
- name: Set up Python ${{ matrix.python-version }}
150151
id: python
151-
uses: actions/setup-python@v5.1.1
152+
uses: actions/setup-python@v5.3.0
152153
with:
153154
python-version: ${{ matrix.python-version }}
154155
check-latest: true
@@ -160,7 +161,7 @@ jobs:
160161
'requirements_full.txt', 'requirements_minimal.txt') }}" >> $GITHUB_OUTPUT
161162
- name: Restore Python virtual environment
162163
id: cache-venv
163-
uses: actions/cache@v4.0.2
164+
uses: actions/cache@v4.1.2
164165
with:
165166
path: venv
166167
key: >-
@@ -179,10 +180,11 @@ jobs:
179180
. venv\\Scripts\\activate
180181
pytest --cov
181182
- name: Upload coverage artifact
182-
uses: actions/upload-artifact@v4.3.4
183+
uses: actions/upload-artifact@v4.5.0
183184
with:
184185
name: coverage-windows-${{ matrix.python-version }}
185186
path: .coverage
187+
include-hidden-files: true
186188

187189
tests-pypy:
188190
name: tests / run / ${{ matrix.python-version }} / Linux
@@ -195,10 +197,10 @@ jobs:
195197
python-version: ["pypy3.9", "pypy3.10"]
196198
steps:
197199
- name: Check out code from GitHub
198-
uses: actions/checkout@v4.1.7
200+
uses: actions/checkout@v4.2.2
199201
- name: Set up Python ${{ matrix.python-version }}
200202
id: python
201-
uses: actions/setup-python@v5.1.1
203+
uses: actions/setup-python@v5.3.0
202204
with:
203205
python-version: ${{ matrix.python-version }}
204206
check-latest: true
@@ -210,7 +212,7 @@ jobs:
210212
}}" >> $GITHUB_OUTPUT
211213
- name: Restore Python virtual environment
212214
id: cache-venv
213-
uses: actions/cache@v4.0.2
215+
uses: actions/cache@v4.1.2
214216
with:
215217
path: venv
216218
key: >-
@@ -229,10 +231,11 @@ jobs:
229231
. venv/bin/activate
230232
pytest --cov
231233
- name: Upload coverage artifact
232-
uses: actions/upload-artifact@v4.3.4
234+
uses: actions/upload-artifact@v4.5.0
233235
with:
234236
name: coverage-pypy-${{ matrix.python-version }}
235237
path: .coverage
238+
include-hidden-files: true
236239

237240
coverage:
238241
name: tests / process / coverage
@@ -241,12 +244,12 @@ jobs:
241244
needs: ["tests-linux", "tests-windows", "tests-pypy"]
242245
steps:
243246
- name: Check out code from GitHub
244-
uses: actions/checkout@v4.1.7
245-
- name: Set up Python 3.12
247+
uses: actions/checkout@v4.2.2
248+
- name: Set up Python 3.13
246249
id: python
247-
uses: actions/setup-python@v5.1.1
250+
uses: actions/setup-python@v5.3.0
248251
with:
249-
python-version: "3.12"
252+
python-version: "3.13"
250253
check-latest: true
251254
- name: Install dependencies
252255
run: pip install -U -r requirements_minimal.txt
@@ -256,7 +259,7 @@ jobs:
256259
run: |
257260
coverage combine coverage-linux*/.coverage
258261
coverage xml -o coverage-linux.xml
259-
- uses: codecov/codecov-action@v4
262+
- uses: codecov/codecov-action@v5
260263
with:
261264
token: ${{ secrets.CODECOV_TOKEN }}
262265
fail_ci_if_error: true
@@ -267,7 +270,7 @@ jobs:
267270
run: |
268271
coverage combine coverage-windows*/.coverage
269272
coverage xml -o coverage-windows.xml
270-
- uses: codecov/codecov-action@v4
273+
- uses: codecov/codecov-action@v5
271274
with:
272275
token: ${{ secrets.CODECOV_TOKEN }}
273276
fail_ci_if_error: true
@@ -278,7 +281,7 @@ jobs:
278281
run: |
279282
coverage combine coverage-pypy*/.coverage
280283
coverage xml -o coverage-pypy.xml
281-
- uses: codecov/codecov-action@v4
284+
- uses: codecov/codecov-action@v5
282285
with:
283286
token: ${{ secrets.CODECOV_TOKEN }}
284287
fail_ci_if_error: true

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v4.1.7
49+
uses: actions/checkout@v4.2.2
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL

.github/workflows/release-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
timeout-minutes: 5
1414
steps:
1515
- name: Check out code from GitHub
16-
uses: actions/checkout@v4.1.7
16+
uses: actions/checkout@v4.2.2
1717
- name: Set up Python 3.9
1818
id: python
19-
uses: actions/setup-python@v5.1.1
19+
uses: actions/setup-python@v5.3.0
2020
with:
2121
# virtualenv 15.1.0 cannot be installed on Python 3.10+
2222
python-version: 3.9

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- published
77

88
env:
9-
DEFAULT_PYTHON: "3.12"
9+
DEFAULT_PYTHON: "3.13"
1010

1111
permissions:
1212
contents: read
@@ -20,10 +20,10 @@ jobs:
2020
url: https://pypi.org/project/astroid/
2121
steps:
2222
- name: Check out code from Github
23-
uses: actions/checkout@v4.1.7
23+
uses: actions/checkout@v4.2.2
2424
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
2525
id: python
26-
uses: actions/setup-python@v5.1.1
26+
uses: actions/setup-python@v5.3.0
2727
with:
2828
python-version: ${{ env.DEFAULT_PYTHON }}
2929
check-latest: true

.pre-commit-config.yaml

+6-12
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.6.0
6+
rev: v5.0.0
77
hooks:
88
- id: trailing-whitespace
99
exclude: .github/|tests/testdata
1010
- id: end-of-file-fixer
1111
exclude: tests/testdata
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: "v0.5.5"
13+
rev: "v0.8.4"
1414
hooks:
1515
- id: ruff
16-
exclude: tests/testdata
1716
args: ["--fix"]
1817
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
1918
rev: 0.1.2
@@ -23,7 +22,7 @@ repos:
2322
exclude: tests/testdata|setup.py
2423
types: [python]
2524
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.17.0
25+
rev: v3.19.1
2726
hooks:
2827
- id: pyupgrade
2928
exclude: tests/testdata
@@ -34,7 +33,7 @@ repos:
3433
- id: black-disable-checker
3534
exclude: tests/test_nodes_lineno.py
3635
- repo: https://github.com/psf/black
37-
rev: 24.4.2
36+
rev: 24.10.0
3837
hooks:
3938
- id: black
4039
args: [--safe, --quiet]
@@ -53,19 +52,14 @@ repos:
5352
"--output-format=github",
5453
# "--load-plugins=pylint.extensions.docparams", We're not ready for that
5554
]
56-
exclude: tests/testdata|conf.py
5755
- repo: https://github.com/pre-commit/mirrors-mypy
58-
rev: v1.11.0
56+
rev: v1.14.0
5957
hooks:
6058
- id: mypy
61-
name: mypy
62-
entry: mypy
6359
language: python
64-
types: [python]
65-
args: []
60+
pass_filenames: false
6661
require_serial: true
6762
additional_dependencies: ["types-typed-ast"]
68-
exclude: tests/testdata| # exclude everything, we're not ready
6963
- repo: https://github.com/pre-commit/mirrors-prettier
7064
rev: v4.0.0-alpha.8
7165
hooks:

CONTRIBUTORS.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,33 @@ Contributors
3232
------------
3333
- Emile Anclin <[email protected]>
3434
- Nick Drozd <[email protected]>
35+
- correctmost <[email protected]>
3536
- Andrew Haigh <[email protected]>
3637
- Julien Cristau <[email protected]>
3738
- David Liu <[email protected]>
3839
- Alexandre Fayolle <[email protected]>
3940
- Eevee (Alex Munroe) <[email protected]>
41+
- temyurchenko <[email protected]>
4042
- David Gilman <[email protected]>
4143
- Tushar Sadhwani <[email protected]>
4244
- Julien Jehannet <[email protected]>
4345
- Calen Pennington <[email protected]>
4446
- Antonio <[email protected]>
4547
- Hugo van Kemenade <[email protected]>
48+
- Artem Yurchenko <[email protected]>
4649
- Tim Martin <[email protected]>
4750
- Phil Schaf <[email protected]>
4851
- Alex Hall <[email protected]>
4952
- Raphael Gaschignard <[email protected]>
5053
- Radosław Ganczarek <[email protected]>
5154
- Paligot Gérard <[email protected]>
5255
- Ioana Tagirta <[email protected]>
56+
- Eric Vergnaud <[email protected]>
5357
- Derek Gustafson <[email protected]>
5458
- David Shea <[email protected]>
5559
- Daniel Harding <[email protected]>
5660
- Christian Clauss <[email protected]>
57-
- correctmost <[email protected].com>
61+
- Akhil Kamat <akhil.kamat@gmail.com>
5862
- Ville Skyttä <[email protected]>
5963
- Rene Zhang <[email protected]>
6064
- Philip Lorenz <[email protected]>
@@ -72,6 +76,7 @@ Contributors
7276
7377
- doranid <[email protected]>
7478
- brendanator <[email protected]>
79+
- akamat10 <[email protected]>
7580
- Tomas Gavenciak <[email protected]>
7681
- Tim Paine <[email protected]>
7782
- Thomas Hisch <[email protected]>
@@ -136,6 +141,7 @@ Contributors
136141
- Miro Hrončok <[email protected]>
137142
- Michał Masłowski <[email protected]>
138143
- Mateusz Bysiek <[email protected]>
144+
- Matej Aleksandrov <[email protected]>
139145
- Marcelo Trylesinski <[email protected]>
140146
- Leandro T. C. Melo <[email protected]>
141147
- Konrad Weihmann <[email protected]>
@@ -166,7 +172,6 @@ Contributors
166172
- Francis Charette Migneault <[email protected]>
167173
- Felix Mölder <[email protected]>
168174
- Federico Bond <[email protected]>
169-
- Eric Vergnaud <[email protected]>
170175
- DudeNr33 <[email protected]>
171176
- Dmitry Shachnev <[email protected]>
172177
- Denis Laxalde <[email protected]>

0 commit comments

Comments
 (0)