Compare commits

...

3 commits

Author SHA1 Message Date
Bruno BELANYI 7b9d66b68a pre-commit: add shellcheck hook
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-06 16:49:33 +00:00
Bruno BELANYI e76a1c0927 pre-commit: add initial configuration 2021-03-06 16:49:23 +00:00
Bruno BELANYI d09e9f54f8 nix: add direnv integration 2021-03-06 16:48:13 +00:00
2 changed files with 21 additions and 0 deletions

8
.envrc Normal file
View file

@ -0,0 +1,8 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env)"
}
ulimit -s unlimited # Bypass current bug in `nix` flakes evaluation
use flake

13
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,13 @@
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: 'v2.3.0'
hooks:
- id: 'trailing-whitespace'
- id: 'end-of-file-fixer'
- id: 'check-yaml'
- id: 'check-added-large-files'
- repo: 'https://github.com/jumanjihouse/pre-commit-hooks'
rev: '2.1.4'
hooks:
- id: 'forbid-binary'
- id: 'shellcheck'