hallowed-dream-58085
05/16/2023, 3:24 PMhundreds-father-404
05/16/2023, 4:30 PMhallowed-dream-58085
05/16/2023, 4:46 PMdocformatter
as its available, but we want to make it work with pydocstyle
as we were using it already.
Still very new to monorepos, and trying to understand where my linting settings should stay. Inside each library folder? in the root?
Currently pants lint ::
doesnt really pick it up automatically from the pyproject.toml
inside the library folder and I have to link to a new config at root.hundreds-father-404
05/16/2023, 5:28 PMand trying to understand where my linting settings should stay. Inside each library folder? in the root?Generally, a benefit of monorepos is that you can consolidate your config rather than having to copy around the same file multiple times. It can be useful to use the same style across every project But many tools have hierarchical config that lets you override things by putting config files in subdirectories. It depends on the tool
Currently pants lint :: doesnt really pick it up automatically from the pyproject.toml inside the library folder and I have to link to a new config at root.Hm, were these config files being used before Pants? Pants "auto-discovers" your config files for linters and makes sure they are in the execution sandbox. But that logic depends on what the tool is: we mirror what how the underlying tool behaves It's plausible we got a tool's semantics wrong, so I'm wondering if it was working before
hallowed-dream-58085
05/16/2023, 5:43 PMlibrary_name
inside a structure of libraries
-> library_name
-> library_name
, pyproject.toml
With this I expected linting to just use the pyprojet.toml inside the library but it doesnt really. I still have default BUILD
files and very few things inside the pants.toml
.
I will spend more time this week to explore and read all the docs.hundreds-father-404
05/16/2023, 7:05 PM