-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lambda_expression_checker
- Loading branch information
Showing
629 changed files
with
10,890 additions
and
5,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
@@ -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: >- | ||
|
@@ -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: >- | ||
|
@@ -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: | ||
|
@@ -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 }} | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -68,4 +68,4 @@ jobs: | |
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: >- | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
Oops, something went wrong.