diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/CODEOWNERS | 44 | ||||
-rw-r--r-- | .github/PULL_REQUEST_TEMPLATE.md | 6 | ||||
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 5 | ||||
-rw-r--r-- | .github/workflows/primer_comment.yaml | 2 | ||||
-rw-r--r-- | .github/workflows/primer_run_main.yaml | 22 | ||||
-rw-r--r-- | .github/workflows/primer_run_pr.yaml | 23 | ||||
-rw-r--r-- | .github/workflows/release.yml | 9 |
7 files changed, 84 insertions, 27 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..7b08ae365 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,44 @@ +# Lines starting with '#' are comments. +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in the repo. +# Right now there is not default owner to avoid spam +# * @pierre-sassoulas @DanielNoord @cdce8p @jacobtylerwalls @hippo91 + +# Order is important. The last matching pattern has the most precedence. + +### Core components + +# internal message handling +pylint/message/* @pierre-sassoulas +tests/message/* @pierre-sassoulas + +# typing +pylint/typing.py @DanielNoord + +# multiprocessing (doublethefish is not yet a contributor with write access) +# pylint/lint/parallel.py @doublethefish +# tests/test_check_parallel.py @doublethefish + +### Pyreverse +pylint/pyreverse/* @DudeNr33 +tests/pyreverse/* @DudeNr33 + +### Extensions + +# For any all +pylint/extensions/for_any_all.py @areveny +tests/functional/ext/for_any_all/* @areveny + +# Private import +pylint/extensions/private_import.py @areveny +tests/extensions/test_private_import.py @areveny +tests/functional/ext/private_import/* @areveny + +# CodeStyle +pylint/extensions/code_style.* @cdce8p +tests/functional/ext/code_style/* @cdce8p + +# Typing +pylint/extensions/typing.* @cdce8p +tests/functional/ext/typing/* @cdce8p diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 82bd53ea5..dfa06dbbb 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,9 +5,9 @@ To ease the process of reviewing your PR, do make sure to complete the following - [ ] Write a good description on what the PR does. - [ ] Create a news fragment with `towncrier create <IssueNumber>.<type>` which will be - included in the changelog. `<type>` can be one of: new_check, removed_check, extension, - false_positive, false_negative, bugfix, other, internal. If necessary you can write - details or offer examples on how the new change is supposed to work. + included in the changelog. `<type>` can be one of: breaking, user_action, feature, + new_check, removed_check, extension, false_positive, false_negative, bugfix, other, internal. + If necessary you can write details or offer examples on how the new change is supposed to work. - [ ] If you used multiple emails or multiple names when contributing, add your mails and preferred name in ``script/.contributors_aliases.json`` --> diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1cce434b2..58f5c1d41 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,9 @@ on: schedule: - cron: "44 16 * * 4" +permissions: + contents: read + jobs: analyze: name: Analyze @@ -39,7 +42,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 diff --git a/.github/workflows/primer_comment.yaml b/.github/workflows/primer_comment.yaml index 97d546ccb..3f901278f 100644 --- a/.github/workflows/primer_comment.yaml +++ b/.github/workflows/primer_comment.yaml @@ -16,7 +16,7 @@ env: # This needs to be the SAME as in the Main and PR job CACHE_VERSION: 1 KEY_PREFIX: venv-primer - DEFAULT_PYTHON: "3.10" + DEFAULT_PYTHON: "3.11" permissions: contents: read diff --git a/.github/workflows/primer_run_main.yaml b/.github/workflows/primer_run_main.yaml index 4f89b9e6e..e8e8f983c 100644 --- a/.github/workflows/primer_run_main.yaml +++ b/.github/workflows/primer_run_main.yaml @@ -19,6 +19,9 @@ env: CACHE_VERSION: 1 KEY_PREFIX: venv-primer +permissions: + contents: read + jobs: run-primer: name: Run / ${{ matrix.python-version }} @@ -26,13 +29,13 @@ jobs: timeout-minutes: 60 strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11"] 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 }} check-latest: true @@ -40,7 +43,7 @@ jobs: # Create a re-usable virtual environment - name: Create Python virtual environment cache id: cache-venv - uses: actions/cache@v3.0.8 + uses: actions/cache@v3.0.11 with: path: venv key: @@ -62,10 +65,10 @@ jobs: . venv/bin/activate python tests/primer/__main__.py prepare --make-commit-string output=$(python tests/primer/__main__.py prepare --read-commit-string) - echo "::set-output name=commitstring::$output" + echo "commitstring=$output" >> $GITHUB_OUTPUT - name: Restore projects cache id: cache-projects - uses: actions/cache@v3.0.8 + uses: actions/cache@v3.0.11 with: path: tests/.pylint_primer_tests/ key: >- @@ -76,10 +79,11 @@ jobs: . venv/bin/activate python tests/primer/__main__.py prepare --clone - name: Upload output diff - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.1 with: name: primer_commitstring - path: tests/.pylint_primer_tests/commit_string.txt + path: + tests/.pylint_primer_tests/commit_string_${{ matrix.python-version }}.txt # Run primer - name: Run pylint primer @@ -92,7 +96,7 @@ jobs: then echo "::warning ::$WARNINGS" fi - name: Upload output - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.1 with: name: primer_output path: >- diff --git a/.github/workflows/primer_run_pr.yaml b/.github/workflows/primer_run_pr.yaml index 4edfefc44..b8f0815dd 100644 --- a/.github/workflows/primer_run_pr.yaml +++ b/.github/workflows/primer_run_pr.yaml @@ -28,6 +28,9 @@ env: CACHE_VERSION: 1 KEY_PREFIX: venv-primer +permissions: + contents: read + jobs: run-primer: name: Run / ${{ matrix.python-version }} @@ -35,15 +38,15 @@ jobs: timeout-minutes: 120 strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.7", "3.11"] steps: - name: Check out code from GitHub - uses: actions/checkout@v3.0.2 + uses: actions/checkout@v3.1.0 with: fetch-depth: 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 }} check-latest: true @@ -55,7 +58,7 @@ jobs: # Restore cached Python environment - name: Restore Python virtual environment id: cache-venv - uses: actions/cache@v3.0.8 + uses: actions/cache@v3.0.11 with: path: venv key: @@ -123,7 +126,7 @@ jobs: - name: Copy and unzip the commit string run: | unzip primer_commitstring.zip - cp commit_string.txt tests/.pylint_primer_tests/commit_string.txt + cp commit_string_${{ matrix.python-version }}.txt tests/.pylint_primer_tests/commit_string_${{ matrix.python-version }}.txt - name: Unzip the output of 'main' run: unzip primer_output_main.zip - name: Get commit string @@ -131,10 +134,10 @@ jobs: run: | . venv/bin/activate output=$(python tests/primer/__main__.py prepare --read-commit-string) - echo "::set-output name=commitstring::$output" + echo "commitstring=$output" >> $GITHUB_OUTPUT - name: Restore projects cache id: cache-projects - uses: actions/cache@v3.0.8 + uses: actions/cache@v3.0.11 with: path: tests/.pylint_primer_tests/ key: >- @@ -164,14 +167,14 @@ jobs: then echo "::warning ::$WARNINGS" fi - name: Upload output of PR - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.1 with: name: primer_output_pr path: tests/.pylint_primer_tests/output_${{ steps.python.outputs.python-version }}_pr.txt - name: Upload output of 'main' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.1 with: name: primer_output_main path: output_${{ steps.python.outputs.python-version }}_main.txt @@ -181,7 +184,7 @@ jobs: run: | echo ${{ github.event.pull_request.number }} | tee pr_number.txt - name: Upload PR number - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v3.1.1 with: name: pr_number path: pr_number.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9708980d9..6dbe0562f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,10 @@ on: - published env: - DEFAULT_PYTHON: "3.10" + DEFAULT_PYTHON: "3.11" + +permissions: + contents: read jobs: release-pypi: @@ -17,10 +20,10 @@ jobs: url: https://pypi.org/project/pylint/ 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 }} check-latest: true |