
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
git-grapnel
Advanced tools
This is a collection of custom git hooks.
Note: even thought these scripts can be configured to a certain degree, they can't possibly cover all existing use cases, and thus are meant more as blueprints and sources of inspiration rather than comprehensive solutions.
Clone the repo or download the scripts from the latest release,
and make sure they're executable (chmod +x <scripts>
).
Place the scripts in a folder named hooks
inside the .git
directory of that
repo.
Ensure the scripts are in your PATH
so that git
can execute them.
Then point the core.hooksPath
config option to the folder containing the
scripts, e.g. if they're stored in ~/.git-grapnel
:
git config core.hooksPath ~/.git-grapnel
Some of the scripts use external tools to accomplish their tasks, so make sure you install them too:
Each of the hooks can be bypassed by calling its git command with the
--no-verify
option.
All the features are disabled by default, and each on can be enabled and
configured by setting some environment variables (GIT_GRAPNEL_*
).
This hook is run whenever committing to a repo.
Setting GIT_GRAPNEL_LINT_ON_COMMIT
to 1
will enable the automatic linting of
modified source files. The commit will be cancelled if any errors or warnings
are produced.
This hook is run whenever committing to a repo.
Setting GIT_GRAPNEL_COMMIT_MSG_FORMAT
to one of the following values will
enforce that particular format for commit message:
basic
: the message must start with a capital letter and not end with a full stopconventional-commits
: the message must conform to the Conventional Commits specificationIt can also:
GIT_GRAPNEL_SPELLCHECK
)''
) into a single back quote — useful when you
surround the message in double quotes on the command line (GIT_GRAPNEL_CONVERT_SINGLE_QUOTE_PAIRS
)GIT_GRAPNEL_ADD_EMOJIS
)This hook is run whenever pushing to a remote.
Setting GIT_GRAPNEL_PRE_PUSH_CHECKS
to 1
will automatically lint the
codebase and run the testing scripts present in package.json
, and abort the
push if any of them fail.
This hook is run after a successful merge.
Setting GIT_GRAPNEL_AUTO_INSTALL
to 1
will reinstall the Node modules as
needed to keep them in sync with package-lock.json
.
Contributions are welcomed! Please open an issue before submitting substantial changes.
git-toolbelt
– A collection of convenient utilities for everyday git usageISC
FAQs
A collection of useful git hooks written in Bash.
We found that git-grapnel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.