[#6] pre-commit: Add initial configuration

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-03-03 12:57:08 +03:00
parent 08e14caaf3
commit 0ad932400c
4 changed files with 23 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
.idea
.vscode
*.out
*.out

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

@ -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$"

View file

@ -14,4 +14,4 @@ after_success:
- bash <(curl -s https://codecov.io/bash)
matrix:
allow_failures:
- go: tip
- go: tip

View file

@ -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
}
```
```