Skip to content

Commit

Permalink
Pre commit added missing precommit file and updated gitignore
Browse files Browse the repository at this point in the history
* 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
visch authored Jan 16, 2023
1 parent c22824d commit b237410
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ smoke-test
.meltano/**
.tox/**
.vscode/**
output/**
49 changes: 49 additions & 0 deletions .pre-commit-config.yaml
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]

0 comments on commit b237410

Please sign in to comment.