Skip to content

style: Ignore deprecated PT004 rule#4520

Merged
echoix merged 1 commit intoOSGeo:mainfrom
echoix:ignore-PT004
Oct 14, 2024
Merged

style: Ignore deprecated PT004 rule#4520
echoix merged 1 commit intoOSGeo:mainfrom
echoix:ignore-PT004

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
@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