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

Allow for more than one sourcery settings file #399

Open
3 tasks done
scottmc42 opened this issue Nov 7, 2023 · 0 comments
Open
3 tasks done

Allow for more than one sourcery settings file #399

scottmc42 opened this issue Nov 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@scottmc42
Copy link

Checklist

  • This is a new feature, not a refactoring suggestion
  • I have checked for this feature in the Sourcery documentation
  • I have checked there are no open requests referencing the same feature

Description

It would be helpful if we could have settings across multiple locations. For instance, I would put global settings in the ~/.config/sourcery/sourcery.yaml file. Then within a project have different (as is more fine-tune, or overwrite existing) settings.

For instance, the rule_settings > python_version would be globally to the system version of python. But with virtual environments, that value may or may not be correct.

I would also turn the coding_assistant off by default (some projects forbid generative AI) and only enable it in projects that would allow such things.

Currently, once the ~/.config/sourcery/sourcery.yaml file is read, it does not read the .sourcery.yaml from the top-level of a project so there is no way to have multiple configurations.

@scottmc42 scottmc42 added the enhancement New feature or request label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant