diff --git a/docker-compose.yml b/docker-compose.yml index e193a16..3dcc15b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,10 @@ services: volumes: - '.:/app' ports: - - '4008:4008' + - '4000:4008' command: bash -c "chmod +x docker/docker-run.dev.sh && docker/docker-run.dev.sh" stdin_open: true tty: true + environment: + PAGINATION_HISTORY_LIMIT: 10 + PAGINATION_LIMIT: 20 diff --git a/flake.nix b/flake.nix index 2bbfee4..ed16ca3 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,7 @@ beam28Packages.elixir beam28Packages.hex beam28Packages.expert + prettier ]; shellHook = '' lefthook install diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000..27d69cd --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,18 @@ +pre-commit: + parallel: true + jobs: + - name: prettier + glob: '*.{css,html,js,json,md,mjs,ts,yaml,yml}' + run: prettier --check --config=.prettierrc.js --ignore-path=.prettierignore --ignore-path=.gitignore {staged_files} + + - name: mix format + glob: '*.{ex,exs}' + run: mix format --check-formatted + + - name: typos + run: typos {staged_files} + +pre-push: + jobs: + - name: mix check + run: mix check