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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(馃巵) Config overide options #387

Open
KotlinIsland opened this issue Feb 29, 2024 · 2 comments
Open

(馃巵) Config overide options #387

KotlinIsland opened this issue Feb 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@KotlinIsland
Copy link
Contributor

KotlinIsland commented Feb 29, 2024

I would like to commit a config file for the plugin with 'sane defaults', but I would also like people using my project to provide overrides (both at a global and project level) with their personal preferences, which would go into a separate file that is ignored by git.

@FieryDruid
Copy link

You might want to consider creating a basic config file and an extension for it, which, after being added to the repository, should be added to the .gitignore

https://docs.astral.sh/ruff/configuration/#config-file-discovery

All the basic project settings will be saved in the main file, but the developer will be able to override preferences in their own config, which is in the repository but is ignored.
In the plugin settings, select this specific overridden config file (I have not tried this case, but it should work).

@KotlinIsland
Copy link
Contributor Author

@FieryDruid I'm talking about the plugins config file .idea/ruff.xml, not the actual ruff config file.

@koxudaxi koxudaxi added the enhancement New feature or request label Mar 27, 2024
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

3 participants