Skip to content
Permalink
Browse files

Updated supporting files with black commit hooks, and filled out cont…

…ributing.md
  • Loading branch information...
HunterMcGushion committed Sep 2, 2018
1 parent 185f985 commit 41ed49382b4937a4eb4ae6db0ac771091dd4deee
Showing with 167 additions and 66 deletions.
  1. +6 −0 .pre-commit-config.yml
  2. +7 −2 .travis.yml
  3. +111 −51 CONTRIBUTING.md
  4. +2 −0 README.md
  5. +37 −0 makefile
  6. +1 −1 pyproject.toml
  7. +3 −12 setup.py
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.6
@@ -11,5 +11,10 @@ before_script:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- python setup.py nosetests
# - python setup.py nosetests --with-coverage
- make test
# - python setup.py nosetests
matrix:
include:
- python: "3.6"
script:
- make lint test

Large diffs are not rendered by default.

@@ -337,6 +337,8 @@ If you like being on the cutting-edge, and you want all the latest developments,
pip install git+https://github.com/HunterMcGushion/hyperparameter_hunter.git
```

If you want to contribute to HyperparameterHunter, [get started here](CONTRIBUTING.md).

I Still Don't Get It
--------------------
That's ok. Don't feel bad. It's a bit weird to wrap your head around. Here's an example that illustrates how everything is related:
@@ -0,0 +1,37 @@
env:
python3 -m venv env
@echo 'run `source env/bin/activate` to use virtualenv'

setup: env
# source env/bin/activate && pip3 install -U black isort twine
source env/bin/activate
pip3 install -U black isort nose twine

dev: setup
# source env/bin/activate && python3 setup.py develop && pip install hyperparameter_hunter[dev]
source env/bin/activate
python3 setup.py develop
pip install hyperparameter_hunter[dev]
pre-commit install
@echo 'run `source env/bin/activate` to develop hyperparameter_hunter'

release: lint test clean
python3 setup.py sdist bdist_wheel
twine upload dist/*

format:
black hyperparameter_hunter setup.py
isort

lint:
black --check hyperparameter_hunter setup.py

test:
source env/bin/activate
nosetests

clean:
rm -rf build dist *.egg-info

distclean: clean
rm -rf env
@@ -12,6 +12,6 @@ exclude = '''
| _build
| build
| dist
| env*
| env.?/*
)/
'''
@@ -22,8 +22,9 @@ def readme():
license='MIT',
packages=find_packages(),
install_requires=[
# 'h5py', # ?
'dill',
'nbconvert',
'nbformat',
'numpy',
'pandas',
'scikit-learn',
@@ -33,27 +34,17 @@ def readme():
],
extras_require={
'dev': [
'pre-commit'
'nbconvert',
'nbformat',
'pre-commit',
],
'docs': [
'hyperparameter-hunter',
'keras',
'nbconvert',
'nbformat'
],
'ipynb': [
'nbconvert',
'nbformat'
],
'travis': [
'nose',
'hyperparameter-hunter',
'keras',
'tensorflow',
'nbconvert',
'nbformat'
]
},
include_package_data=True,

0 comments on commit 41ed493

Please sign in to comment.
You can’t perform that action at this time.