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

💄 revise style rules, auto linting settings, etc #15

Closed
lucas-labs opened this issue Nov 24, 2023 · 0 comments · Fixed by #16
Closed

💄 revise style rules, auto linting settings, etc #15

lucas-labs opened this issue Nov 24, 2023 · 0 comments · Fixed by #16
Assignees

Comments

@lucas-labs
Copy link
Owner

Right now we are using ruff for some linting rules and autopep8 for formatting.

ruff has its own formatter, which is pretty good, but is lacking an option to preserve string normalization. So, just for now, until PR astral-sh/ruff#8822 is merged, we will use black with --skip-string-normalization option.

why?

I prefeer using flake8-quotes with ruff for normalizing string quotes, as it allows the following configuration, which I personally prefeer:

[flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "single"
@lucas-labs lucas-labs self-assigned this Nov 24, 2023
@lucas-labs lucas-labs linked a pull request Nov 24, 2023 that will close this issue
@lucas-labs lucas-labs changed the title 🎨 revise style rules, auto linting settings, etc 💄 revise style rules, auto linting settings, etc Nov 24, 2023
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 a pull request may close this issue.

1 participant