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

#88: Enable q through z. #117

Merged
merged 11 commits into from
Nov 8, 2023
Merged

#88: Enable q through z. #117

merged 11 commits into from
Nov 8, 2023

Conversation

perrygoy
Copy link
Member

This enables the final bits! I'm saving flake8-annotations for its own PR as i mess around with mypy settings to get mypy to complain about the same things, but in a more sensible way.

@perrygoy perrygoy requested review from bandophahita and a team October 27, 2023 04:42
except self.ignore_exceptions:
if not settings.UNABRIDGED_NARRATION:
the_narrator.clear_backup()
else:
Copy link
Member Author

Choose a reason for hiding this comment

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

It was the recommendation of one of these... Tryceratops, i think?

The intention is to make it clear what bits you expect to raise an exception and what bits you want to run if the exception was not raised.

@@ -31,7 +31,7 @@ def function_should_log_none(func: Function) -> bool:
return False


def act(title: str, gravitas: Optional[str] = None) -> Callable[[Function], Function]:
def act(title: str, gravitas: str | None = None) -> Callable[[Function], Function]:
Copy link
Contributor

Choose a reason for hiding this comment

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

What are your thoughts on a type alias for the returns?
T_func = Callable[[Function], Function]

Copy link
Member Author

Choose a reason for hiding this comment

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

It might be a good idea, what do you think about calling it something thematic?

Narrative = Callable[[Function], Function]  # ?
Tale = Callable[[Function], Function]  # ?
Yarn = Callable[[Function], Function]  # ?
...

exec(f.read(), about)

with open("README.md", "r") as f:
with open("README.md") as f:
Copy link
Contributor

Choose a reason for hiding this comment

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

We really ought to commit to pulling the setup.py from all the projects.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's do it with this release and see how it goes, eh?

@@ -38,12 +38,11 @@ def test__indent(self) -> None:

def test_step(self, caplog) -> None:
manager = StdOutManager()
test_message = "Wow. Im Mr. Manager."
test_message = "Wow. I'm Mr. Manager."
Copy link
Contributor

@bandophahita bandophahita Nov 8, 2023

Choose a reason for hiding this comment

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

I noticed this one too. I'm really curious how the other character ended up there?
Is that a windows/mac thing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Mac, by default, will put the smartquotes in, especially on copy/paste. I must have either copied the quote from a site that had the smartquote there or had written it in here before i angrily turned off the setting that makes smartquotes everywhere. 😩

@@ -108,7 +108,7 @@ def test_deep_kink(self) -> None:
mock_adapter = get_mock_adapter()
narrator = Narrator(adapters=[mock_adapter])

with narrator.mic_cable_kinked():
with narrator.mic_cable_kinked(): # noqa: SIM117
Copy link
Contributor

Choose a reason for hiding this comment

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

WUT!?! you didn't want to make it look terrible? 😁

Copy link
Member Author

Choose a reason for hiding this comment

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

Hahaha i tried it the way it suggested and... yeah. Sometimes i think we know better.

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. There are a couple of rules I would consider excluding due to the number of times we'll be adding noqa but I'm happy to see this finally coming to fruition.

@perrygoy perrygoy merged commit 370d980 into trunk Nov 8, 2023
23 checks passed
@perrygoy perrygoy deleted the 88/enable-q-through-z branch November 8, 2023 15:58
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.

2 participants