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

style: Fix single-line-implicit-string-concatenation violations (ISC001) #3943

Merged

Conversation

echoix
Copy link
Member

@echoix echoix commented Jun 30, 2024

I finished creating the new pylint 3 config for #3921. There are too many violations to be useful to file right away.

So here is a first PR that applies a single fix throughout the code base, but it doesn't fix all of them.

The pylint violation in question is W1404: Implicit string concatenation found in assignment (implicit-str-concat)
A similar rule supported by ruff is single-line-implicit-string-concatenation (ISC001), derived from the flake8-implicit-str-concat linter.

This PR only applies safe fixes with ruff check --select "ISC001" --fix in order to limit the review scope to the obviously correct fixes. These kinds of formatting issues most probably come from different python formatting tool versions throughout the years, like black.

I kept applying the fix and then applying black separate in two commits, in order to review the fixes of the first commit only, and simply approving the black formatting.

I'd like for this to not stay pending too long, as there shouldn't be anything to discuss or contest in this.

echoix added 2 commits June 30, 2024 00:31
Only applies safe fixes with `ruff check --select "ISC001" --fix` in order to limit the review scope.
Separated in another commit for easier review of the changes of the first commit
@github-actions github-actions bot added GUI wxGUI related vector Related to vector data processing raster Related to raster data processing temporal Related to temporal data processing Python Related code is in Python database Related to database management libraries module docs general imagery tests Related to Test Suite raster3d labels Jun 30, 2024
@echoix
Copy link
Member Author

echoix commented Jun 30, 2024

There are 11 other non-automatic fixes to apply in another PR

ninsbl
ninsbl previously approved these changes Jul 1, 2024
@echoix echoix enabled auto-merge (squash) July 1, 2024 00:51
@echoix echoix merged commit 28bbce8 into OSGeo:main Jul 1, 2024
26 checks passed
@echoix echoix deleted the fix-single-line-implicit-string-concatenation branch July 1, 2024 06:17
cyliang368 pushed a commit to cyliang368/grass that referenced this pull request Jul 1, 2024
…01) (OSGeo#3943)

* style: Fix single-line-implicit-string-concatenation violations (ISC001)

Only applies safe fixes with `ruff check --select "ISC001" --fix` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of the changes of the first commit
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 2, 2024
…01) (OSGeo#3943)

* style: Fix single-line-implicit-string-concatenation violations (ISC001)

Only applies safe fixes with `ruff check --select "ISC001" --fix` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of the changes of the first commit
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
…01) (OSGeo#3943)

* style: Fix single-line-implicit-string-concatenation violations (ISC001)

Only applies safe fixes with `ruff check --select "ISC001" --fix` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of the changes of the first commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Related to database management docs general GUI wxGUI related imagery libraries module Python Related code is in Python raster Related to raster data processing raster3d temporal Related to temporal data processing tests Related to Test Suite vector Related to vector data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants