Giter Club home page Giter Club logo

pre-commit-hooks's Introduction

pre-commit-hooks

Git Hooks Test Workflow Status Copy/Paste: 0%

Automated Updates: Renovate Package Management: Poetry Git Hooks: pre-commit Commit Style: Conventional Commits Releases: Semantic Versioning Code Style: Prettier Code Style: EditorConfig Editor: Visual Studio Code

Hooks for Use With the pre-commit Framework

Pre-commit only supports Git and no other version control system (VCS). The defaults for the Yarn hooks are configured for use with a Zero-Installs TypeScript project. They assume Yarn and Node.js are managed by asdf, but the file patterns may be overridden.

Hooks

no-merge-commits

Prevent new merge commits. Useful for enforcing rebase workflows. Does not stop merge committing in CI.

asdf-install

Install tools (based on .tool-versions unless otherwise configured) by running asdf install.

poetry-check

Validate structure of pyproject.toml by running poetry check. Run when Poetry dependencies or version changes (assuming Poetry is managed by asdf, but the file pattern may be overridden).

poetry-lock

Update poetry.lock to match pyproject.toml without upgrading already locked dependencies by running poetry lock --no-update. Run when Poetry dependencies or version changes (assuming Poetry is managed by asdf, but the file pattern may be overridden).

poetry-install

Install Poetry dependencies from poetry.lock by running poetry install --sync. Uninstall any dependencies not found in the lock file. Requires Poetry 1.2+.

pre-commit-install

Install pre-commit hooks by running pre-commit install --install-hooks. See also the documentation for default_install_hook_types.

yarn-install

Install Yarn dependencies, and update yarn.lock by running yarn install.

yarn-dedupe

Deduplicate Yarn dependencies by running yarn dedupe.

yarn-audit

Perform security audit of Yarn dependencies by running yarn npm audit --all --recursive.

yarn-sdks

Generate SDKs and settings for editors specified in .yarn/sdks/integrations.yml by running yarn run sdks && yarn run prettier --write .vscode/settings.json. Format VSCode settings with Prettier to prevent formatting conflicts with MegaLinter.

yarn-build

Run the build script in package.json via yarn run build.

yarn-test

Run the test script in package.json via yarn run test --passWithNoTests --findRelatedTests. Useful for running Jest tests that check the modified files, but the flag can be overridden.

megalinter-incremental

This hook is intended for MegaLinter v6. Run MegaLinter (skipping linters that run in project mode) by running:

npx -- [email protected] \
  --container-name megalinter-incremental \
  --remove-container \
  --fix \
  --env LOG_LEVEL=warning \
  --filesonly

See the documentation for mega-linter-runner and MegaLinter configuration.

megalinter-full

This hook is intended for MegaLinter v6. Run MegaLinter by running:

npx -- [email protected] \
  --container-name megalinter-full \
  --remove-container \
  --fix \
  --env LOG_LEVEL=warning \

See the documentation for mega-linter-runner and MegaLinter configuration.

Changelog

Please refer to CHANGELOG.md.

pre-commit-hooks's People

Contributors

dependabot[bot] avatar kurt-von-laven avatar mwarres avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pre-commit-hooks's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • chore(deps): bump poetry from v1.8.2 to v1.8.3
  • chore(deps): bump pre-commit hook princetonuniversity/blocklint to v0.2.5
  • chore(deps): bump scribemd/pre-commit-action action to v0.9.129
  • chore(deps): bump scribemd/slack-templates action to v0.6.38
  • chore(engines): bump python from v3.12.2 to v3.12.3
  • chore(deps): bump commitizen to v3.27.0 (commitizen, commitizen-tools/commitizen)
  • chore(deps): bump node from v20.11.1 to v20.13.1
  • chore(deps): bump pre-commit hook pre-commit/pre-commit-hooks to v4.6.0
  • chore(deps): bump pre-commit to v3.7.1 (pre-commit, pre-commit/pre-commit)
  • fix(deps-dev): bump megalinter to v7.11.1 (MegaLinter, mega-linter-runner)
  • chore(deps): bump pre-commit hook frnmst/md-toc to v9.0.0
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Detected dependencies

asdf
.tool-versions
  • node 20.11.1
  • python 3.12.2
  • poetry 1.8.2
github-actions
.github/workflows/notify-assignee.yaml
  • ScribeMD/slack-templates 0.6.37@bea126c3915616204196f29d27d6ab9526d61a25
.github/workflows/notify-reviewers.yaml
  • ScribeMD/slack-templates 0.6.37@bea126c3915616204196f29d27d6ab9526d61a25
.github/workflows/test.yaml
  • ScribeMD/pre-commit-action 0.9.127@832e026101148e0234fde20eecf91c08942ace4a
pep621
pyproject.toml
  • poetry-core ==1.9.0
poetry
pyproject.toml
  • python ==3.12.2
  • commitizen ==3.18.4
  • pre-commit ==3.6.2
pre-commit
.pre-commit-config.yaml
  • ScribeMD/pre-commit-hooks 0.16.3
  • frnmst/md-toc 8.2.3
  • pre-commit/pre-commit-hooks v4.5.0
  • pre-commit/pre-commit v3.6.2
  • PrincetonUniversity/blocklint v0.2.4
  • commitizen-tools/commitizen v3.18.4
  • jumanjihouse/pre-commit-hooks 3.0.0
regex
.github/renovate.json
  • ScribeMD/.github 0.14.16
.pre-commit-config.yaml
  • python 3.12.2
.pre-commit-config.yaml
  • MegaLinter v7.7.0
.pre-commit-hooks.yaml
  • mega-linter-runner 7.7.0
  • mega-linter-runner 7.7.0
README.md
  • mega-linter-runner 7.7.0
  • mega-linter-runner 7.7.0
.mega-linter.yaml
  • ScribeMD/.github 0.14.16

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.