Skip to content

Commit

Permalink
Merge branch 'main' into setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored Oct 19, 2022
2 parents dd28379 + 08de16e commit 24d1b7b
Show file tree
Hide file tree
Showing 54 changed files with 1,560 additions and 388 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,22 @@ jobs:
timeout-minutes: 20
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Generate partial Python venv restore key
id: generate-python-key
run: >-
echo "::set-output name=key::base-venv-${{ env.CACHE_VERSION }}-${{
echo "key=base-venv-${{ env.CACHE_VERSION }}-${{
hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt',
'requirements_test_brain.txt', 'requirements_test_pre_commit.txt') }}"
'requirements_test_brain.txt', 'requirements_test_pre_commit.txt') }}" >>
$GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: venv
key: >-
Expand All @@ -52,11 +53,11 @@ jobs:
- name: Generate pre-commit restore key
id: generate-pre-commit-key
run: >-
echo "::set-output name=key::pre-commit-${{ env.CACHE_VERSION }}-${{
hashFiles('.pre-commit-config.yaml') }}"
echo "key=pre-commit-${{ env.CACHE_VERSION }}-${{
hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
- name: Restore pre-commit environment
id: cache-precommit
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
Expand Down Expand Up @@ -86,10 +87,10 @@ jobs:
python-key: ${{ steps.generate-python-key.outputs.key }}
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Qt
Expand All @@ -99,12 +100,12 @@ jobs:
- name: Generate partial Python venv restore key
id: generate-python-key
run: >-
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
echo "key=venv-${{ env.CACHE_VERSION }}-${{
hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt',
'requirements_test_brain.txt') }}"
'requirements_test_brain.txt') }}" >> $GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: venv
key: >-
Expand Down Expand Up @@ -142,15 +143,15 @@ jobs:
COVERAGERC_FILE: .coveragerc
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: venv
key:
Expand Down Expand Up @@ -190,21 +191,21 @@ jobs:
# Workaround to set correct temp directory on Windows
# https://github.com/actions/virtual-environments/issues/712
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Generate partial Python venv restore key
id: generate-python-key
run: >-
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
echo "key=venv-${{ env.CACHE_VERSION }}-${{
hashFiles('setup.cfg', 'requirements_test_min.txt',
'requirements_test_brain.txt') }}"
'requirements_test_brain.txt') }}" >> $GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: venv
key: >-
Expand Down Expand Up @@ -235,20 +236,20 @@ jobs:
python-version: ["pypy3.7", "pypy3.8", "pypy3.9"]
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Generate partial Python venv restore key
id: generate-python-key
run: >-
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
hashFiles('setup.cfg', 'requirements_test_min.txt') }}"
echo "key=venv-${{ env.CACHE_VERSION }}-${{
hashFiles('setup.cfg', 'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: venv
key: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
timeout-minutes: 5
steps:
- name: Check out code from GitHub
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Create Python virtual environment with virtualenv==15.1.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code from Github
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.1.0
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v4.2.0
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install requirements
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repos:
exclude: .github/|tests/testdata
- id: end-of-file-fixer
exclude: tests/testdata
- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v1.7.6
hooks:
- id: autoflake
exclude: tests/testdata|astroid/__init__.py|astroid/scoped_nodes.py|astroid/node_classes.py
Expand All @@ -28,7 +28,7 @@ repos:
exclude: tests/testdata|setup.py
types: [python]
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
rev: v3.1.0
hooks:
- id: pyupgrade
exclude: tests/testdata
Expand All @@ -44,7 +44,7 @@ repos:
- id: black-disable-checker
exclude: tests/unittest_nodes_lineno.py
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.10.0
hooks:
- id: black
args: [--safe, --quiet]
Expand All @@ -71,7 +71,7 @@ repos:
]
exclude: tests/testdata|conf.py
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
rev: v0.982
hooks:
- id: mypy
name: mypy
Expand All @@ -90,7 +90,7 @@ repos:
]
exclude: tests/testdata| # exclude everything, we're not ready
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.0
rev: v3.0.0-alpha.2
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
3 changes: 2 additions & 1 deletion CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Maintainers
- Łukasz Rogalski <[email protected]>
- Florian Bruhin <[email protected]>
- Ashley Whetter <[email protected]>
- Mark Byrne <[email protected]>
- Dimitri Prybysh <[email protected]>
- Areveny <[email protected]>

Expand All @@ -39,7 +40,6 @@ Contributors
- David Gilman <[email protected]>
- Julien Jehannet <[email protected]>
- Calen Pennington <[email protected]>
- Mark Byrne <[email protected]>
- Tim Martin <[email protected]>
- Phil Schaf <[email protected]>
- Hugo van Kemenade <[email protected]>
Expand Down Expand Up @@ -111,6 +111,7 @@ Contributors
- Stanislav Levin <[email protected]>
- Simon Hewitt <[email protected]>
- Serhiy Storchaka <[email protected]>
- Saugat Pachhai (सौगात) <[email protected]>
- Roy Wright <[email protected]>
- Robin Jarry <[email protected]>
- René Fritze <[email protected]>
Expand Down
129 changes: 127 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,136 @@ Release date: TBA

Refs PyCQA/pylint#7306

* Create ``ContextManagerModel`` and let ``GeneratorModel`` inherit from it.

Refs PyCQA/pylint#2567

* Add ``_value2member_map_`` member to the ``enum`` brain.

Refs PyCQA/pylint#3941


What's New in astroid 2.12.13?
==============================
Release date: TBA



What's New in astroid 2.12.12?
==============================
Release date: 2022-10-19

* Add the ``length`` parameter to ``hash.digest`` & ``hash.hexdigest`` in the ``hashlib`` brain.

Refs PyCQA/pylint#4039

* Prevent a crash when a module's ``__path__`` attribute is unexpectedly missing.

Refs PyCQA/pylint#7592

* Fix inferring attributes with empty annotation assignments if parent
class contains valid assignment.

Refs PyCQA/pylint#7631


What's New in astroid 2.12.11?
==============================
Release date: 2022-10-10

* Improve detection of namespace packages for the modules with ``__spec__`` set to None.

Closes PyCQA/pylint#7488.

* Fixed a regression in the creation of the ``__init__`` of dataclasses with
multiple inheritance.

Closes PyCQA/pylint#7434


What's New in astroid 2.12.10?
==============================
Release date: 2022-09-17


* Fixed a crash when introspecting modules compiled by `cffi`.

Closes #1776
Closes PyCQA/pylint#7399

* ``decorators.cached`` now gets its cache cleared by calling ``AstroidManager.clear_cache``.

Refs #1780

What's New in astroid 2.12.9?
=============================
Release date: 2022-09-07

* Fixed creation of the ``__init__`` of ``dataclassess`` with multiple inheritance.

Closes PyCQA/pylint#7427

* Fixed a crash on ``namedtuples`` that use ``typename`` to specify their name.

Closes PyCQA/pylint#7429



What's New in astroid 2.12.8?
=============================
Release date: 2022-09-06

* Fixed a crash in the ``dataclass`` brain for ``InitVars`` without subscript typing.

Closes PyCQA/pylint#7422

* Fixed parsing of default values in ``dataclass`` attributes.

Closes PyCQA/pylint#7425

What's New in astroid 2.12.7?
=============================
Release date: 2022-09-06

* Fixed a crash in the ``dataclass`` brain for uninferable bases.

Closes PyCQA/pylint#7418


What's New in astroid 2.12.6?
=============================
Release date: 2022-09-05

* Fix a crash involving ``Uninferable`` arguments to ``namedtuple()``.

Closes PyCQA/pylint#7375

* The ``dataclass`` brain now understands the ``kw_only`` keyword in dataclass decorators.

Closes PyCQA/pylint#7290


What's New in astroid 2.12.5?
=============================
Release date: 2022-08-29

* Prevent first-party imports from being resolved to `site-packages`.

Refs PyCQA/pylint#7365

* Fix ``astroid.interpreter._import.util.is_namespace()`` incorrectly
returning ``True`` for frozen stdlib modules on PyPy.

Closes #1755


What's New in astroid 2.12.4?
=============================
Release date: TBA
Release date: 2022-08-25

* Fixed a crash involving non-standard type comments such as ``# type: # any comment``.

Refs PyCQA/pylint#7347


What's New in astroid 2.12.3?
Expand Down Expand Up @@ -337,7 +462,7 @@ Release date: 2022-02-27

Closes PyCQA/pylint#5679

* Inlcude names of keyword-only arguments in ``astroid.scoped_nodes.Lambda.argnames``.
* Include names of keyword-only arguments in ``astroid.scoped_nodes.Lambda.argnames``.

Closes PyCQA/pylint#5771

Expand Down
Loading

0 comments on commit 24d1b7b

Please sign in to comment.