dev: pre-commit hook to standardize toml format#2186
Conversation
|
Do you also wanna check this in |
Good idea 😄 |
I have another proposal in mind. Currently, we have pre-commit hooks configured for:
These checks are also included in Given this setup, would it make sense to consolidate the workflow and reduce the maintenance overhead by relying on a single entry point? If What are your thoughts on this approach? |
|
I agree! In most of my other projects, I simply use https://github.com/pre-commit/action :) |
|
What's the setup that makes it easier to contribute without having to worry about toml/ty etc. dependency? I think we want to have minimal requirement for formatting. The rest is optional. |
I personally do not think there is an absolute best way, and its more about opinions XD My preference (this is an opinion, not a fact) is towards pre-commit hooks. Again, no strong preferences and the Make command also works fine. |
I agree.
In my opinion, pre-commit hooks are the better approach. We only need to install |
|
This is a great point! We have pre-commit update PRs as pymc-labs/pymc-marketing#2506 It needs minimal configuration: |
|
@juanitorduz @fehiepsi should we merge this PR? 😄 |
|
I guess so. Just to confirm, do I need to install all those hooks for the dev workflow? All I want is to use ruff to format the scripts and make a commit without worrying about those |
This PR introduces a pre-commit hook of tombi to standardize the toml format.