Closed wu-clan closed 1 year ago
ruff picks up its config from a pyproject.toml
already -- are you hoping to use a toml from a different location?
Yes, my ruff configuration is separate and located in .ruff.toml
are you sure it doesn't pick up that file? https://beta.ruff.rs/docs/configuration/#using-rufftoml looks like ruff.toml supported out of the box by ruff, which is what this project aims to do.
what flags/commands/arguments are you currently passing ruff for it to find your config file when you use ruff [ for example in pre-commit, or just manually on your development machine ]?
Sorry, ruff will automatically detect the '.ruff.toml' file locally. I am using it in pre-commit and I have ignored it here
so... if I understand correctly, then ruff also picks up your toml file in this gh action without problem?
Use args: ['--config', '.ruff.toml'] in pre-commit
Use args: '--config .ruff.toml' here
Everything works fine 🎉
great!
If we find this to be a significant pain point, or common use case for others, we can add an additional [ config] option in the action configuration. But, yes, that would be my first suggestion -- glad it's working for you!
Is it possible to add a with parameter:
toml
to specify an existing configuration file