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

Enable many more Ruff linter rules #9283

Closed
wants to merge 2 commits into from
Closed

Enable many more Ruff linter rules #9283

wants to merge 2 commits into from

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Jan 28, 2025

No description provided.

@seanh seanh force-pushed the enable-ruff-rules branch from 84797ae to 459130a Compare February 6, 2025 11:27
@seanh seanh marked this pull request as ready for review February 6, 2025 11:27
Comment on lines +1 to +6
"PT006", # Enforces a consistent style for the type of the `argnames` parameter to
# pytest.mark.parametrize. We have too many pre-existing violations of
# this.
"PT007", # Enforces a consistent style for the type of the `argvalues` parameter to
# pytest.mark.parametrize. We have too many pre-existing violations of
# this.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can send a separate PR to remove these later, just trying to control the size of the diff right now.

This isn't needed (it's always run with commands like
`python run_data_task.py`) and Ruff complains if executable files don't
have a shebang.
@@ -60,18 +60,18 @@ def main():
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that I've removed the executable bit from run_data_task.py. Ruff complains if a file is marked as executable that doesn't have a shebang line. It always seems to be run as python bin/run_data_task.py so the executable bit isn't needed

@seanh
Copy link
Contributor Author

seanh commented Feb 6, 2025

Closing in favour of #9328

@seanh seanh closed this Feb 6, 2025
@seanh seanh deleted the enable-ruff-rules branch February 6, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant