-
Notifications
You must be signed in to change notification settings - Fork 4
#153: remove support for python 3.8, add support for python 3.13. #158
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
Conversation
| def __init__(self, filepath: str, **kwargs: Any) -> None: # noqa: ANN401 | ||
| self.filepath = filepath | ||
| def __init__(self, filepath: Path | str, **kwargs: Any) -> None: # noqa: ANN401 | ||
| self.filepath = Path(filepath) |
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'm wondering if narrator should get similar treatment for filepath?
| the_narrator.clear_backup() | ||
| return | ||
|
|
||
| # type: ignore[method-assign] |
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.
These can be removed
| field_name, | ||
| field, | ||
| field_value, | ||
| value_is_complex=value_is_complex, |
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.
COM812 makes black do this. ew
|
I think we ought to ignore COM812 - missing trailing commas. It's benefit hardly outweighs the ugly formatting that occurs with Black. |
|
We are removing the pre-commit. We also need to update the readme and remove the step that says to run |
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.
Looks good. My followup PR will fix some of the black formatting due to COM812.
This PR is large, but it just applies the changes from the updated
ruff,black, andmypyrules now that we no longer support Python 3.8 (and whatever updates they included). It is mostly mechanical, but there were a couple "functional" (i.e. syntactic sugar) changes to abide by some ofruff's andmypy's rules.