koxudaxi / ruff-pycharm-plugin

PyCharm plugin for ruff. This plugin provides reformat code using ruff.
MIT License
174 stars 7 forks source link

(🎁) Config overide options #387

Open KotlinIsland opened 4 months ago

KotlinIsland commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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