Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/upload-artifact from 4.3.6 to 4.4.0 #138

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
aea868c
Fix `invalid-name` regression for class attributes in subclasses (#97…
github-actions[bot] Jul 7, 2024
9882537
Bump astroid to 3.2.3 (#9787)
jacobtylerwalls Jul 12, 2024
8eb2c4d
Fix FP for `unexpected-keyword-arg` with ambiguous constructors (#978…
github-actions[bot] Jul 12, 2024
bd4c8f1
Handle assert_never() when imported from typing_extensions (#9782) (#…
jacobtylerwalls Jul 12, 2024
8410f57
Fix a false positive for ``missing-param-doc`` (#9740) (#9793)
github-actions[bot] Jul 15, 2024
1d877de
Fix consider-using-min-max-builtin (#9802) (#9803)
github-actions[bot] Jul 16, 2024
60bd230
Update setuptools to >=71.0.4 (#9812)
cdce8p Jul 20, 2024
c0b1d22
Bump astroid to 3.2.4 (#9816) (#9821)
jacobtylerwalls Jul 20, 2024
5f19cd5
Fix a crash when a subclass extends `__slots__` (#9817) (#9822)
jacobtylerwalls Jul 20, 2024
810c59c
Update setuptools to >=71.0.4 (#9812) (#9824)
github-actions[bot] Jul 20, 2024
d2c7fbc
Sync Sphinx version in pre-commit config (#9826)
jacobtylerwalls Jul 21, 2024
da19566
Bump pylint to 3.2.6, update changelog (#9825)
jacobtylerwalls Jul 21, 2024
70bbec0
Merge branch 'maintenance/3.2.x' into post-3.2.6
jacobtylerwalls Jul 21, 2024
2d484f5
Post 3.2.6 (#9827)
jacobtylerwalls Jul 21, 2024
42fac79
Update pytest requirement from ~=8.2 to ~=8.3 (#9828)
dependabot[bot] Jul 22, 2024
969a78b
Bump sphinx from 7.4.3 to 7.4.7 (#9830)
dependabot[bot] Jul 22, 2024
54141dc
Bump furo from 2024.5.6 to 2024.7.18 (#9829)
dependabot[bot] Jul 22, 2024
9ddb1a4
[pre-commit.ci] pre-commit autoupdate (#9831)
pre-commit-ci[bot] Jul 23, 2024
9491f93
Update repo for pylint-sonarjson
jacobtylerwalls Jul 28, 2024
9f63895
Add unsupported version checks for Python 3.8+ syntax (#9838)
jacobtylerwalls Jul 28, 2024
e64d453
Fix: [unknown-option-value] False negative after --disable=all (#9491)
fellhorn Jul 29, 2024
c25bef3
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 29, 2024
83ade13
Fix a false positive `unreachable` for `NoReturn` coroutine functions…
tomasz-michalski Jul 31, 2024
7d1626c
Fix a false positive `unreachable` for `NoReturn` coroutine functions…
github-actions[bot] Jul 31, 2024
de6e6fa
Implement `too-many-positional-arguments` (#9842)
jacobtylerwalls Aug 2, 2024
b75c7cd
Remove pytest-profiling (#9854)
jacobtylerwalls Aug 5, 2024
2adae46
Bump actions/upload-artifact from 4.3.4 to 4.3.5 (#9858)
dependabot[bot] Aug 5, 2024
afd7b50
Update towncrier requirement from ~=23.11 to ~=24.7 (#9857)
dependabot[bot] Aug 5, 2024
c35e2e6
[pre-commit.ci] pre-commit autoupdate (#9860)
pre-commit-ci[bot] Aug 6, 2024
466c671
Bump astroid to 3.3.1 (#9851)
jacobtylerwalls Aug 7, 2024
b78deb6
Fix crash in refactoring checker when calling bound lambda
Hnasar Aug 11, 2024
f1925f4
Fix crash in refactoring checker when calling bound lambda (#9867)
jacobtylerwalls Aug 11, 2024
72081e6
Support Python 3.13
jacobtylerwalls Aug 4, 2024
b6be944
Add max_pyver=3.13
jacobtylerwalls Aug 5, 2024
74abdc5
[PY313] Pathlib.Path infers as BoundMethod now
jacobtylerwalls Aug 6, 2024
5da674c
[PY313] Handle alias for re.PatternError
jacobtylerwalls Aug 6, 2024
f7a928c
Add "patternerror" to spelling dict
jacobtylerwalls Aug 6, 2024
94f7e3b
[PY313] Use error that hasn't been renamed in docparams tests
jacobtylerwalls Aug 9, 2024
c5dbf06
[PY3.13] Handle pathlib._local
jacobtylerwalls Aug 10, 2024
74343e9
[PY313] Remove test for typing.re.Match
jacobtylerwalls Aug 10, 2024
ca32b00
Bump astroid to 3.3.2
jacobtylerwalls Aug 11, 2024
afaf54c
Bump furo from 2024.7.18 to 2024.8.6 (#9869)
dependabot[bot] Aug 12, 2024
55bf34c
Bump actions/upload-artifact from 4.3.5 to 4.3.6 (#9870)
dependabot[bot] Aug 12, 2024
18f03b7
[pre-commit.ci] pre-commit autoupdate (#9872)
pre-commit-ci[bot] Aug 12, 2024
cb6db06
Fix a crash in `undefined-loop-variable` with `enumerate()` (#9876)
jacobtylerwalls Aug 16, 2024
b4c2951
[Backport maintenance/3.2.x] Fix a crash in `undefined-loop-variable`…
github-actions[bot] Aug 16, 2024
a32250c
Fix false negatives when `isinstance` is provided too many or too few…
rogersheu Aug 18, 2024
40f58ea
`too-few-function-args` redundant with `no-value-for-parameter` (#9882)
rogersheu Aug 19, 2024
6bb335f
[pre-commit.ci] pre-commit autoupdate (#9886)
pre-commit-ci[bot] Aug 20, 2024
d048dcc
Fixed typo in W0212 (#9892)
bshoshany Aug 23, 2024
23de2d5
[symilar] Migrate from getopt to argparse (#9731)
Pierre-Sassoulas Aug 25, 2024
4a892c6
[pre-commit.ci] pre-commit autoupdate (#9895)
pre-commit-ci[bot] Aug 27, 2024
724fd5e
Add docs for OSS-Fuzz integration (#9896)
correctmost Aug 27, 2024
8314743
Fix to maintain order of package paths (#9887)
akamat10 Aug 27, 2024
27644ff
Updating minor error in the changelog (#9900)
Noah-Agnel Aug 30, 2024
1deaffa
Fix to maintain order of package paths (#9887) (#9897)
github-actions[bot] Aug 30, 2024
d5f9360
Update towncrier requirement from ~=24.7 to ~=24.8 (#9893)
dependabot[bot] Aug 31, 2024
a98215b
Bump pylint to 3.2.7, update changelog
jacobtylerwalls Aug 31, 2024
b60b612
Merge maintenance/3.2.x into main following 3.2.7 release
Pierre-Sassoulas Aug 31, 2024
4830dec
Remove duplicate fragments
jacobtylerwalls Aug 31, 2024
123fef3
Merge maintenance/3.2.x into main following 3.2.7 release (#9903)
Pierre-Sassoulas Aug 31, 2024
8029521
Bump actions/upload-artifact from 4.3.6 to 4.4.0
dependabot[bot] Sep 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/primer-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
timeout-minutes: 5
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13-dev"]
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
steps:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
needs: prepare-tests-linux
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13-dev"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4.1.7
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/primer_run_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
. venv/bin/activate
python tests/primer/__main__.py prepare --clone
- name: Upload commit string
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
if: matrix.batchIdx == 0
with:
name: primer_commitstring_${{ matrix.python-version }}
Expand All @@ -104,7 +104,7 @@ jobs:
then echo "::warning ::$WARNINGS"
fi
- name: Upload output
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
with:
name:
primer_output_main_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/primer_run_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ jobs:
then echo "::warning ::$WARNINGS"
fi
- name: Upload output of PR
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
with:
name:
primer_output_pr_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}
path:
tests/.pylint_primer_tests/output_${{ matrix.python-version }}_pr_batch${{
matrix.batchIdx }}.txt
- name: Upload output of 'main'
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
with:
name:
primer_output_main_${{ matrix.python-version }}_batch${{ matrix.batchIdx }}
Expand All @@ -199,7 +199,7 @@ jobs:
- name: Upload PR number
if:
startsWith(steps.python.outputs.python-version, '3.9') && matrix.batchIdx == 0
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
with:
name: pr_number
path: pr_number.txt
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13-dev"]
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
steps:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
pip list | grep 'astroid\|pylint'
python -m pytest -vv --minimal-messages-config tests/test_functional.py
- name: Upload coverage artifact
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
with:
name: coverage-${{ matrix.python-version }}
path: .coverage
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
run: >-
echo "datetime="$(date "+%Y%m%d_%H%M") >> $GITHUB_OUTPUT
- name: Upload benchmark artifact
uses: actions/upload-artifact@v4.3.4
uses: actions/upload-artifact@v4.4.0
with:
name:
benchmark-${{ runner.os }}-${{ matrix.python-version }}_${{
Expand All @@ -175,7 +175,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13-dev"]
steps:
- name: Set temp directory
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
doc/data/messages/m/missing-final-newline/bad/crlf.py
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.2"
rev: "v0.6.2"
hooks:
- id: ruff
args: ["--fix"]
Expand Down Expand Up @@ -45,7 +45,7 @@ repos:
- id: isort
exclude: doc/data/messages/
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down Expand Up @@ -127,9 +127,9 @@ repos:
- id: rstcheck
args: ["--report-level=warning"]
files: ^(doc/(.*/)*.*\.rst)
additional_dependencies: [Sphinx==5.0.1]
additional_dependencies: [Sphinx==7.4.3]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.2
hooks:
- id: mypy
name: mypy
Expand Down
1 change: 1 addition & 0 deletions .pyenchant_pylint_custom_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ paren
parens
passthru
pathlib
patternerror
positionals
png
pragma
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:target: https://codecov.io/gh/pylint-dev/pylint

.. image:: https://img.shields.io/pypi/v/pylint.svg
:alt: Pypi Package version
:alt: PyPI Package version
:target: https://pypi.python.org/pypi/pylint

.. image:: https://readthedocs.org/projects/pylint/badge/?version=latest
Expand Down Expand Up @@ -81,7 +81,7 @@ It can also be integrated in most editors or IDEs. More information can be found
What differentiates Pylint?
---------------------------

Pylint is not trusting your typing and is inferring the actual value of nodes (for a
Pylint is not trusting your typing and is inferring the actual values of nodes (for a
start because there was no typing when pylint started off) using its internal code
representation (astroid). If your code is ``import logging as argparse``, Pylint
can check and know that ``argparse.error(...)`` is in fact a logging call and not an
Expand Down Expand Up @@ -123,7 +123,7 @@ ecosystem of existing plugins for popular frameworks and third-party libraries.
.. _`plugins`: https://pylint.readthedocs.io/en/latest/development_guide/how_tos/plugins.html#plugins
.. _`pylint-pydantic`: https://pypi.org/project/pylint-pydantic
.. _`pylint-django`: https://github.com/pylint-dev/pylint-django
.. _`pylint-sonarjson`: https://github.com/omegacen/pylint-sonarjson
.. _`pylint-sonarjson`: https://github.com/cnescatlab/pylint-sonarjson-catlab

Advised linters alongside pylint
--------------------------------
Expand All @@ -135,7 +135,7 @@ mypy_, pyright_ / pylance or pyre_ (typing checks), bandit_ (security oriented c
isort_ (auto-formatting), autoflake_ (automated removal of unused imports or variables), pyupgrade_
(automated upgrade to newer python syntax) and pydocstringformatter_ (automated pep257).

.. _ruff: https://github.com/charliermarsh/ruff
.. _ruff: https://github.com/astral-sh/ruff
.. _flake8: https://github.com/PyCQA/flake8
.. _bandit: https://github.com/PyCQA/bandit
.. _mypy: https://github.com/python/mypy
Expand Down
5 changes: 5 additions & 0 deletions doc/data/messages/t/too-many-positional-arguments/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class FiveArgumentMethods:
"""The max positional arguments default is 5."""

def take_five_args(self, a, b, c, d, e): # [too-many-positional-arguments]
pass
10 changes: 10 additions & 0 deletions doc/data/messages/t/too-many-positional-arguments/details.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Positional arguments work well for cases where the the use cases are
self-evident, such as unittest's ``assertEqual(first, second, msg=None)``.
Comprehensibility suffers beyond a handful of arguments, though, so for
functions that take more inputs, require that additional arguments be
passed by *keyword only* by preceding them with ``*``:

.. code-block:: python

def make_noise(self, volume, *, color=noise.PINK, debug=True):
...
5 changes: 5 additions & 0 deletions doc/data/messages/t/too-many-positional-arguments/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class FiveArgumentMethods:
"""The max positional arguments default is 5."""

def take_five_args(self, a, b, c, d, *, e=False):
pass
2 changes: 2 additions & 0 deletions doc/data/messages/t/too-many-positional-arguments/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES CONTROL]
disable=too-many-arguments
1 change: 0 additions & 1 deletion doc/data/messages/t/too-many-positional/details.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import random

# +1: [using-assignment-expression-in-unsupported-version]
if zero_or_one := random.randint(0, 1):
assert zero_or_one == 1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The assignment expression (walrus) operator (`:=`) was introduced in Python 3.8; to use it, please use a more recent version of Python.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import random

zero_or_one = random.randint(0, 1)
if zero_or_one:
assert zero_or_one == 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
py-version=3.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def add(x, y, /): # [using-positional-only-args-in-unsupported-version]
return x + y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Positional-only arguments were introduced in Python 3.8; to use them, please use a more recent version of Python.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# pylint: disable=missing-function-docstring, missing-module-docstring
def add(x, y):
return x + y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
py-version=3.7
1 change: 1 addition & 0 deletions doc/development_guide/contributor_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ The contributor guide will help you if you want to contribute to pylint itself.
contribute
tests/index
profiling
oss_fuzz
release
governance
Loading