Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of 0
1 answer
296 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/...
Score of 0
1 answer
240 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 ...
Score of 2
1 answer
145 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 ...
Score of -2
2 answers
2190 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: ...
Score of 1
1 answer
104 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 ...
Score of -3
1 answer
156 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 ...
Score of 0
1 answer
1241 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" ...
Score of 0
2 answers
103 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, ...
Score of 0
1 answer
117 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 ...
Score of 0
1 answer
263 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 ...
Score of 0
0 answers
66 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....
Score of -1
1 answer
135 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: ...
Score of 1
1 answer
1296 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 ...
Score of -1
1 answer
462 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: ...
Score of 1
1 answer
310 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 ...

15 30 50 per page
1
2 3 4 5
25