pss icon indicating copy to clipboard operation
pss copied to clipboard

Support for pyproject.toml

Open aaltat opened this issue 1 year ago • 2 comments

Currently the pyproject.toml is the new way of configuring Python projects. Also tools like black, ruff and many other tools offer possibility to configure tools behavior by using pyproject.toml. Would it possible to offer similar support for pss? Example -A, -B, -C, --color, --ignore-dir and many others would be nice to have defaults from the toml file.

aaltat avatar Jul 10 '23 21:07 aaltat

It seems like this is related to #1 -- supporting a configuration file for pss, except this talks about a project/location specific configuration file. Correct?

So if you invoke pss from $DIR it looks for pyproject.toml in $DIR (and its parent dirs?) and ingests the pss-specific configuration from there?

While I'm open to configuration files for pss in general, I'm not so sure about the idea of pyproject.toml. Even though pss is implemented in Python, it's generally and widely applicable - for example I mostly use it for non-Python projects these days.

eliben avatar Jul 10 '23 21:07 eliben

Yes, it is similar to #1, but it is project specific. I think most tools looks from execution folder and if config file is somewhere else, most tools offer --config path/to/pyproject.toml option.

In practice toml format can be used in any project: https://toml.io/en/ but I agree that pyproject.toml is Python specific. Also I agree that pyproject.toml might not be good idea for projects outside of Python land, but using toml format might be useful in any project.

aaltat avatar Jul 10 '23 23:07 aaltat