Skip to content

Commit a2afa05

Browse files
Merge branch 'main' into impr/3995/NO_COLOR+FORCE_COLOR
2 parents cd55074 + 05e83c4 commit a2afa05

30 files changed

+458
-29
lines changed

.github/workflows/primer_run_main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
${{ runner.os }}-${{ matrix.python-version }}-${{
103103
steps.commitstring.outputs.commitstring }}-primer
104104
- name: Upload commit string
105-
uses: actions/upload-artifact@v4.5.0
105+
uses: actions/upload-artifact@v4.6.0
106106
if: matrix.batchIdx == 0
107107
with:
108108
name: primer_commitstring_${{ matrix.python-version }}
@@ -123,7 +123,7 @@ jobs:
123123
then echo "::warning ::$WARNINGS"
124124
fi
125125
- name: Upload output
126-
uses: actions/upload-artifact@v4.5.0
126+
uses: actions/upload-artifact@v4.6.0
127127
with:
128128
name:
129129
primer_output_main_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}

.github/workflows/primer_run_pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ jobs:
197197
then echo "::warning ::$WARNINGS"
198198
fi
199199
- name: Upload output of PR
200-
uses: actions/upload-artifact@v4.5.0
200+
uses: actions/upload-artifact@v4.6.0
201201
with:
202202
name:
203203
primer_output_pr_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}
204204
path:
205205
tests/.pylint_primer_tests/output_${{ matrix.python-version }}_pr_batch${{
206206
matrix.batchIdx }}.txt
207207
- name: Upload output of 'main'
208-
uses: actions/upload-artifact@v4.5.0
208+
uses: actions/upload-artifact@v4.6.0
209209
with:
210210
name:
211211
primer_output_main_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}
@@ -218,7 +218,7 @@ jobs:
218218
- name: Upload PR number
219219
if:
220220
startsWith(steps.python.outputs.python-version, '3.9') && matrix.batchIdx == 0
221-
uses: actions/upload-artifact@v4.5.0
221+
uses: actions/upload-artifact@v4.6.0
222222
with:
223223
name: pr_number
224224
path: pr_number.txt

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
pip list | grep 'astroid\|pylint'
7777
python -m pytest -vv --minimal-messages-config tests/test_functional.py
7878
- name: Upload coverage artifact
79-
uses: actions/upload-artifact@v4.5.0
79+
uses: actions/upload-artifact@v4.6.0
8080
with:
8181
name: coverage-${{ matrix.python-version }}
8282
include-hidden-files: true
@@ -161,7 +161,7 @@ jobs:
161161
run: >-
162162
echo "datetime="$(date "+%Y%m%d_%H%M") >> $GITHUB_OUTPUT
163163
- name: Upload benchmark artifact
164-
uses: actions/upload-artifact@v4.5.0
164+
uses: actions/upload-artifact@v4.6.0
165165
with:
166166
name:
167167
benchmark-${{ runner.os }}-${{ matrix.python-version }}_${{

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
doc/data/messages/m/missing-final-newline/bad/crlf.py
2121
)$
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: "v0.8.6"
23+
rev: "v0.9.2"
2424
hooks:
2525
- id: ruff
2626
args: ["--fix"]
@@ -171,7 +171,7 @@ repos:
171171
setup.cfg
172172
)$
173173
- repo: https://github.com/PyCQA/bandit
174-
rev: 1.8.0
174+
rev: 1.8.2
175175
hooks:
176176
- id: bandit
177177
args: ["-r", "-lll"]

doc/additional_tools/pyreverse/configuration.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ Filtering and Scope
5858
**Default:** ``PUB_ONLY``
5959

6060

61+
--max-depth
62+
-----------
63+
*Maximum depth in package/module hierarchy to display. A depth of 0 shows only top-level packages, 1 shows one level of subpackages, etc. If not specified, all packages/modules are shown.*
64+
65+
**Default:** ``None``
66+
67+
6168
--show-ancestors
6269
----------------
6370
*Show <ancestor> generations of ancestor classes not in <projects>.*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
By default, this check is skipped for ``__init__.py`` files, as they often contain imports from submodules for the convenience of end users. While these imports are not used within ``__init__.py``, they serve the purpose of providing intuitive import paths for the module's important classes and constants.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- :ref:`--init-import <variables-options>`

doc/faq.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,15 @@ localized using the following rules:
137137
- macOS: "~/Library/Caches/pylint"
138138
- Windows: "C:\Users\<username>\AppData\Local\pylint"
139139
* ".pylint.d" directory in the current directory
140+
141+
How does the website pylint dot org relate to this project?
142+
-----------------------------------------------------------
143+
144+
Historically, pylint dot org served as the primary website for Pylint. However,
145+
we no longer have access to the domain. The current owners are monetizing
146+
this by displaying advertisements alongside outdated documentation without
147+
contributing to pylint at all. For the latest and official Pylint documentation,
148+
please visit `pylint.readthedocs.io <https://pylint.readthedocs.io/en/stable/>`_.
149+
150+
Please see `issue 8934 <https://github.com/pylint-dev/pylint/issues/8934>`_
151+
for more details.

doc/whatsnew/fragments/10073.bugfix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fixes "skipped files" count calculation; the previous method was displaying an arbitrary number.
2+
3+
Closes #10073

doc/whatsnew/fragments/10077.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Add --max-depth option to pyreverse to control diagram complexity. A depth of 0 shows only top-level packages, 1 shows one level of subpackages, etc.
2+
This helps manage visualization of large codebases by limiting the depth of displayed packages and classes.
3+
4+
Refs #10077

0 commit comments

Comments
 (0)