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 all remaining PT flake8-pytest-style issues #4452

Merged
merged 6 commits into from
Oct 5, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Oct 5, 2024

Only 10 issues were remaining to enable checking all available ruff rules of the PT category.

This PR fixes 3 types of issues, and removes unneeded exclusions, as there were no longer issues there.

The only remaining ignores per file are found in "*/testsuite/**.py" = ["PT009", "PT027"] and "python/grass/gunittest/case.py" = ["PT009"]. The first one is because we use unittest-style asserts in our gunittest tests, obviously, and the grass.gunittest.case detects our custom assertions like if they were tests (and not following pytest style assertions), which isn't desirable.

That brings us to having all rules of the PT category being addressed.

@echoix echoix added this to the 8.5.0 milestone Oct 5, 2024
@echoix echoix requested a review from ninsbl October 5, 2024 16:46
@github-actions github-actions bot added temporal Related to temporal data processing Python Related code is in Python libraries module notebook labels Oct 5, 2024
@echoix echoix enabled auto-merge (squash) October 5, 2024 17:42
@echoix echoix merged commit 093411b into OSGeo:main Oct 5, 2024
26 of 27 checks passed
@echoix echoix deleted the fix-PT-pytest-ruff branch October 5, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries module notebook Python Related code is in Python temporal Related to temporal data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants