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

Implement B008 #594

Merged
merged 5 commits into from
Nov 5, 2022
Merged

Implement B008 #594

merged 5 commits into from
Nov 5, 2022

Conversation

harupy
Copy link
Contributor

@harupy harupy commented Nov 5, 2022

@@ -0,0 +1,125 @@
---
Copy link
Contributor Author

@harupy harupy Nov 5, 2022

Choose a reason for hiding this comment

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

Comparison:

> cargo run -- --no-cache --select B008 resources/test/fixtures/B006_B008.py
resources/test/fixtures/B006_B008.py:85:61: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:89:64: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:93:60: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:109:39: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:113:12: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:113:32: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:117:30: B008 Do not perform function calls in argument defaults.
👇 flake8-bugbear doesn't have this
resources/test/fixtures/B006_B008.py:155:34: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:160:30: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:164:45: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:170:21: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:170:31: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:176:22: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:181:19: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:181:37: B008 Do not perform function calls in argument defaults.
> flake8 --select B008 resources/test/fixtures/B006_B008.py
resources/test/fixtures/B006_B008.py:85:61: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:89:64: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:93:60: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:109:39: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:113:12: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:113:32: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:117:30: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:160:30: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:164:45: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:170:21: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:170:31: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:176:22: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:181:19: B008 Do not perform function calls in argument defaults.
resources/test/fixtures/B006_B008.py:181:37: B008 Do not perform function calls in argument defaults.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@charliermarsh charliermarsh merged commit f7780eb into astral-sh:main Nov 5, 2022
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