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

Use flake8-simplify #267

Merged
merged 1 commit into from
Jan 24, 2022
Merged

Conversation

radoering
Copy link
Member

Relates-to: python-poetry/poetry#4776

flake8-simplify has already been introduced for poetry in python-poetry/poetry#4798

@sonarcloud
Copy link

sonarcloud bot commented Jan 24, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug E 6 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 4 Security Hotspots
Code Smell A 671 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

Copy link
Member

@finswimmer finswimmer left a comment

Choose a reason for hiding this comment

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

Beautiful 👍

@@ -1,6 +1,6 @@
[flake8]
max-line-length = 88
ignore = E501, E203, W503, ANN101, ANN102
ignore = E501, E203, W503, ANN101, ANN102, SIM106
Copy link
Member

Choose a reason for hiding this comment

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

I see that we ignore SIM106 in poetry as well. So I'm fine here. In many cases this warning helps to improve the code. But I've no idea how often it is not helpful in our cases. Maybe we should evaluate it some point later, and only ignore it case-by-case then.

@finswimmer finswimmer merged commit 72fc3d5 into python-poetry:master Jan 24, 2022
bostonrwalker pushed a commit to bostonrwalker/poetry-core that referenced this pull request Aug 29, 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
2 participants