Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Monthly maintenance (Nov 2023) #187

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/install_badabump/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
steps:
- id: "python"
name: "Install Python"
uses: "actions/setup-python@v4.5.0"
uses: "actions/setup-python@v4.7.1"
with:
python-version-file: ".python-version"

Expand Down
4 changes: 2 additions & 2 deletions .github/actions/install_python_and_poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
steps:
- id: "python"
name: "Install Python"
uses: "actions/setup-python@v4.5.0"
uses: "actions/setup-python@v4.7.1"
with:
python-version: "${{ inputs.python-version }}"
python-version-file: "${{ inputs.python-version-file }}"
Expand All @@ -49,7 +49,7 @@ runs:
run: "pipx install --python='${{ steps.python.outputs.python-path }}' poetry==${{ inputs.poetry-version }}"

- name: "Cache venv"
uses: "actions/[email protected].1"
uses: "actions/[email protected].2"
with:
path: "./.venv/"
key: "venv-${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}${{ inputs.cache-key-suffix }}"
2 changes: 1 addition & 1 deletion .github/actions/run_pre_commit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
shell: "bash"

- name: "Cache mypy"
uses: "actions/[email protected].1"
uses: "actions/[email protected].2"
with:
path: "./.mypy_cache/"
key: "mypy-${{ runner.os }}-${{ inputs.python-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/run_tox/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
shell: "bash"

- name: "Cache tox"
uses: "actions/[email protected].1"
uses: "actions/[email protected].2"
with:
path: ".tox/"
key: "tox-${{ inputs.python-version }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: "${{ matrix.os }}"

steps:
- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"

- id: "python_and_poetry"
uses: "./.github/actions/install_python_and_poetry"
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"

- id: "python_and_poetry"
uses: "./.github/actions/install_python_and_poetry"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"

- id: "python_and_poetry"
uses: "./.github/actions/install_python_and_poetry"
Expand All @@ -43,7 +43,7 @@ jobs:

- name: "Publish package"
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
uses: "pypa/[email protected].4"
uses: "pypa/[email protected].10"
with:
user: "${{ secrets.pypi-user }}"
password: "${{ secrets.pypi-password }}"
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"

- name: "Fetch git data"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_verify_docs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"

- id: "python_and_poetry"
uses: "./.github/actions/install_python_and_poetry"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"
with:
ref: "main"

Expand All @@ -41,13 +41,13 @@ jobs:
run: "badabump --ci ${{ github.event.inputs.args }}"

- id: "token"
uses: "tibdex/github-app-token@v1.8.0"
uses: "tibdex/github-app-token@v2.1.0"
with:
app_id: "${{ secrets.BADABUMP_APP_ID }}"
private_key: "${{ secrets.BADABUMP_APP_PRIVATE_KEY }}"

- name: "Create pull request with changed files"
uses: "peter-evans/create-pull-request@v4.2.4"
uses: "peter-evans/create-pull-request@v5.0.2"
with:
token: "${{ steps.token.outputs.token }}"
commit-message: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:

steps:
- id: "token"
uses: "tibdex/github-app-token@v1.8.0"
uses: "tibdex/github-app-token@v2.1.0"
with:
app_id: "${{ secrets.BADABUMP_APP_ID }}"
private_key: "${{ secrets.BADABUMP_APP_PRIVATE_KEY }}"

- uses: "actions/checkout@v3.5.0"
- uses: "actions/checkout@v4.1.1"
with:
ref: "main"
token: "${{ steps.token.outputs.token }}"
Expand Down
30 changes: 16 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ default_language_version:
python: &python_version "python3.11"
exclude: ^(archive|assets|migrations)/.*|.*/(migrations|test-data|vendor)/.*|.*\.svg$
minimum_pre_commit_version: "1.17.0"

repos:
- repo: "https://github.com/commitizen-tools/commitizen"
rev: "v2.42.1"
rev: "3.12.0"
hooks:
- id: "commitizen"
# By default commitizen using `python3` language version, so
Expand All @@ -26,14 +27,14 @@ repos:
exclude: ^docs/.*$

- repo: "https://github.com/psf/black"
rev: "23.3.0"
rev: "23.11.0"
hooks:
- id: "black"
name: "Format code (black)"
exclude: ^docs/.*$

- repo: "https://github.com/asottile/blacken-docs"
rev: "1.13.0"
rev: "1.16.0"
hooks:
- id: "blacken-docs"
name: "Format docs (blacken-docs)"
Expand All @@ -42,7 +43,7 @@ repos:
- "black==23.3.0"

- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
- id: "end-of-file-fixer"
- id: "trailing-whitespace"
Expand All @@ -60,27 +61,28 @@ repos:
- id: "rst-inline-touching-normal"

- repo: "https://github.com/PyCQA/flake8"
rev: "6.0.0"
rev: "6.1.0"
hooks:
- id: "flake8"
name: "Lint code (flake8)"
additional_dependencies: &flake8_additional_dependencies
- "flake8-bugbear==23.3.23"
- "flake8-builtins==2.1.0"
- "flake8-comprehensions==3.11.1"
- "flake8-isort==6.0.0"
- "flake8-bugbear==23.9.16"
- "flake8-builtins==2.2.0"
- "flake8-comprehensions==3.14.0"
- "flake8-implicit-str-concat==0.4.0"
- "flake8-isort==6.1.1"
- "flake8-mutable==1.2.0"
- "flake8-pie==0.16.0"
- "flake8-quotes==3.3.2"
- "flake8-string-format==0.3.0"
- "flake8-tidy-imports==4.8.0"
- "flake8-variables-names==0.0.5"
- "flake8==6.0.0"
- "flake8-tidy-imports==4.10.0"
- "flake8-variables-names==0.0.6"
- "flake8==6.1.0"
- "pep8-naming==0.13.3"
exclude: ^docs/.*$

- repo: "https://github.com/asottile/yesqa"
rev: "v1.4.0"
rev: "v1.5.0"
hooks:
- id: "yesqa"
name: "Lint code (yesqa)"
Expand All @@ -98,7 +100,7 @@ repos:
exclude: ^(.*/)?(docs|migrations|tests)/.*$

- repo: "https://github.com/shellcheck-py/shellcheck-py"
rev: "v0.9.0.2"
rev: "v0.9.0.6"
hooks:
- id: "shellcheck"
name: "Lint scripts (shellcheck)"
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11.2
3.11.6
Loading