Skip to content

Commit a4ad902

Browse files
authored
Add config.
1 parent 9e4f162 commit a4ad902

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 22.3.0
13+
hooks:
14+
- id: black
15+
args: [--config, pyproject.toml]
16+
- repo: https://github.com/econchick/interrogate
17+
rev: 1.5.0
18+
hooks:
19+
- id: interrogate
20+
args: [-c, pyproject.toml]
21+
- repo: https://github.com/terrencepreilly/darglint
22+
rev: v1.8.1
23+
hooks:
24+
- id: darglint
25+
args: [-v 2] # this config makes the error messages a bit less cryptic.
26+
- repo: https://github.com/PyCQA/flake8
27+
rev: 4.0.1
28+
hooks:
29+
- id: flake8
30+
args: [--exclude, nbconvert_config.py]

environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ dependencies:
66
- pandas>=0.23
77
- xarray
88
- pip
9+
- pre-commit
10+
- pytest
911
- pip:
1012
- lazy-loader

0 commit comments

Comments
 (0)