Skip to content

Introduce ruff#66

Merged
jerry-git merged 5 commits intomasterfrom
introduce-ruff
Mar 30, 2023
Merged

Introduce ruff#66
jerry-git merged 5 commits intomasterfrom
introduce-ruff

Conversation

@jerry-git
Copy link
Copy Markdown
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
Comment thread pyproject.toml
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
Copy Markdown
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