https://pantsbuild.org/ logo
#general
Title
# general
r

refined-addition-53644

06/30/2022, 11:07 AM
Hi, I don't think this is a pants issue but would like some suggestion on how to handle this. I am using pants in our
pre-commit
for linting formatting. I added a flake8 plugin called
flake8-docstrings
to check for docstring. In case the lint check for flake8 fails because of docstring, pre-commit doesn't show any log about what are the checks its failing. On the other hand, when I manually run
./pants lint ::
I do see the log about what are the cases which are failing. This is how the
.pre-commit-config.yaml
section looks like
Copy code
- repo: local
  hooks:
    - id: lint-check
      name: Checking source files formatting
      entry: "./pants --changed-since=main lint"
      language: script
      types: [python]
      pass_filenames: false
      verbose: true
h

hundreds-father-404

06/30/2022, 3:59 PM