-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pre-commit to avoid problematic commits (#5)
Co-authored-by: emielvdveen <emiel@applike.nl>
- Loading branch information
1 parent
202eded
commit ca6fbfb
Showing
8 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-merge-conflict | ||
- id: no-commit-to-branch | ||
args: [-b, main] | ||
- repo: local | ||
hooks: | ||
- id: mix-test | ||
name: "elixir: mix test" | ||
entry: mix test | ||
language: system | ||
pass_filenames: false | ||
files: \.exs*$ | ||
|
||
- id: mix-format | ||
name: "elixir: mix format" | ||
entry: mix format --check-formatted | ||
language: system | ||
files: \.exs*$ | ||
|
||
- id: mix-compile | ||
name: "elixir: mix compile" | ||
entry: mix compile --force --warnings-as-errors | ||
language: system | ||
pass_filenames: false | ||
files: \.ex$ | ||
|
||
- id: mix-credo | ||
name: "elixir: mix credo" | ||
entry: mix credo | ||
language: system | ||
pass_filenames: false | ||
files: \.exs*$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
"deps": true, | ||
"postgres-data": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM postgres:11 | ||
|
||
COPY testing.postgresql.conf /etc/postgresql/postgresql.conf | ||
COPY testing.postgresql.conf /etc/postgresql/postgresql.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters