Move hooks definition to README
This commit is contained in:
@@ -86,6 +86,10 @@ The project is managed and configured via [mise-en-place](https://mise.jdx.dev):
|
|||||||
> set of credentials. See the `env` section in `mise.toml` for the required
|
> set of credentials. See the `env` section in `mise.toml` for the required
|
||||||
> environment variables.
|
> environment variables.
|
||||||
|
|
||||||
|
It's recommended to use the git hooks included in the project. Install with:
|
||||||
|
|
||||||
|
`mise generate git-pre-commit --write --task=dev:precommit`
|
||||||
|
|
||||||
## Environment configuration
|
## Environment configuration
|
||||||
|
|
||||||
The application requires the following environment variables:
|
The application requires the following environment variables:
|
||||||
|
|||||||
@@ -43,17 +43,6 @@ run = """
|
|||||||
hurl --test --progress-bar scripts/deploy.hurl
|
hurl --test --progress-bar scripts/deploy.hurl
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# GIT TOOLING
|
|
||||||
|
|
||||||
[tasks.static-checks-hook]
|
|
||||||
description = '''
|
|
||||||
Pre-commit task to ensure code conforms to static checks policies.
|
|
||||||
|
|
||||||
Install with `mise generate git-pre-commit --write --task=dev:precommit`
|
|
||||||
'''
|
|
||||||
run = 'mix do format --check-formatted, credo --strict, gettext.extract --check-up-to-date'
|
|
||||||
hide = true
|
|
||||||
|
|
||||||
# DEVELOPMENT/TEST
|
# DEVELOPMENT/TEST
|
||||||
|
|
||||||
[tasks.test]
|
[tasks.test]
|
||||||
|
|||||||
Reference in New Issue
Block a user