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

Introduce ruff #66

Merged
merged 5 commits into from
Mar 30, 2023
Merged

Introduce ruff #66

merged 5 commits into from
Mar 30, 2023

Conversation

jerry-git
Copy link
Owner

Description

Introduce Ruff which replaces a bunch of older linters / code hygiene related tools (e.g. flake8, pyupgrade, pyflakes, etc). It's also at least an order of magnitude faster.

Checklist

  • Tests covering the new functionality have been added
  • Documentation has been updated OR the changes are too minor to be documented
  • The Changes are listed in the CHANGELOG.md OR the changes are insignificant

@jerry-git jerry-git merged commit d4fcc4a into master Mar 30, 2023
@@ -110,3 +95,20 @@ show_error_codes = true
module = ['tests.*']
disallow_untyped_defs = false
strict_equality = false

[tool.ruff]
select = ["A", "B", "C", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
Copy link
Owner Author

Choose a reason for hiding this comment

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

Could also just use select = ["ALL"]. However, note that it'll implicitly enable all the new rules of the future versions of Ruff as well.

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