-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre commit added missing precommit file and updated gitignore
* Update flake8 and update docs to match the updated rules * Precommit added to Readme, and ran initially to fix lineendings and extra white space * Pre commit yaml added
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ smoke-test | |
.meltano/** | ||
.tox/** | ||
.vscode/** | ||
output/** |
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,49 @@ | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: weekly | ||
autoupdate_commit_msg: 'chore: pre-commit autoupdate' | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-toml | ||
exclude: | | ||
(?x)^( | ||
copier_template/.*/pyproject.toml | ||
)$ | ||
- id: end-of-file-fixer | ||
exclude: (copier_template/.*|docs/.*|samples/.*\.json) | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
exclude: | | ||
(?x)^( | ||
copier_template/.* | ||
)$ | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
exclude: (copier_template/.*) | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- darglint==1.8.1 | ||
- flake8-annotations==2.9.0 | ||
- flake8-docstrings==1.6.0 | ||
files: 'meltano/edk/.*' | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.2.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] |