1

I came across the following .pre-commit-hooks.yaml here. It contains the following section:

additional_dependencies:
  - .

What is the meaning of the dot? Is it necessary?


After solution I created PR to remove the unused . here.

trallnag
  • 2,041
  • 1
  • 17
  • 33

1 Answers1

3

in this case it does nothing, it is a mistake. I believe an older version of this was selecting specific extras like .[core] and this is an artifact of that

. is always installed and is the hook repository (in this case ansible-lint)


disclaimer: I wrote pre-commit

anthony sottile
  • 61,815
  • 15
  • 148
  • 207