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: Fixes unnecessary-collection-call (C408) for testsuite #3947

Merged

Conversation

echoix
Copy link
Member

@echoix echoix commented Jun 30, 2024

Only applies fixes to non-empty collections by ruff check --select "C408" --unsafe-fixes --output-format=concise --fix --config 'include = ["*/testsuite/**.py"]' in order to limit the review scope.

Continuation of #3945, but for fixes that aren't empty collections and only in the testsuite folders, in order to separate it from other changes. Part of the effort to introduce Pylint 3.x for #3921

Uses the fixes provided for ruff rule unnecessary-collection-call (C408) to fix part of Pylint's use-dict-literal / R1735 rule.

@github-actions github-actions bot added vector Related to vector data processing raster Related to raster data processing Python Related code is in Python libraries module tests Related to Test Suite raster3d labels Jun 30, 2024
echoix added 2 commits June 30, 2024 12:46
Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix --config 'include = ["*/testsuite/**.py"]'` in order to limit the review scope.
Separated in another commit for easier review of only the original changes without formatting
@echoix echoix force-pushed the fix-empty-unnecessary-collection-call-testsuite branch from 16a4a84 to e2a3b18 Compare June 30, 2024 12:47
@echoix echoix added this to the 8.5.0 milestone Jun 30, 2024
@echoix echoix merged commit 837b796 into OSGeo:main Jul 1, 2024
27 checks passed
@echoix echoix deleted the fix-empty-unnecessary-collection-call-testsuite branch July 1, 2024 00:21
cyliang368 pushed a commit to cyliang368/grass that referenced this pull request Jul 1, 2024
…3947)

* style: Fixes unnecessary-collection-call (C408) for testsuite

Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix --config 'include = ["*/testsuite/**.py"]'` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of only the original changes without formatting
@a0x8o a0x8o mentioned this pull request Jul 1, 2024
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 2, 2024
…3947)

* style: Fixes unnecessary-collection-call (C408) for testsuite

Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix --config 'include = ["*/testsuite/**.py"]'` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of only the original changes without formatting
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 23, 2024
…3947)

* style: Fixes unnecessary-collection-call (C408) for testsuite

Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix --config 'include = ["*/testsuite/**.py"]'` in order to limit the review scope.

* style: Apply black formatting

Separated in another commit for easier review of only the original changes without formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries module Python Related code is in Python raster Related to raster data processing raster3d 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