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

Closes #17733: Replace pycodestyle with ruff #17734

Merged
merged 8 commits into from
Oct 11, 2024
Merged

Conversation

jeremystretch
Copy link
Member

Closes: #17733

  • Replace pycdoestyle with ruff in the CI workflow and pre-commit script
  • Clean up/ignore rule violations as needed throughout the code base
  • Update developer documentation

@@ -50,4 +50,4 @@ def fetch(self):
2. Yields the local path at which data has been replicated
3. Performs any necessary cleanup
"""
raise NotImplemented()
raise NotImplementedError()
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a nice catch of the tool

@arthanson
Copy link
Collaborator

Do we want to include a ruff.toml instead of passing the flags? Might be clearer / more flexible.

@jeremystretch jeremystretch merged commit 7ac6dff into develop Oct 11, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 17733-ruff branch October 11, 2024 11:43
bctiemann pushed a commit that referenced this pull request Oct 11, 2024
* Resolve F541 errors

* Resolve F841 errors

* Resolve F811 errors

* Resolve F901 errors

* Resolve E714 errors

* Ignore F821 errors for GraphQL mixins

* Replace pycodestyle with ruff

* Move ignores to ruff.toml
jeremystretch added a commit to alehaa/netbox that referenced this pull request Oct 11, 2024
…box-community#17734)

* Resolve F541 errors

* Resolve F841 errors

* Resolve F811 errors

* Resolve F901 errors

* Resolve E714 errors

* Ignore F821 errors for GraphQL mixins

* Replace pycodestyle with ruff

* Move ignores to ruff.toml
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.

Replace pycodestyle with ruff
2 participants