Skip to content

Commit 77f1dbc

Browse files
Merge branch 'main' into files
2 parents 304a4c3 + 3a257f5 commit 77f1dbc

File tree

823 files changed

+8342
-3007
lines changed

Some content is hidden

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

823 files changed

+8342
-3007
lines changed

.github/CODEOWNERS

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pylint/message/* @pierre-sassoulas
1414
tests/message/* @pierre-sassoulas
1515

1616
# typing
17-
pylint/typing.py @DanielNoord @cdce8p
17+
pylint/typing.py @DanielNoord
1818

1919
# multiprocessing (doublethefish is not yet a contributor with write access)
2020
# pylint/lint/parallel.py @doublethefish
@@ -34,3 +34,11 @@ tests/functional/ext/for_any_all/* @areveny
3434
pylint/extensions/private_import.py @areveny
3535
tests/extensions/test_private_import.py @areveny
3636
tests/functional/ext/private_import/* @areveny
37+
38+
# CodeStyle
39+
pylint/extensions/code_style.* @cdce8p
40+
tests/functional/ext/code_style/* @cdce8p
41+
42+
# Typing
43+
pylint/extensions/typing.* @cdce8p
44+
tests/functional/ext/typing/* @cdce8p

.github/PULL_REQUEST_TEMPLATE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ To ease the process of reviewing your PR, do make sure to complete the following
55
66
- [ ] Write a good description on what the PR does.
77
- [ ] Create a news fragment with `towncrier create <IssueNumber>.<type>` which will be
8-
included in the changelog. `<type>` can be one of: new_check, removed_check, extension,
9-
false_positive, false_negative, bugfix, other, internal. If necessary you can write
10-
details or offer examples on how the new change is supposed to work.
8+
included in the changelog. `<type>` can be one of: breaking, user_action, feature,
9+
new_check, removed_check, extension, false_positive, false_negative, bugfix, other, internal.
10+
If necessary you can write details or offer examples on how the new change is supposed to work.
1111
- [ ] If you used multiple emails or multiple names when contributing, add your mails
1212
and preferred name in ``script/.contributors_aliases.json``
1313
-->

.github/workflows/backport.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Backport
2+
on:
3+
pull_request_target:
4+
types:
5+
- closed
6+
- labeled
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
jobs:
13+
backport:
14+
name: Backport
15+
runs-on: ubuntu-latest
16+
# Only react to merged PRs for security reasons.
17+
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
18+
if: >
19+
github.event.pull_request.merged && (
20+
github.event.action == 'closed'
21+
|| (
22+
github.event.action == 'labeled'
23+
&& contains(github.event.label.name, 'backport')
24+
)
25+
)
26+
steps:
27+
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac # v2.0.3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/changelog.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ name: changelog
33
on:
44
pull_request:
55
types: [opened, synchronize, labeled, unlabeled, reopened]
6-
6+
branches-ignore:
7+
- "maintenance/**"
78
env:
8-
# Also change CACHE_VERSION in the other workflows
9-
CACHE_VERSION: 27
10-
DEFAULT_PYTHON: "3.10"
9+
CACHE_VERSION: 1
10+
KEY_PREFIX: base-venv
11+
DEFAULT_PYTHON: "3.11"
12+
13+
permissions:
14+
contents: read
1115

1216
jobs:
1317
check-changelog:
@@ -17,32 +21,31 @@ jobs:
1721
timeout-minutes: 10
1822
steps:
1923
- name: Check out code from GitHub
20-
uses: actions/checkout@v3.0.2
24+
uses: actions/checkout@v3.2.0
2125
with:
2226
# `towncrier check` runs `git diff --name-only origin/main...`, which
2327
# needs a non-shallow clone.
2428
fetch-depth: 0
2529
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
2630
id: python
27-
uses: actions/setup-python@v4.2.0
31+
uses: actions/setup-python@v4.4.0
2832
with:
2933
python-version: ${{ env.DEFAULT_PYTHON }}
34+
check-latest: true
3035
- name: Generate partial Python venv restore key
3136
id: generate-python-key
3237
run: >-
33-
echo "::set-output name=key::base-venv-${{ env.CACHE_VERSION }}-${{
34-
hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt')
35-
}}"
38+
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
39+
hashFiles('pyproject.toml', 'requirements_test.txt',
40+
'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
3641
- name: Restore Python virtual environment
3742
id: cache-venv
38-
uses: actions/cache@v3.0.8
43+
uses: actions/cache@v3.2.1
3944
with:
4045
path: venv
4146
key: >-
4247
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
4348
steps.generate-python-key.outputs.key }}
44-
restore-keys: |
45-
${{ runner.os }}-${{ steps.python.outputs.python-version }}-base-venv-${{ env.CACHE_VERSION }}-
4649
- name: Create Python virtual environment
4750
if: steps.cache-venv.outputs.cache-hit != 'true'
4851
run: |

.github/workflows/checks.yaml

+37-29
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,25 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.*
8-
pull_request: ~
7+
- "maintenance/**"
8+
pull_request:
9+
branches:
10+
- main
11+
- "maintenance/**"
912

1013
env:
11-
CACHE_VERSION: 27
12-
DEFAULT_PYTHON: "3.10"
14+
CACHE_VERSION: 1
15+
KEY_PREFIX: base-venv
16+
DEFAULT_PYTHON: "3.11"
1317
PRE_COMMIT_CACHE: ~/.cache/pre-commit
1418

1519
concurrency:
1620
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1721
cancel-in-progress: true
1822

23+
permissions:
24+
contents: read
25+
1926
jobs:
2027
prepare-base:
2128
name: Prepare base dependencies
@@ -26,28 +33,27 @@ jobs:
2633
pre-commit-key: ${{ steps.generate-pre-commit-key.outputs.key }}
2734
steps:
2835
- name: Check out code from GitHub
29-
uses: actions/checkout@v3.0.2
36+
uses: actions/checkout@v3.2.0
3037
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3138
id: python
32-
uses: actions/setup-python@v4.2.0
39+
uses: actions/setup-python@v4.4.0
3340
with:
3441
python-version: ${{ env.DEFAULT_PYTHON }}
42+
check-latest: true
3543
- name: Generate partial Python venv restore key
3644
id: generate-python-key
3745
run: >-
38-
echo "::set-output name=key::base-venv-${{ env.CACHE_VERSION }}-${{
39-
hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt')
40-
}}"
46+
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
47+
hashFiles('pyproject.toml', 'requirements_test.txt',
48+
'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
4149
- name: Restore Python virtual environment
4250
id: cache-venv
43-
uses: actions/cache@v3.0.8
51+
uses: actions/cache@v3.2.1
4452
with:
4553
path: venv
4654
key: >-
4755
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
4856
steps.generate-python-key.outputs.key }}
49-
restore-keys: |
50-
${{ runner.os }}-${{ steps.python.outputs.python-version }}-base-venv-${{ env.CACHE_VERSION }}-
5157
- name: Create Python virtual environment
5258
if: steps.cache-venv.outputs.cache-hit != 'true'
5359
run: |
@@ -59,17 +65,15 @@ jobs:
5965
- name: Generate pre-commit restore key
6066
id: generate-pre-commit-key
6167
run: >-
62-
echo "::set-output name=key::pre-commit-${{ env.CACHE_VERSION }}-${{
63-
hashFiles('.pre-commit-config.yaml') }}"
68+
echo "key=pre-commit-${{ env.CACHE_VERSION }}-${{
69+
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
6470
- name: Restore pre-commit environment
6571
id: cache-precommit
66-
uses: actions/cache@v3.0.8
72+
uses: actions/cache@v3.2.1
6773
with:
6874
path: ${{ env.PRE_COMMIT_CACHE }}
6975
key: >-
7076
${{ runner.os }}-${{ steps.generate-pre-commit-key.outputs.key }}
71-
restore-keys: |
72-
${{ runner.os }}-pre-commit-${{ env.CACHE_VERSION }}-
7377
- name: Install pre-commit dependencies
7478
if: steps.cache-precommit.outputs.cache-hit != 'true'
7579
run: |
@@ -83,15 +87,16 @@ jobs:
8387
needs: prepare-base
8488
steps:
8589
- name: Check out code from GitHub
86-
uses: actions/checkout@v3.0.2
90+
uses: actions/checkout@v3.2.0
8791
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
8892
id: python
89-
uses: actions/setup-python@v4.2.0
93+
uses: actions/setup-python@v4.4.0
9094
with:
9195
python-version: ${{ env.DEFAULT_PYTHON }}
96+
check-latest: true
9297
- name: Restore Python virtual environment
9398
id: cache-venv
94-
uses: actions/cache@v3.0.8
99+
uses: actions/cache@v3.2.1
95100
with:
96101
path: venv
97102
key:
@@ -104,7 +109,7 @@ jobs:
104109
exit 1
105110
- name: Restore pre-commit environment
106111
id: cache-precommit
107-
uses: actions/cache@v3.0.8
112+
uses: actions/cache@v3.2.1
108113
with:
109114
path: ${{ env.PRE_COMMIT_CACHE }}
110115
key: ${{ runner.os }}-${{ needs.prepare-base.outputs.pre-commit-key }}
@@ -116,11 +121,12 @@ jobs:
116121
- name: Install enchant and aspell
117122
run: |
118123
sudo apt-get update
119-
sudo apt-get install enchant aspell-en
124+
sudo apt-get install enchant-2 aspell-en
120125
- name: Run pylint checks
121126
run: |
122127
. venv/bin/activate
123128
pip install -e .
129+
pip list | grep 'astroid\|pylint'
124130
pre-commit run --hook-stage manual pylint-with-spelling --all-files
125131
126132
spelling:
@@ -130,15 +136,16 @@ jobs:
130136
needs: prepare-base
131137
steps:
132138
- name: Check out code from GitHub
133-
uses: actions/checkout@v3.0.2
139+
uses: actions/checkout@v3.2.0
134140
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
135141
id: python
136-
uses: actions/setup-python@v4.2.0
142+
uses: actions/setup-python@v4.4.0
137143
with:
138144
python-version: ${{ env.DEFAULT_PYTHON }}
145+
check-latest: true
139146
- name: Restore Python virtual environment
140147
id: cache-venv
141-
uses: actions/cache@v3.0.8
148+
uses: actions/cache@v3.2.1
142149
with:
143150
path: venv
144151
key:
@@ -157,19 +164,20 @@ jobs:
157164
documentation:
158165
name: documentation
159166
runs-on: ubuntu-latest
160-
timeout-minutes: 10
167+
timeout-minutes: 20
161168
needs: prepare-base
162169
steps:
163170
- name: Check out code from GitHub
164-
uses: actions/checkout@v3.0.2
171+
uses: actions/checkout@v3.2.0
165172
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
166173
id: python
167-
uses: actions/setup-python@v4.2.0
174+
uses: actions/setup-python@v4.4.0
168175
with:
169176
python-version: ${{ env.DEFAULT_PYTHON }}
177+
check-latest: true
170178
- name: Restore Python virtual environment
171179
id: cache-venv
172-
uses: actions/cache@v3.0.8
180+
uses: actions/cache@v3.2.1
173181
with:
174182
path: venv
175183
key:

.github/workflows/codeql-analysis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
schedule:
2121
- cron: "44 16 * * 4"
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
analyze:
2528
name: Analyze
@@ -39,7 +42,7 @@ jobs:
3942

4043
steps:
4144
- name: Checkout repository
42-
uses: actions/checkout@v3.0.2
45+
uses: actions/checkout@v3.2.0
4346

4447
# Initializes the CodeQL tools for scanning.
4548
- name: Initialize CodeQL

0 commit comments

Comments
 (0)