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: Ignore deprecated PT004 rule #4520

Merged
merged 1 commit into from
Oct 14, 2024
Merged

style: Ignore deprecated PT004 rule #4520

merged 1 commit into from
Oct 14, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Oct 14, 2024

Ruff rule PT004 is deprecated, so doesn't run with --preview flag, but still appears without the --preview flag. Since the only error won't be fixed, ignore that rule for the time being.
This means that PR #4452 was incomplete in a sense

See astral-sh/ruff#12837 and astral-sh/ruff#8796

Ruff rule PT004 is deprecated, so doesn't run with --preview flag, but still appears without the --preview flag.
Since the only error won't be fixed, ignore that rule for the time being.
@echoix echoix added this to the 8.5.0 milestone Oct 14, 2024
@echoix echoix enabled auto-merge (squash) October 14, 2024 17:38
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

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

Oh, a lot of stuff in the linked issues. --preview seems indeed appropriate to pick up the actual best practices.

@github-actions github-actions bot added the Python Related code is in Python label Oct 14, 2024
@echoix echoix merged commit 761d98a into OSGeo:main Oct 14, 2024
26 checks passed
@echoix echoix deleted the ignore-PT004 branch October 14, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants