Skip to content

Commit

Permalink
[Chore] Introduce Python 3.12 (#346)
Browse files Browse the repository at this point in the history
* chore: introduce python 3.12

* (chore): update 'classifiers' in pyproject.toml, add python 3.12
* (chore): update 'target-version' for 'tool.black' in pyproject.toml,
  add python 3.12
* (chore): add 3.12 python-version for strategy matrix of ci-jobs in
  pythonapp.yml

* fix: failing ci-job for black formatting

* (fix): add conditional installation of black ">=23.12.0" if it's
  python 3.12

* fix: failing ci-job for black formatting

* (fix): remove 'py312' from the black's 'target-version' list

* fix: failing several ci-jobs

* (chore): add 'additional_dependencies' for several hooks
  • Loading branch information
nautics889 authored Mar 23, 2024
1 parent c3a4cd9 commit 3273654
Show file tree
Hide file tree
Showing 4 changed files with 367 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
# python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.11"]
python-version: ["3.7", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,18 @@ repos:
rev: 1.5.3
hooks:
- id: nbqa-black
additional_dependencies:
- "setuptools"
- "black>=23.1.0"
- id: nbqa-pyupgrade
args: [--py38-plus]
additional_dependencies:
- "setuptools"
- "pyupgrade"
- id: nbqa-isort
additional_dependencies:
- "setuptools"
- "isort"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
Expand Down
Loading

0 comments on commit 3273654

Please sign in to comment.