full-student-91825
04/14/2022, 3:41 PMflake8
on its own and comparing it with ./pants lint ::
?
For example, when I run flake8
, I get:
file1.py:17:21: ANN201 Missing return type annotation for public function
file2.py:10:32: ANN201 Missing return type annotation for public function
However, when I run ./pants lint ::
, I get:
11:38:23.22 [INFO] Completed: Lint with Flake8 - flake8 succeeded.
...
✓ flake8 succeeded.
Is there a way to get more verbose output of ./pants lint ::
? So as to see what files are linted, what flake8 config, etc.fast-nail-55400
04/14/2022, 3:42 PM-ldebug
fast-nail-55400
04/14/2022, 3:44 PM.flake8
config file.fast-nail-55400
04/14/2022, 3:44 PMverbose
option: https://flake8.pycqa.org/en/latest/user/options.htmlbitter-ability-32190
04/14/2022, 3:44 PMflake8
in Pants is either:
• Missing the plugin(s) which report that code. Have you added the plugin to https://www.pantsbuild.org/docs/reference-flake8#section-extra-requirements?
• Missing the relevant config file(s) which enable the codebitter-ability-32190
04/14/2022, 3:45 PMbitter-ability-32190
04/14/2022, 3:47 PMlockfile
, you'll default to Pants' flake8 lockfile (which doesn't have flake8-annotations
in it)
hundreds-father-404
04/14/2022, 3:48 PMfull-student-91825
04/14/2022, 3:49 PMbitter-ability-32190
04/14/2022, 3:49 PMhundreds-father-404
04/14/2022, 3:51 PMdefault_version = "flake8>=3.9.2,<4.0"
Pants uses its own internal flake8 lockfilebitter-ability-32190
04/14/2022, 3:51 PMhundreds-father-404
04/14/2022, 3:52 PMAny way to bridge the two without specifying plugins in two places (i.e., pants.toml and pyproject.toml)Generally, you can use the poetry_requirements target generator to bridge the gap. Unfortunately, that is not yet integrated with tools https://github.com/pantsbuild/pants/issues/12449
bitter-ability-32190
04/14/2022, 3:52 PMhundreds-father-404
04/14/2022, 3:52 PMbitter-ability-32190
04/14/2022, 3:53 PMfull-student-91825
04/14/2022, 3:53 PMfull-student-91825
04/14/2022, 3:54 PMhundreds-father-404
04/14/2022, 3:55 PMfull-student-91825
04/14/2022, 5:44 PMhundreds-father-404
04/19/2022, 5:34 PMfull-student-91825
04/19/2022, 5:39 PMhundreds-father-404
04/19/2022, 6:05 PMhundreds-father-404
04/20/2022, 9:27 PM