Hi, is such INFO duplication expected from `./pant...
# general
r
Hi, is such INFO duplication expected from
./pants lint ::
? Please check 🧡 for the
pants.toml
Copy code
./pants lint ::     
18:05:08.06 [INFO] Completed: Lint with Flake8 - flake8 succeeded.
18:05:08.06 [INFO] Completed: Lint with Flake8 - flake8 succeeded.
18:05:08.06 [INFO] Completed: Lint with Black - black succeeded.
All done! ✨ 🍰 ✨
8 files would be left unchanged.


18:05:08.06 [INFO] Completed: Lint with docformatter - docformatter succeeded.
18:05:08.06 [INFO] Completed: Lint with Black - black succeeded.
All done! ✨ 🍰 ✨
69 files would be left unchanged.


18:05:08.06 [INFO] Completed: Lint with autoflake - autoflake succeeded.
18:05:08.06 [INFO] Completed: Lint with docformatter - docformatter succeeded.
18:05:08.06 [INFO] Completed: Lint with autoflake - autoflake succeeded.
18:05:08.06 [INFO] Completed: Lint with isort - isort succeeded.
18:05:08.06 [INFO] Completed: Lint with isort - isort succeeded.

βœ“ autoflake succeeded.
βœ“ black succeeded.
βœ“ docformatter succeeded.
βœ“ flake8 succeeded.
βœ“ isort succeeded.
βœ… 1
Copy code
[GLOBAL]
pants_version = "2.10.0"
pythonpath = ["%(buildroot)s/pants-plugins"]
backend_packages.add = [
  "pants.backend.python",
  "pants.backend.docker",
  "pants.backend.docker.lint.hadolint",
  "pants.backend.experimental.python.lint.autoflake",
  "pants.backend.python.lint.black",
  "pants.backend.python.lint.docformatter",
  "pants.backend.python.lint.flake8",
  "pants.backend.python.typecheck.mypy",
  "pants.backend.python.lint.isort",
  "pants.backend.plugin_development",
  "pants.backend.shell",
  "pants.backend.shell.lint.shellcheck",
  "pants.backend.shell.lint.shfmt",
  "internal_plugins",
]
pants_ignore.add = ["cdk.out/", "infrastructure/", "notes/"]
use_deprecated_python_macros = false

[source]
root_patterns = [
  "/src",
  "/pants-plugins",
]

[anonymous-telemetry]
enabled = false

[setup-py-generation]
generate_setup_default = true

[python-infer]
inits = true

[python]
interpreter_constraints = ["CPython>=3.9.*"]

[isort]
args = ["--profile black", "--multi-line 3", "--line-length 100"]

[mypy]
version = "mypy==0.942"
lockfile = "build-support/mypy.txt"

[shfmt]
# See <https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd#printer-flags>.
args = ["-i 4", "-ci", "-sr"]
b
Yes! A while ago I started work on a PR to clarify what's happening here... I should bring it back up. Anyways, Pants is running the tools on "batches" of files, so what you're seeing is Pants suceed to run the tool on multiple different batches
πŸ™ 1
r
And this will go away in near future ?
b
Not go away, but be possibly more descriptive. E.g. "autoflake succeeded on X files"
πŸ™Œ 1
If 2 "buckets" of files have the same count you're still in the same boat.
h
See Formatter & linter parallelization from https://blog.pantsbuild.org/introducing-pants-2-10/
c
Perhaps it would be possible to have a β€œbatch 2/5” counter added to the job descriptions..?
πŸ’― 3
b
@curved-television-6568 ooh good idea. File an issue so we don't forget?
c