Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
177 views

Given a .pre-commit-config.yaml: repos: - repo: local hooks: - id: mypy name: mypy language: system entry: uv run mypy types: [python] require_serial: true exclude: scripts/...
Seanny123's user avatar
  • 9,456
0 votes
1 answer
126 views

I have to run command, which 1 argument requires output from another command (see below). Is there a way how to accomplish this? Either in entry or args? Or does pre-commit offer some built in feature ...
Arxeiss's user avatar
  • 1,078
2 votes
1 answer
133 views

I am working on new project and installed pre-commit using: python -m pip install pre-commit within my created environment (i.e. a python=3.9 env) When I run pre-commit, I had an incompatibility ...
Betty's user avatar
  • 268
-2 votes
2 answers
1k views

I am trying to enable mermaid in mkdocs using the material theme. According to the docs I should be able to enable it via: markdown_extensions: - pymdownx.extra: pymdownx.superfences: ...
Soerendip's user avatar
  • 9,305
1 vote
1 answer
81 views

I’m currently working on a few repositories that contain Nix flakes. You can test a Nix flake by running this Bash command: nix flake check That command will only work if you have the nix-command and ...
Ginger Jesus's user avatar
-3 votes
1 answer
127 views

.pre-commit-hooks.yaml is like below: - id: google-style-java name: Google Java Code Style for Java description: Formats code in Google's Java codestyle. entry: ./format-code.sh ...
tuk's user avatar
  • 6,964
0 votes
1 answer
817 views

I'm using uv as my package manager in my Python project. My pyproject.toml file looks like this: [project] name = "some-name" version = "0.1.0" readme = "README.md" ...
Ghasem's user avatar
  • 15.8k
0 votes
2 answers
97 views

Is there a way to tell the pre-commit (pre-commit.com) to apply fixes just to the modified text instead of the entire files touched? We want to set up spellchecking (using typos) on our API models, ...
Peter Silon's user avatar
0 votes
1 answer
105 views

I have a pre-commit configuration that I use inside a Go repository. This repository includes Go files and Swagger docs generated by Protobuf so I want to exclude those from the checks to avoid issues ...
Woody1193's user avatar
  • 8,212
0 votes
1 answer
233 views

I'm using some pre-commit hooks for Buf to help me check Protobuf files before compiling them to Go: repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 # Use the ref you ...
Woody1193's user avatar
  • 8,212
0 votes
0 answers
61 views

I'm building a python app with a .toml file. I'm using poetry to deal with dependencies and packaging. Here is an extract of my toml file [tool.poetry] name = "app_name" version = "0.1....
Aydin Abiar's user avatar
-1 votes
1 answer
110 views

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
0 votes
1 answer
999 views

I'm trying to run the pre-commit tool in a GitLab pipeline. I use a custom-built Python image that has git installed in the pipeline job. I install pre-commit at the start of the job using a pip ...
mdailey77's user avatar
  • 2,661
-1 votes
1 answer
391 views

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,933
1 vote
1 answer
217 views

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

15 30 50 per page
1
2 3 4 5
25