Skip to content

Commit

Permalink
pre-commit changes implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
lukegre committed Oct 9, 2020
1 parent 4fc14dd commit 8925cd4
Show file tree
Hide file tree
Showing 6 changed files with 830 additions and 96 deletions.
24 changes: 9 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ repos:
types: [python]
exclude: setup.py

- id: mypy
name: mypy
stages: [commit]
language: system
entry: pipenv run mypy
types: [python]
require_serial: true

- id: pytest
name: pytest
stages: [commit]
Expand All @@ -40,10 +32,12 @@ repos:
types: [python]
pass_filenames: false

- id: pytest-cov
name: pytest
stages: [push]
language: system
entry: pipenv run pytest --cov --cov-fail-under=20
types: [python]
pass_filenames: false
# I've commented this for now. Might be able to implement this at a
# later stage, though we'll need to write more tests.
# - id: pytest-cov
# name: pytest
# stages: [push]
# language: system
# entry: pipenv run pytest --cov --cov-fail-under=20
# types: [python]
# pass_filenames: false
22 changes: 11 additions & 11 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ verify_ssl = true
python_version = "3.7"

[packages]
matplotlib
seawater
tqdm
scipy
scikit-learn
numpy
xarray
pandas
astral
netCDF4
numexpr
matplotlib = "*"
seawater = "*"
tqdm = "*"
scipy = "*"
scikit-learn = "*"
numpy = "*"
xarray = "*"
pandas = "*"
astral = "*"
netCDF4 = "*"
numexpr = "*"

[dev-packages]
black = "==20.8b1"
Expand Down
Loading

0 comments on commit 8925cd4

Please sign in to comment.