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

STY: Apply ruff/flake8-implicit-str-concat rule ISC001 #12602

Merged
merged 4 commits into from May 15, 2024

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented May 5, 2024

Reference issue

What does this implement/fix?

ISC001 Implicitly concatenated string literals on one line

Additional information

This rule is currently disabled because it conflicts with the formatter:
astral-sh/ruff#8272

This probably doesn't require an entry in the changelog, does it?

	ISC001 Implicitly concatenated string literals on one line

This rule is currently disabled because it conflicts with the formatter:
	astral-sh/ruff#8272
	ISC001 Implicitly concatenated string literals on one line

This rule is currently disabled because it conflicts with the formatter:
	astral-sh/ruff#8272
@DimitriPapadopoulos DimitriPapadopoulos changed the title Apply ruff/flake8-implicit-str-concat rule ISC001 STY: Apply ruff/flake8-implicit-str-concat rule ISC001 May 5, 2024
Copy link
Member

@mscheltienne mscheltienne left a comment

Choose a reason for hiding this comment

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

I had a look through half of the files, changes look good to me.

@hoechenberger
Copy link
Member

Haha oh my, didn't we try to fix hundreds of these manually just recently? @cbrnr @larsoner 😅😅😅 Great you found this rule, @DimitriPapadopoulos!

@DimitriPapadopoulos
Copy link
Contributor Author

DimitriPapadopoulos commented May 5, 2024

To tell the truth, I did have to change ~50 occurrences manually because ruff currently cannot fix cases such as "..." f"..." That's why there are multiple commits (for the automatic changes and the manual changes).

I would recommend you double-check the last commit.

@larsoner larsoner merged commit 5b1c49e into mne-tools:main May 15, 2024
30 checks passed
@larsoner
Copy link
Member

Thanks @DimitriPapadopoulos !

@DimitriPapadopoulos DimitriPapadopoulos deleted the ISC001 branch May 15, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants