-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb4a795
commit 4e99e28
Showing
5 changed files
with
171 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
# where are the environments stored https://stackoverflow.com/a/62539529 | ||
# inspired by https://github.com/pronovic/apologies | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
files: '.*\.(py|rst|json|yaml)' | ||
- id: end-of-file-fixer | ||
files: '.*\.(py|rst|json|yaml)' | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: local | ||
hooks: | ||
- id: system | ||
name: Black | ||
entry: poetry run black src tests | ||
pass_filenames: false | ||
language: system | ||
- repo: local | ||
hooks: | ||
- id: system | ||
name: isort | ||
entry: poetry run isort src --profile black | ||
pass_filenames: false | ||
language: system | ||
# - repo: local | ||
# hooks: | ||
# - id: system | ||
# name: Safety | ||
# entry: poetry run safety check | ||
# pass_filenames: false | ||
# language: system | ||
|
||
# Disabled until mypy support structural pattern matching | ||
# - repo: local | ||
# hooks: | ||
# - id: system | ||
# name: MyPy | ||
# entry: poetry run mypy -p design_by_contract | ||
# pass_filenames: false | ||
# language: system | ||
- repo: local | ||
hooks: | ||
- id: system | ||
name: Pylint | ||
entry: poetry run pylint -j0 design_by_contract --disable=R,C,W | ||
pass_filenames: false | ||
language: system |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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