-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Python 3.13 and remove Python 3.7 support. (#289)
* - support Python 3.13 * - update to latest meta/config template and drop Python 3.7 support. * - adjust coverage * - fix outdated Python version for tox coverage test * - specify tests path for pytest so the tests run locally * - remove all pre-Python 38 compatibility code * - remove Python3.7 declaration * - fix python_requires * - use furo Sphinx theme and clean up some obsolete docs and settings * Update tests/transformer/test_dict_comprehension.py Co-authored-by: Michael Howitz <[email protected]> --------- Co-authored-by: Michael Howitz <[email protected]>
- Loading branch information
Showing
25 changed files
with
270 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
# Allow to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
pre-commit: | ||
name: linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --show-diff-on-failure | ||
env: | ||
PRE_COMMIT_COLOR: always | ||
- uses: pre-commit-ci/[email protected] | ||
if: always() | ||
with: | ||
msg: Apply pre-commit code formatting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated from: | ||
# https://github.com/zopefoundation/meta/tree/master/config/pure-python | ||
minimum_pre_commit_version: '3.6' | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: "5.13.2" | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/hhatto/autopep8 | ||
rev: "v2.3.1" | ||
hooks: | ||
- id: autopep8 | ||
args: [--in-place, --aggressive, --aggressive] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.17.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- repo: https://github.com/isidentical/teyit | ||
rev: 0.4.3 | ||
hooks: | ||
- id: teyit | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: "7.1.1" | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-debugger == 4.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.