Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Move all customization to project config #19

Open
RobertoRoos opened this issue Oct 24, 2024 · 0 comments · May be fixed by #21
Open

Move all customization to project config #19

RobertoRoos opened this issue Oct 24, 2024 · 0 comments · May be fixed by #21
Assignees

Comments

@RobertoRoos
Copy link
Member

The CLI arguments for the sorter are nice, but there is no real reason to vary them within a project. It would make more sensor to safe these options to a project config file.

It could be a new TOML file, but there will always be a pyproject.toml too, so it makes sense to just add our config there.

We could also have a custom config file, e.g. tctools.toml, in case people don't place a pyproject.toml. The order of settings should then be read as:

  1. tctools.toml
  2. pyproject.toml
  3. Other config, like .editorconfig for the formatter

To prevent confusion, options will not be merged. Instead only the first valid section is used.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant