-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop support for EOL Python 3.8 #330
Open
hugovk
wants to merge
1
commit into
tox-dev:main
Choose a base branch
from
hugovk:rm-3.8
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+28
−26
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -26,7 +26,6 @@ jobs: | |
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
- "3.8" | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
|
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 |
---|---|---|
|
@@ -24,15 +24,14 @@ maintainers = [ | |
{ name = "Ofek Lev", email = "[email protected]" }, | ||
{ name = "Ronny Pfannschmidt", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
|
@@ -102,7 +101,6 @@ matrix = [ | |
"3.11", | ||
"3.10", | ||
"3.9", | ||
"3.8", | ||
"pypy3.10", | ||
] }, | ||
] | ||
|
@@ -203,41 +201,42 @@ scripts = { "run" = [ | |
] } | ||
|
||
[tool.ruff] | ||
target-version = "py38" | ||
target-version = "py39" | ||
line-length = 120 | ||
format.preview = true | ||
lint.preview = true | ||
select = [ | ||
lint.select = [ | ||
"ALL", | ||
] | ||
isort = { known-first-party = [ | ||
"platformdirs", | ||
"tests", | ||
], required-imports = [ | ||
"from __future__ import annotations", | ||
] } | ||
ignore = [ | ||
lint.ignore = [ | ||
"ANN101", # Missing type annotation for `self` in method | ||
"D301", # Use `r"""` if any backslashes in a docstring | ||
"D205", # 1 blank line required between summary line and description | ||
"D401", # The first line of docstring should be in imperative mood | ||
"CPY", # no copyright notices | ||
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible | ||
"D205", # 1 blank line required between summary line and description | ||
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible | ||
"S104", # Possible binding to all interfaces | ||
"CPY", # no copyright notices | ||
"D301", # Use `r"""` if any backslashes in a docstring | ||
"D401", # The first line of docstring should be in imperative mood | ||
"DOC", # no support for restructuredtext | ||
"S104", # Possible binding to all interfaces | ||
] | ||
per-file-ignores."tests/**/*.py" = [ | ||
"S101", # asserts allowed in tests | ||
lint.per-file-ignores."tests/**/*.py" = [ | ||
"D", # don't care about documentation in tests | ||
"FBT", # don't care about booleans as positional arguments in tests | ||
"INP001", # no implicit namespace | ||
"D", # don't care about documentation in tests | ||
"S603", # `subprocess` call: check for execution of untrusted input | ||
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable | ||
"PLC2701", # Private name import | ||
"PLR0917", # Too many positional arguments | ||
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable | ||
"S101", # asserts allowed in tests | ||
"S603", # `subprocess` call: check for execution of untrusted input | ||
] | ||
|
||
lint.isort = { known-first-party = [ | ||
"platformdirs", | ||
"tests", | ||
], required-imports = [ | ||
"from __future__ import annotations", | ||
] } | ||
lint.preview = true | ||
|
||
[tool.codespell] | ||
builtin = "clear,usage,en-GB_to_en-US" | ||
count = true | ||
|
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change anything in the config below, except for these section renamings advised by ruff:
And then the formatter re-ordered the sections.
Ruff also gave this warning, but I've not done anything about it, but can do if you like: