Skip to content
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

Remove 3.7 and update pre-commit to 3.8 #2856

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

benjeffery
Copy link
Member

Fixes #2597

@@ -16,7 +16,6 @@ classifiers =
Programming Language :: C
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add 3.11 here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked and it was already there - just snipped off this diff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, my bad

Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one minor issue spotted.

@@ -403,13 +403,15 @@ def draw_tree(
warnings.warn(
"tree_height_scale is deprecated; use time_scale instead",
FutureWarning,
stacklevel=4,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the stacklevel stuff about?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the pre-commit plugins was complaining about its absence. With stacklevel the user gets more than one line of the stacktrace with a warning.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

B028: No explicit stacklevel argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user.

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #2856 (6256fcf) into main (25116f6) will decrease coverage by 0.20%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2856      +/-   ##
==========================================
- Coverage   89.94%   89.75%   -0.20%     
==========================================
  Files          28       30       +2     
  Lines       22849    29902    +7053     
  Branches     4621     5803    +1182     
==========================================
+ Hits        20552    26839    +6287     
- Misses       1281     1755     +474     
- Partials     1016     1308     +292     
Flag Coverage Δ
c-tests 86.15% <ø> (ø)
lwt-tests 80.78% <ø> (ø)
python-c-tests 67.89% <71.42%> (?)
python-tests 98.92% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
python/tskit/combinatorics.py 99.36% <100.00%> (ø)
python/tskit/drawing.py 99.23% <ø> (ø)
python/tskit/metadata.py 99.04% <100.00%> (+0.95%) ⬆️
python/tskit/stats.py 99.22% <ø> (ø)
python/tskit/tables.py 98.95% <ø> (ø)
python/tskit/trees.py 98.62% <ø> (ø)
python/tskit/util.py 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25116f6...6256fcf. Read the comment docs.

@benjeffery benjeffery added the AUTOMERGE-REQUESTED Ask Mergify to merge this PR label Oct 9, 2023
@mergify mergify bot merged commit b45d065 into tskit-dev:main Oct 9, 2023
23 checks passed
@mergify mergify bot removed the AUTOMERGE-REQUESTED Ask Mergify to merge this PR label Oct 9, 2023
@benjeffery benjeffery deleted the remove_37 branch October 9, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop support for python 3.7
2 participants