Skip to content

Conversation

@perrygoy
Copy link
Member

@perrygoy perrygoy commented Jul 9, 2025

This PR is large, but it just applies the changes from the updated ruff, black, and mypy rules 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 of ruff's and mypy's rules.

@perrygoy perrygoy requested a review from bandophahita July 9, 2025 19:38
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)
Copy link
Contributor

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]
Copy link
Contributor

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,
Copy link
Contributor

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

@bandophahita
Copy link
Contributor

I think we ought to ignore COM812 - missing trailing commas. It's benefit hardly outweighs the ugly formatting that occurs with Black.

@bandophahita
Copy link
Contributor

We are removing the pre-commit. We also need to update the readme and remove the step that says to run pre-commit install. I updated the cookie cutter. cruft update should do the trick.

bandophahita
bandophahita previously approved these changes Jul 23, 2025
Copy link
Contributor

@bandophahita bandophahita left a 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.

@bandophahita bandophahita merged commit 4eea9c3 into trunk Aug 28, 2025
25 checks passed
@perrygoy perrygoy deleted the pgoy/153/remove-py38 branch September 1, 2025 19:38
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.

3 participants