Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Update precommit hooks with all linters
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Oct 29, 2021
1 parent 37c2ef8 commit 973714b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Lint Python

on: [push]

jobs:
call-run-python-linters:
uses: openclimatefix/.github/.github/workflows/python-lint.yml@main
with:
folder: "satflow"
30 changes: 29 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,35 @@ repos:
- id: debug-statements
- id: detect-private-key

# python code formatting
# python code formatting/linting
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
args:
[
--convention=google,
"--add-ignore=D200,D202,D210,D212,D415",
"satflow",
]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
args:
[
--max-line-length,
"100",
--extend-ignore=E203,
--per-file-ignores,
"__init__.py:F401",
"satflow",
]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
args: [--profile, black, --line-length, "100", "satflow"]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
Expand Down

0 comments on commit 973714b

Please sign in to comment.