Skip to content

Commit

Permalink
build: Update Python dev version to 3.10.8 (#131)
Browse files Browse the repository at this point in the history
As well as introduce several new pre-commit hooks to Python library repo.

Co-authored-by: badabump-release-bot[bot] <badabump-release-bot[bot]@users.noreply.github.com>
Co-authored-by: Igor Davydenko <iam@igordavydenko.com>
  • Loading branch information
3 people authored Oct 23, 2022
1 parent c9c81a5 commit b1ef521
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 17 deletions.
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.2.0"
uses: "actions/setup-python@v4.3.0"
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 @@ -15,7 +15,7 @@ inputs:
poetry-version:
description: "Poetry version to use"
required: false
default: "1.2.1"
default: "1.2.2"

outputs:
python-path:
Expand All @@ -33,7 +33,7 @@ runs:
steps:
- id: "python"
name: "Install Python"
uses: "actions/setup-python@v4.2.0"
uses: "actions/setup-python@v4.3.0"
with:
python-version: "${{ inputs.python-version }}"
python-version-file: "${{ inputs.python-version-file }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
test:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-beta - 3.11.0"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11"]
include:
- python-version: "3.10"
dev: "true"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Create GitHub Release"
name: "(Reusable) Create GitHub Release"

on:
workflow_call:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: "badabump --ci ${{ github.event.inputs.args }}"

- id: "token"
uses: "tibdex/github-app-token@v1.6"
uses: "tibdex/github-app-token@v1.7"
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.1.3"
uses: "peter-evans/create-pull-request@v4.2.0"
with:
token: "${{ steps.token.outputs.token }}"
commit-message: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- id: "token"
uses: "tibdex/github-app-token@v1.6"
uses: "tibdex/github-app-token@v1.7"
with:
app_id: "${{ secrets.BADABUMP_APP_ID }}"
private_key: "${{ secrets.BADABUMP_APP_PRIVATE_KEY }}"
Expand Down
27 changes: 23 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
default_language_version:
python: "python3.10"
python: &python_version "python3.10"
exclude: ^(archive|assets|migrations)/.*|.*/(migrations|test-data|vendor)/.*|.*\.svg$
minimum_pre_commit_version: "1.17.0"
repos:
- repo: "https://github.com/commitizen-tools/commitizen"
Expand All @@ -8,13 +9,16 @@ repos:
- id: "commitizen"
# By default commitizen using `python3` instead `python` language, so
# needed to provide concrete version here as well
language_version: "python3.10"
language_version: *python_version
stages: ["commit-msg"]

- repo: "https://github.com/PyCQA/isort"
rev: "5.10.1"
hooks:
- id: "isort"
# By default isort using `python3` instead `python` language, so
# needed to provide concrete version here as well
language_version: *python_version
name: "Format code (isort)"
exclude: ^docs/.*$

Expand All @@ -24,7 +28,7 @@ repos:
- id: "black"
# By default black using `python3` instead `python` language, so
# needed to provide concrete version here as well
language_version: "python3.10"
language_version: *python_version
name: "Format code (black)"
exclude: ^docs/.*$

Expand All @@ -46,6 +50,15 @@ repos:
- id: "check-toml"
- id: "check-yaml"

- repo: "https://github.com/pre-commit/pygrep-hooks"
rev: "v1.9.0"
hooks:
- id: "python-check-blanket-noqa"
- id: "python-check-blanket-type-ignore"
- id: "rst-backticks"
- id: "rst-directive-colons"
- id: "rst-inline-touching-normal"

- repo: "https://github.com/PyCQA/flake8"
rev: "5.0.4"
hooks:
Expand Down Expand Up @@ -84,4 +97,10 @@ repos:
language: "python"
"types": ["python"]
require_serial: true
exclude: ^(docs|tests)/.*$
exclude: ^(docs|migrations|tests)/.*$

- repo: "https://github.com/shellcheck-py/shellcheck-py"
rev: "v0.8.0.4"
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.10.7
3.10.8
8 changes: 4 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

**Drop support of Python 3.6 as well as bump lower bounds of library dependencies.**

Now `aiohttp-middlewares` requires,
Now ``aiohttp-middlewares`` requires,

- ``aiohttp>=3.8.1,<4.0`` instead of ``>=3.7.0,<4.0``
- ``async-timeout>=4.0.2,<5.0`` instead of ``>=3.0,<5.0``
Expand Down Expand Up @@ -104,7 +104,7 @@ of Python 3.9 & 3.10.
==================

- chore: Release **1.0.0** version which highlights updates to error middleware
and first class support of `yarl.URL` instances within the library
and first class support of ``yarl.URL`` instances within the library

1.0.0b1 (2020-01-14)
--------------------
Expand Down Expand Up @@ -197,13 +197,13 @@ of Python 3.9 & 3.10.
0.1.1 (2018-05-25)
==================

- Support `async-timeout` 3.0 version
- Support ``async-timeout`` 3.0 version

0.1.0 (2018-02-20)
==================

- First non-beta release
- Support `aiohttp` 3.0 version
- Support ``aiohttp`` 3.0 version

0.1.0b2 (2018-02-04)
--------------------
Expand Down

0 comments on commit b1ef521

Please sign in to comment.