Drop Python 3.6 and 3.7 support#891
Open
kieran-ryan wants to merge 2 commits intoallure-framework:masterfrom
Open
Drop Python 3.6 and 3.7 support#891kieran-ryan wants to merge 2 commits intoallure-framework:masterfrom
kieran-ryan wants to merge 2 commits intoallure-framework:masterfrom
Conversation
de17ae9 to
2ab5982
Compare
3ea5169 to
a047430
Compare
- Declares minimimum supported Python version as 3.7 in all packages - Removes compatibility code for Python <3.7 - Migrates to PEP563 style postponed evaluation of annotations - Applies ruff upgrade fixes for Python 3.7+ (`ruff check --target-version="py37" --select=UP --fix`) - UP008 Use `super()` instead of `super(__class__, self)` - UP015 [*] Unnecessary mode argument - UP020 [*] Use builtin `open` - UP026 [*] `mock` is deprecated, use `unittest.mock` - UP030 Use implicit references for positional format fields - UP032 [*] Use f-string instead of `format` call
a047430 to
53c72a6
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
ruff- see Inferring the Python version)ruff check --target-version="py38" --select=UP --fix) - following merge of Python linting throughruff#888tupleinstead ofTuplefor type annotationX | Yfor type annotations.super()instead ofsuper(__class__, self)openmockis deprecated, useunittest.mockformatcallEnables usage of PEP 563 postponed evaluation of annotations (
from __future__ import annotations) towards #878 - which would break for users who attempt to install and run the latest releases using Python 3.6.Enables removal of
attrsdependency through migration to the 3.7+ nativedataclasses(PEP 557) without installing backports and which provides improved type hinting and associated IDE support towards #878 - provided there are no constraints on retainingattrs.