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

Improve Python linting with ruff #1776

Open
8 tasks
cclauss opened this issue Mar 24, 2023 · 0 comments
Open
8 tasks

Improve Python linting with ruff #1776

cclauss opened this issue Mar 24, 2023 · 0 comments

Comments

@cclauss
Copy link
Contributor

cclauss commented Mar 24, 2023

Is your feature request related to a problem? Please describe.

As suggested at #1771 (comment)

Once #1771 has been merged, edit the [tools.ruff] section of pyproject.toml to:

  • Add more ruff rules to tool.ruff.select
  • Remove rules from tool.ruff.ignore
  • Reduce tool.ruff.line-length to 88
  • Reduce tool.ruff.mccabe.max-complexity to 10
  • Reduce tool.ruff.pylint.max-args to 5
  • Reduce tool.ruff.pylint.max-branches to 12
  • Reduce tool.ruff.pylint.max-returns to 6
  • Reduce tool.ruff.pylint.max-statements to 50

Describe the solution you'd like
A clear and concise description of what you want to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant