From 0ad932400c5f7e23d00de01f8cf8d4899bc7c914 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 3 Mar 2023 12:57:08 +0300 Subject: [PATCH] [#6] pre-commit: Add initial configuration Signed-off-by: Evgenii Stratonikov --- .gitignore | 2 +- .pre-commit-config.yaml | 19 +++++++++++++++++++ .travis.yml | 2 +- README.md | 4 ++-- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index ac07c98..d915ff6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .idea .vscode -*.out \ No newline at end of file +*.out diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..9c6f604 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +ci: + autofix_prs: false + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: check-merge-conflict + - id: check-json + - id: check-xml + - id: check-yaml + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] + - id: end-of-file-fixer + exclude: ".key$" diff --git a/.travis.yml b/.travis.yml index cf7f947..4f85526 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,4 @@ after_success: - bash <(curl -s https://codecov.io/bash) matrix: allow_failures: - - go: tip \ No newline at end of file + - go: tip diff --git a/README.md b/README.md index 33355fc..f1188eb 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ package main import ( "fmt" - + "git.frostfs.info/TrueCloudLab/hrw" ) @@ -89,4 +89,4 @@ func main() { // trying GET one.example.com/examples/object-key // trying GET four.example.com/examples/object-key } -``` \ No newline at end of file +```