Skip to content

Commit

Permalink
Merge branch 'main' into lambda_expression_checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored May 2, 2022
2 parents b52b948 + f9c426f commit 098bbfe
Show file tree
Hide file tree
Showing 629 changed files with 10,890 additions and 5,288 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ include =
pylint/*
omit =
*/test/*
# TODO: 3.0: Remove these after these files have been removed
pylint/config/configuration_mixin.py
pylint/config/option.py
pylint/config/option_manager_mixin.py
pylint/config/option_parser.py
pylint/config/options_provider_mixin.py
exclude_lines =
# Re-enable default pragma
pragma: no cover
Expand All @@ -17,3 +23,6 @@ exclude_lines =
# Type checking code not executed during pytest runs
if TYPE_CHECKING:
@overload

# Abstract methods are not exectued during pytest runs
raise NotImplementedError()
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/QUESTION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ body:
[issue search]: https://github.com/PyCQA/pylint/issues?q=is%3Aissue+is%3Aopen+
[Discussions]: https://discord.gg/Egy6P8AMB5
[Discussions]: https://discord.com/invite/Egy6P8AMB5
- type: textarea
id: question
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: 💬 Discord
url: https://discord.gg/Egy6P8AMB5
url: https://discord.com/invite/Egy6P8AMB5
about: Astroid and pylint informal dev discussion
48 changes: 28 additions & 20 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
# Also change CACHE_VERSION in the other workflows
CACHE_VERSION: 5
CACHE_VERSION: 6
DEFAULT_PYTHON: 3.8
PRE_COMMIT_CACHE: ~/.cache/pre-commit

Expand All @@ -27,12 +27,10 @@ jobs:
pre-commit-key: ${{ steps.generate-pre-commit-key.outputs.key }}
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
with:
fetch-depth: 0
uses: actions/[email protected]
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Generate partial Python venv restore key
Expand All @@ -43,7 +41,7 @@ jobs:
}}"
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key: >-
Expand All @@ -58,14 +56,15 @@ jobs:
. venv/bin/activate
python -m pip install -U pip setuptools wheel
pip install -U -r requirements_test.txt
pip install -U -r doc/requirements.txt
- 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') }}"
- name: Restore pre-commit environment
id: cache-precommit
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
Expand All @@ -85,15 +84,15 @@ jobs:
needs: prepare-base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key:
Expand All @@ -106,7 +105,7 @@ jobs:
exit 1
- name: Restore pre-commit environment
id: cache-precommit
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: ${{ env.PRE_COMMIT_CACHE }}
key: ${{ runner.os }}-${{ needs.prepare-base.outputs.pre-commit-key }}
Expand All @@ -115,28 +114,32 @@ jobs:
run: |
echo "Failed to restore pre-commit environment from cache"
exit 1
- name: Install enchant and aspell
run: |
sudo apt-get update
sudo apt-get install enchant aspell-en
- name: Run pylint checks
run: |
. venv/bin/activate
pip install -e .
pre-commit run pylint --all-files
pre-commit run --hook-stage manual pylint-with-spelling --all-files
spelling:
name: spelling
name: spelling tests
runs-on: ubuntu-latest
timeout-minutes: 5
needs: prepare-base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key:
Expand All @@ -155,19 +158,19 @@ jobs:
documentation:
name: documentation
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 10
needs: prepare-base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key:
Expand All @@ -182,3 +185,8 @@ jobs:
run: |
. venv/bin/activate
pytest doc/test_messages_documentation.py
- name: Check documentation build and links
run: |
. venv/bin/activate
cd doc
make html
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/[email protected].0
uses: actions/[email protected].2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
26 changes: 12 additions & 14 deletions .github/workflows/primer-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ jobs:
python-key: ${{ steps.generate-python-key.outputs.key }}
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
with:
fetch-depth: 0
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ matrix.python-version }}
- name: Generate partial Python venv restore key
Expand All @@ -48,7 +46,7 @@ jobs:
}}"
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key: >-
Expand All @@ -74,15 +72,15 @@ jobs:
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ matrix.python-version }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key:
Expand All @@ -109,15 +107,15 @@ jobs:
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ matrix.python-version }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key:
Expand All @@ -144,15 +142,15 @@ jobs:
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ matrix.python-version }}
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected].0
uses: actions/[email protected].2
with:
path: venv
key:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code from Github
uses: actions/[email protected].0
uses: actions/[email protected].2
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v3.0.0
uses: actions/setup-python@v3.1.2
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Install requirements
Expand Down
Loading

0 comments on commit 098bbfe

Please sign in to comment.