I have an issue using flake8 in subprojects in a m...
# general
k
I have an issue using flake8 in subprojects in a monorepo, the structure is something like:
Copy code
.
├── .flake8 # top-level
├── project_1
│   ├── .flake8  # project-level
│   ├── BUILD
│   └── ....
├── project_2
│   ├── BUILD
│   └── ...
├── pants.toml
├── BUILD
└── ...
The desired behavior is to use the "deepest" config file, so top level and project_2 would in this case use the top-level .flake8 file, while project_1 is using it project-level .flake8 file. In pants.toml we have set:
Copy code
[flake8]
config_discovery = "true"
While this works to find the top level config file it seems to only be able to use this one specific config file and all projects must use the same file. Is there any way to avoid hardcoding the locations while still letting each subproject be able to use their own .flake8 file?