From 66410f572d87552fb750afe44e2c804832d52e5c Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 21 Feb 2023 18:42:37 +0000 Subject: [PATCH 1/2] This PR is a companion for pyscaffold/pyscaffold#704 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5b5edf..5251c1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,9 @@ on: # (useful to check if updates on dependencies break the package) - cron: '0 0 1,16 * *' +permissions: + contents: read + concurrency: group: >- ${{ github.workflow }}-${{ github.ref_type }}- @@ -102,6 +105,8 @@ jobs: needs: finalize if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }} runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 From e40f8e6dc67776d6cd4a9008a5f4efdc70478edf Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 21 Feb 2023 18:48:51 +0000 Subject: [PATCH 2/2] Fix pre-commit errors --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5719d3b..f8eb083 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: args: ['--py37-plus'] - repo: https://github.com/PyCQA/autoflake - rev: v2.0.0 + rev: v2.0.1 hooks: - id: autoflake args: [ @@ -34,12 +34,12 @@ repos: ] - repo: https://github.com/PyCQA/isort - rev: 5.11.4 + rev: 5.11.5 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black language_version: python3 @@ -51,10 +51,10 @@ repos: additional_dependencies: [black] - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 5.0.4 hooks: - id: flake8 - additional_dependencies: [flake8-bugbear] + additional_dependencies: [flake8-bugbear!=23.1.14] - repo: https://github.com/codespell-project/codespell rev: v2.2.2