thousands-book-61719
06/26/2023, 5:30 PMpants lint ::
or pants fmt ::
the black/isort configs in the respective pyproject.toml
files aren't used, (at least for the line length case), and when I run pants lint myproject
I get the correct linting. Can anyone advise on this? I am using marker_filenames=["pyproject.toml"]
to detect the rootsrefined-addition-53644
06/26/2023, 5:41 PMpyproject.toml
for this. By default pants reads this from repo root where pants.toml
is stored. You can see an example of this inside pants own repo
The other option to set-up custom config path for each formatter and linter as mentioned in the docsthousands-book-61719
06/26/2023, 5:46 PMpyproject.toml
in the root of the main dir seems to go against the purpose of the toml file since usually it would define a python project, but if that's the recommended pattern I'm happy to follow itrefined-addition-53644
06/26/2023, 5:48 PMflake8
own issue. Although there is some plugin to support pyproject.thousands-book-61719
06/26/2023, 5:49 PMpyproject.toml
files still be used for other things like dependencies?refined-addition-53644
06/26/2023, 5:49 PMthousands-book-61719
06/26/2023, 5:49 PMrefined-addition-53644
06/26/2023, 5:50 PMthousands-book-61719
06/26/2023, 5:50 PMthousands-book-61719
06/26/2023, 5:50 PMrefined-addition-53644
06/26/2023, 5:51 PMBut if I did that I'd lose the dependencies right?No you won't. Underneath pants is actually going to read all of them and basically creates a single universe of dependencies from all such dependencies. pants does support
pyproject.toml
for dependencies also.refined-addition-53644
06/26/2023, 5:53 PMthousands-book-61719
06/26/2023, 5:53 PMpyproject.yaml
to define dependencies included in any potential project? And then pants will build each project with the necessary dependencies for that individual project?refined-addition-53644
06/26/2023, 5:54 PMthousands-book-61719
06/26/2023, 5:54 PMthousands-book-61719
06/26/2023, 5:55 PMrefined-addition-53644
06/26/2023, 5:56 PM