abundant-analyst-12845
01/13/2023, 10:50 AMpyproject.toml
[tool.poetry.scripts]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
multi_line_output = 3 # Vertical Hanging Indent
line_length = 120
from_first = true
and a tox.ini
file containing something like this
[tox]
envlist = lint, pytest-ci, mypy, vulture
skipdist = true
[testenv:lint]
basepython = python3.9
allowlist_externals=*
list_dependencies_command=echo
commands =
flake8 lambdas
pylint lambdas --rcfile=.pylintrc
will pants pick up these configuration or there something I can do so it respects any of these configurationshappy-kitchen-89482
01/13/2023, 11:26 AM[isort]
section in tox.ini.abundant-analyst-12845
01/13/2023, 11:26 AMabundant-analyst-12845
01/13/2023, 11:28 AMhappy-kitchen-89482
01/13/2023, 11:28 AM[testenv:lint]
section. That is configuration for tox
itself, which is orthogonal to Pantshappy-kitchen-89482
01/13/2023, 11:28 AMhappy-kitchen-89482
01/13/2023, 11:29 AMhappy-kitchen-89482
01/13/2023, 11:29 AMhappy-kitchen-89482
01/13/2023, 11:29 AMhappy-kitchen-89482
01/13/2023, 11:30 AMabundant-analyst-12845
01/13/2023, 11:30 AM[testenv:lint]
how could I get it to run with pants?abundant-analyst-12845
01/13/2023, 11:31 AMhappy-kitchen-89482
01/13/2023, 11:34 AMhappy-kitchen-89482
01/13/2023, 11:34 AMhappy-kitchen-89482
01/13/2023, 11:34 AM./pants lint lambas
happy-kitchen-89482
01/13/2023, 11:34 AMabundant-analyst-12845
01/13/2023, 11:34 AMhappy-kitchen-89482
01/13/2023, 11:35 AM.pylintrc
, again via config discovery, so you don't need to worry about specifying thathappy-kitchen-89482
01/13/2023, 11:35 AM./pants lint lambdas
happy-kitchen-89482
01/13/2023, 11:36 AMlambdas
is a top-level folder in your repo, yes?abundant-analyst-12845
01/13/2023, 11:45 AMroot
lambdas
other-folders