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

Update .pre-commit-config.yaml #8384

Merged
merged 4 commits into from Apr 25, 2024
Merged

Update .pre-commit-config.yaml #8384

merged 4 commits into from Apr 25, 2024

Conversation

Dreamsorcerer
Copy link
Member

No description provided.

@Dreamsorcerer Dreamsorcerer added the bot:chronographer:skip This PR does not need to include a change note label Apr 25, 2024
@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) April 25, 2024 17:35
Copy link

codecov bot commented Apr 25, 2024

Codecov Report

Attention: Patch coverage is 65.11628% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 97.43%. Comparing base (a9200db) to head (2940c22).

Files Patch % Lines
aiohttp/web_app.py 0.00% 0 Missing and 7 partials ⚠️
aiohttp/helpers.py 0.00% 0 Missing and 5 partials ⚠️
aiohttp/web_routedef.py 0.00% 0 Missing and 2 partials ⚠️
aiohttp/client_reqrep.py 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             3.10    #8384      +/-   ##
==========================================
- Coverage   97.50%   97.43%   -0.07%     
==========================================
  Files         108      108              
  Lines       33315    33300      -15     
  Branches     3988     3988              
==========================================
- Hits        32483    32446      -37     
- Misses        622      626       +4     
- Partials      210      228      +18     
Flag Coverage Δ
CI-GHA 97.35% <65.11%> (-0.06%) ⬇️
OS-Linux 97.02% <65.11%> (-0.06%) ⬇️
OS-Windows 94.67% <65.11%> (-0.01%) ⬇️
OS-macOS 96.75% <65.11%> (+<0.01%) ⬆️
Py-3.10.11 96.87% <65.11%> (+2.37%) ⬆️
Py-3.10.14 96.83% <65.11%> (-0.03%) ⬇️
Py-3.11.9 97.06% <60.46%> (-0.01%) ⬇️
Py-3.12.3 97.16% <60.46%> (-0.01%) ⬇️
Py-3.8.10 94.41% <65.11%> (-0.01%) ⬇️
Py-3.8.18 96.72% <65.11%> (-0.01%) ⬇️
Py-3.9.13 96.85% <65.11%> (+2.37%) ⬆️
Py-3.9.19 96.82% <65.11%> (-0.03%) ⬇️
Py-pypy7.3.15 ?
VM-macos 96.75% <65.11%> (+<0.01%) ⬆️
VM-ubuntu 97.02% <65.11%> (-0.06%) ⬇️
VM-windows 94.67% <65.11%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Dreamsorcerer Dreamsorcerer merged commit 3e0b88d into 3.10 Apr 25, 2024
29 of 31 checks passed
@Dreamsorcerer Dreamsorcerer deleted the Dreamsorcerer-patch-4 branch April 25, 2024 18:40
@@ -176,7 +176,7 @@ def enable_compression(
) -> None:
"""Enables response compression encoding."""
# Backwards compatibility for when force was a bool <0.17.
if type(force) == bool:
if isinstance(force, bool):
Copy link
Member

Choose a reason for hiding this comment

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

Are integers boolean? I remember there were some corner cases a around this. Or perhaps this was done with performance in mind.. FWIW this is not just a formatting change. It checks for subclasses too. Is this necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Are integers boolean

No, other way round. bool is subclass of int, so this shoudn't make any difference. It's also ancient code that could be removed at this point anyway..

marks=pytest.mark.skipif(
not hasattr(socket, "AF_UNIX"), reason="It's a UNIX-only module"
),
(
Copy link
Member

Choose a reason for hiding this comment

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

Which linter wanted this? It seems like too much..

Copy link
Member Author

Choose a reason for hiding this comment

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

Isn't this one just black formatting? I didn't touch this one.

ClientConnectionError,
match=expected_exception_reason,
) as conn_err:
await sess.get(url, proxy=secure_proxy_url, ssl=client_ssl_ctx)

assert type(conn_err.value.__cause__) == TypeError
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure the exact class is expected 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.

Didn't think it would make a difference. Feel free to revert and add a noqa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:skip This PR does not need to include a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants