Skip to content

Commit

Permalink
Remove upper limit of pyupgrade automatic --py3XX-plus option generat…
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Jul 31, 2022
1 parent 97dd3ac commit 211f3a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/autofix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
python -m pip install --requirement
https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt
- name: Extract minimal Python version from Poetry specs
# Proposed to be included upstream at: https://github.com/asottile/pyupgrade/issues/688
id: py_version
shell: python
run: |
Expand All @@ -80,7 +81,7 @@ jobs:
# --py311-plus
py_param = ""
if version.min.major == 3:
minor_version = version.min.minor if (6 <= version.min.minor <= 11) else ""
minor_version = version.min.minor if version.min.minor => 6 else ""
py_param = f"--py3{minor_version}-plus"
print(f"::set-output name=min_py_param::{py_param}")
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
This version is not released yet and is under active development.
```

- Remove upper limit of `pyupgrade` automatic `--py3XX-plus` option generation.
- Allow `gitleaks` to use GitHub token to scan PRs.

## [1.6.1 (2022-07-05)](https://github.com/kdeldycke/workflows/compare/v1.6.0...v1.6.1)
Expand Down

0 comments on commit 211f3a4

Please sign in to comment.