Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [pre-commit]

Pre-commit is an action taken prior to committing your code into a version control system.

pre-commit
-1 votes
0 answers
58 views

Installing pre-commit on windows

After looking at these instructions, I am experiencing some difficulties using pre-commit on Windows. When I run the following in git bash: pip3 install pre-commit --user Requirement already satisfied:...
a.t.'s user avatar
  • 2,482
0 votes
0 answers
28 views

Specify pre-commit cache directory on vscode to properly use source-control [duplicate]

I'm using pre-commit along with the source-control in vscode. I want to be able to specify the cache directory of pre-commit, so I defines the PRE_COMMIT_HOME environment variable in .bashrc. ...
GuillaumeA's user avatar
  • 3,545
0 votes
1 answer
46 views

pre-commit won't run stage commit-msg local hooks

I'm having great difficulty making something that seems simple and logical but doesn't work. As part of a GitHub repository with Python code, I want to manage a pre-commit that will launch a python ...
Geoffrey's user avatar
0 votes
1 answer
59 views

GitHub Actions PreCommit FatalError: git failed

I have a task to move CI/CD from Gitlab to GitHub Actions and there is one last obstacle I encounter. PreCommit library is not working. Everything worked fine in gitlab and that is why I have no idea ...
KurczakChrupiacy2's user avatar
0 votes
0 answers
72 views

Prettier Plugins Not Found with Pre-Commit

I'm using Prettier with pre-commit to format my code before committing. However, I encountered an issue where Prettier doesn't seem to recognize the plugins. With this setup, Prettier is not able to ...
Lajos's user avatar
  • 2,747
2 votes
0 answers
163 views

pre-commit Error missing config value GIT_CONFIG_VALUE_0

When i commit changes via Github Desktop, pre-commit cannot handle the changes and commit them but overwrites all other stages changes (the once i didn't intent to commit now) by its improvements. ...
Ramon Droop's user avatar
-1 votes
0 answers
50 views

Pre-commit, Github Action and no-commit-to-branch

I'm using pre-commit with my projects, including the helpful pre-commit.ci and the pre-commit Github Action. I'm running into the Github action raising an error for the no-commit-to-branch hook when ...
Ryan's user avatar
  • 241
0 votes
1 answer
64 views

commitizen - how to run commit check in gitlab ci

I'm using a commitizen and a pre-commit - repo: https://github.com/commitizen-tools/commitizen rev: v3.27.0 hooks: - id: commitizen name: commit message check On local everything is ...
kostek's user avatar
  • 3
0 votes
1 answer
28 views

pre-commit bash script not found even though it exists for .githooks [duplicate]

I'm really confused on this. The file clearly exists and has executable mode on. this is not woking on my VM running fedora. but runs fine on windows host with git-bash I did set -x to see but i see ...
Ajeetkumar's user avatar
  • 1,299
1 vote
0 answers
116 views

Different results between CLI and pre-commit

I've set up a pre-commit hook using Ruff to handle linting in my project. I've configured the hook as per the documentation: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.4.9 hooks: ...
Gonçalo Guedes's user avatar
0 votes
0 answers
49 views

pre-commit version did not match created version on msys2

I would like to install pre-commit on msys2, I ran pacman -S mingw-w64-x86_64-python-pre-commit successfuly but when I try to run it after pre-commit in a repo with hooks, I got the following error: $ ...
RobinM's user avatar
  • 41
1 vote
2 answers
142 views

Executable not found while running custom pre-commit hook written in Go

I am trying to build a custom pre-commit hook written in Go. It should run on python file. The project has the following architecture: comche/ ├── cmd/ │ └── main.go ├── scripts/ │ └── main -> ...
Adrien Riaux's user avatar
0 votes
0 answers
45 views

Smartgit installed with flatpak can't run pre-commit script

I've added a pre-commit hook using the pre-commit tool. Committing via the command line works fine, but committing with smartgit fails: ~/projects/jobby> git commit --cleanup=whitespace --allow-...
CoffeeBasedLifeform's user avatar
0 votes
1 answer
54 views

pre-commit: slither: error: unrecognized arguments: .env.example src/DecentralisedInvestmentManager.sol

While trying to make slither work with pre-commit, I noticed slither expects a single file, or directory as CLI args, whereas (my) pre-commit-config.yaml provides slither with a list of space ...
a.t.'s user avatar
  • 2,482
0 votes
1 answer
94 views

How to synchronize CI and my pre-commit checks?

I set up some pre-commit hooks that I run using poethepoet library in a poetry managed project, those are working pretty well. I also started to set a CI pipeline through TravisCI, currently this is ...
Son6's user avatar
  • 41

15 30 50 per page
1
2 3 4 5
30