-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .pre-commit-config.yaml and .yamllint * 'pre-commit run --all-files'. Manually fix some yaml complaints. * Exclude some files from whitespace changes. * Switch out docker image to quay (astronomer/issues#1355) * Be specific about regex types * Require at least one digit in each section
- Loading branch information
1 parent
b28c6a4
commit 802e1a9
Showing
17 changed files
with
143 additions
and
56 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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
.astro/ | ||
.DS_Store | ||
.idea/ | ||
.vscode/ | ||
astro | ||
meta/ | ||
astro-cli | ||
cover.out | ||
coverage.txt | ||
dist/ | ||
meta/ | ||
packages.txt | ||
requirements.txt | ||
|
||
# IDEs | ||
.idea/ | ||
.vscode/ | ||
.DS_Store | ||
coverage.txt | ||
cover.out | ||
astro-cli | ||
vendor/github.com/theupdateframework/notary/Dockerfile | ||
vendor/github.com/theupdateframework/notary/Dockerfile |
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,55 @@ | ||
--- | ||
exclude: '(vendor|.vscode)' # regex | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: go-fmt | ||
name: go fmt | ||
types: [go] | ||
language: system | ||
entry: 'gofmt -w -s' | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.3.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-xml | ||
- id: check-yaml | ||
args: ['--allow-multiple-documents'] | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: file-contents-sorter | ||
args: ['--ignore-case'] | ||
files: '^\.gitignore$' # regex | ||
- id: mixed-line-ending | ||
args: ['--fix=lf'] | ||
- id: no-commit-to-branch | ||
args: ['-b', 'main'] | ||
- id: pretty-format-json | ||
args: ['--autofix', '--no-ensure-ascii'] | ||
- id: sort-simple-yaml | ||
- id: trailing-whitespace | ||
exclude: '.*_test.go$' # regex | ||
- repo: https://github.com/detailyang/pre-commit-shell | ||
rev: 1.0.5 | ||
hooks: | ||
- id: shell-lint | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.25.0 | ||
hooks: | ||
- id: yamllint | ||
- repo: https://github.com/astronomer/pre-commit-hooks | ||
rev: fdcede7a5c8ea762c903f242279112161cf35d9f | ||
hooks: | ||
- id: CVE-2017-18342 | ||
- id: remove-en-dashes | ||
- id: remove-unicode-non-breaking-spaces | ||
- id: remove-unicode-zero-width-non-breaking-spaces | ||
- id: remove-unicode-zero-width-space |
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,17 @@ | ||
--- | ||
# https://yamllint.readthedocs.io/en/stable/configuration.html#default-configuration | ||
extends: default | ||
|
||
ignore: | | ||
vendor | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: disable | ||
truthy: disable | ||
comments-indentation: disable |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ ENV PATH /go/bin:$PATH | |
|
||
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin | ||
|
||
WORKDIR $GOPATH | ||
WORKDIR $GOPATH |
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
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
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,4 @@ | ||
--- | ||
coverage: | ||
range: 52..100 | ||
round: down | ||
|
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 +1 @@ | ||
FROM quay.io/astronomer/ap-airflow:latest-onbuild | ||
FROM quay.io/astronomer/ap-airflow:latest-onbuild |