Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
37 views

Cloudformation linter regions unsupported

I'm setting up cfn-lint as a pre-commit hook using this guide: https://aws.amazon.com/blogs/mt/git-pre-commit-validation-of-aws-cloudformation-templates-with-cfn-lint/ My .pre-commit-config.yaml: ...
Steyn van Wyk's user avatar
-1 votes
1 answer
41 views

pre-commit fails with ModuleNotFoundError: No module named 'yaml'

I am using pre-commit. In one of the hooks, I use a python script that imports the yaml library. However, when I try to commit something, I get the following error on this hook : ModuleNotFoundError: ...
Nakeuh's user avatar
  • 1,909
1 vote
1 answer
53 views

Pre-commit finds local hooks even after deleting the hooks directory and clearing the cache

I am using pre-commit to manage local hooks for my repository. Initially, I added a local repository containing my hooks and configured the .pre-commit-config.yaml file to reference these hooks. It ...
Jaydubz's user avatar
  • 19
-1 votes
0 answers
47 views

pre-commit check-yaml error: did not find expected document start

Context: I downloaded a pre-commit distribution outside of github for working inside a firewall. And I install pre_commit_hooks as a local module. problem: when I run pre-commit, check-yaml errors out ...
Jaydubz's user avatar
  • 19
-1 votes
2 answers
134 views

include a single pre-commit-config file in many repos

I'm starting to use pre-commit, and I have a single repository with a pre-commit-config.yaml file that I want all the other (many more) repositories to simply 'include'. Is there a way to do that? The ...
Relys's user avatar
  • 45
-1 votes
1 answer
38 views

Issues with commit message when pre-commit hook changes files

I have prepared the following pre-commit hook: #!/bin/sh # Run flake8 and mypy flake8 ./src FLAKE8_EXIT_CODE=$? mypy ./src MYPY_EXIT_CODE=$? # If either flake8 or mypy return an error, skip black ...
Barzi2001's user avatar
  • 1,766
0 votes
0 answers
93 views

Pre-commit hooks in R/RStudio. How do I change the max line length to 120?

From the precommit package (https://cran.r-project.org/web/packages/precommit/index.html), I'm taking the default pre-commit-config.yml file as my starting point. You can recreate it with precommit::...
Justin Beresford's user avatar
0 votes
1 answer
467 views

Error loading config: Requested templater 'dbt' which is not currently available. Try one of raw, jinja, python, placeholder

Need to understand that what is causing the issue in the pre-commit hook section of sqlfluff Although sqlfluff-templater-dbt is installed sqlfluff is installed, but gets and error that templater 'dbt'...
Ashutosh Sharma's user avatar
1 vote
1 answer
102 views

Getting an unexpected additional `_/` in the pre-commit husky call when committing

When I do a commit, I'm getting this log output in the terminal: .husky/pre-commit: line 8: .husky/_/_/husky.sh: No such file or directory The commit seems to be passing with no problems on MacOS, ...
connexo's user avatar
  • 56.7k
0 votes
1 answer
210 views

How to skip checking third-party dependencies when using clang-tidy?

I'm using clang-tidy in my C++ project, and I'm encountering errors related to third-party dependencies, specifically Abseil (absl). I want to skip checking these dependencies. jiawei@DESKTOP-AEQS7B5:~...
Jiawei Lu's user avatar
  • 577
0 votes
0 answers
56 views

Pre-commit git hooks

My company is adopting a VDI architecture. To enhance the code security, we want to use pre-commit hooks, what I really need to do is automate the whole process in such a way that all the reposetories ...
user26661143's user avatar
0 votes
0 answers
78 views

Multiple Processes running pre-commit hook

I am currently trying to write a custom pre-commit hook for git. It is python script called secret_detector.py that scans the repository for any accidental sensitive information. I am facing an issue ...
Kiran Manicka's user avatar
1 vote
1 answer
942 views

No matching distribution found for types-pkg-resources

During a Python pre-commit run with the following steps: ... - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.4.1 hooks: - id: mypy additional_dependencies: [types-...
George's user avatar
  • 829
-1 votes
1 answer
74 views

git pre-commit hook does not open commit_template based on GIT_EDITOR value

I am developing a functionality for more automatic Git commits. We are using a pre-commit hook, and the idea of the hook is to request a task ID and summary, then write them to the commit template. We ...
MaK's user avatar
  • 3
-1 votes
1 answer
767 views

Running git commit is not properly running pre-commit hooks

I'm currently using Ruff and am using pre-commit hooks to run it with configuration info in .pre-commit-config.yaml and .ruff.toml. When I run pre-commit run --all-files the rules like isort run fine, ...
Sean's user avatar
  • 3,385

15 30 50 per page
1
2 3 4 5
45