Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17 conform smormlpy style guidelines #18

Merged
merged 4 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ __pycache__/
# ignore testing notebooks
notebooks/
# ignore dabapush project
dabapush.yml
dabapush.yml
.coverage
poetry.lock
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
# format code files with black
- repo: local
hooks:
- id: system
name: Black
entry: poetry run black
types: ['python']
language: system
# sort imports with isort
- repo: local
hooks:
- id: system
name: isort
entry: poetry run isort
types: ['python']
language: system
# run pylint against code base
- repo: local
hooks:
- id: system
name: Pylint
entry: poetry run pylint -j 0
types: ['python']
language: system
Loading