-
Notifications
You must be signed in to change notification settings - Fork 4
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
Move tool configuration from .pre-commit-config.yaml to pyproject.toml #50
Comments
Thanks for opening this, @plule-ansys. I understand the main problem you expose here... It looks like it is not possible to define From my point of view, all code style configuration must be collected under a common file, the In the end, this is not an issue but something related with a particular IDE developers may be using. We must be as independent from IDEs as possible. |
I'd have to disagree quite strongly with that:
The The main difference however is not one config file vs. another: In To contrast, if we put the configuration of |
This is a strong point, @greschd. I rushed into the decision of closing this issue... Sorry for that, @plule-ansys. It is true that
Alright! Key points to implement, as @greschd said:
|
Before implementing this, I will address #48 first, so everything is unified under a common |
This was partially addressed in #53. Labeling it now as "blocked" till PyCQA/flake8#234 and codespell-project/codespell#2055 are implemented. |
@jorgepiloto As far as I'm concerned, I think the issue can be closed. The critical path is for tools that modify your code. The tools that just run checks are less likely to be used externally. |
Thanks for the comment, @plule-ansys. I though it would be useful to have an issue remembering that not all tools configuration were moved to the Anyway, I agree with your point. We can close this issue. |
When configuring an IDE, it's common to use "format on save" feature that triggers linter each time you save. Unfortunately, in my case, black would format to its default of 88 character per lines, that were clashing with the pre-commit's 100 characters.
If this configuration is moved into
pyproject.toml
, then both pre-commit and the IDE (or just black called independently) are able to interpret it, solving the issue.FYI, I've applied this fix in ansys/pypim#6 This fix omits pydocstyle as I'm not very confortable with this tools usage.
The text was updated successfully, but these errors were encountered: