-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e993e20
commit 0bb107f
Showing
9 changed files
with
153 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,74 @@ | ||
# Python CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-python/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
sanity: | ||
docker: | ||
- image: circleci/python:3.7 | ||
|
||
- image: circleci/python:3.7 | ||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: install dependencies | ||
command: | | ||
pipenv install | ||
- run: | ||
name: run tests | ||
command: | | ||
pipenv run pytest | ||
- store_artifacts: | ||
path: test-reports | ||
destination: test-reports | ||
- checkout | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pip install --user -r ci/requirements.txt | ||
- run: | ||
name: linter | ||
command: | | ||
flake8 . | ||
- run: | ||
name: install package | ||
command: | | ||
pip install --user . | ||
- run: | ||
name: pytest | ||
command: | | ||
pytest | ||
release: | ||
docker: | ||
- image: circleci/python:3.7 | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- run: | ||
name: install dependencies | ||
command: | | ||
pip install --user -r ci/requirements.txt | ||
- run: | ||
name: generate .pypirc | ||
command: | | ||
echo -e "[pypi]" >> ~/.pypirc | ||
echo -e "username = $PYPI_USERNAME" >> ~/.pypirc | ||
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc | ||
- run: | ||
name: build package | ||
command: | | ||
python setup.py sdist | ||
- run: | ||
name: upload to pypi | ||
command: | | ||
twine upload dist/* | ||
workflows: | ||
version: 2 | ||
sanity: | ||
jobs: | ||
- sanity: | ||
filters: | ||
branches: | ||
only: /.*/ | ||
tags: | ||
ignore: /.*/ | ||
release: | ||
jobs: | ||
- sanity: | ||
filters: | ||
tags: | ||
only: /v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
ignore: /.*/ | ||
- release: | ||
filters: | ||
tags: | ||
only: /v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
ignore: /.*/ | ||
requires: | ||
- sanity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
flake8 | ||
flake8-bandit | ||
flake8-broken-line | ||
flake8-bugbear | ||
flake8-builtins | ||
flake8-commas | ||
flake8-comprehensions | ||
flake8-docstrings | ||
flake8-eradicate | ||
flake8-isort | ||
flake8-logging-format | ||
flake8-mutable | ||
flake8-pep3101 | ||
flake8-pytest | ||
flake8-quotes | ||
flake8-string-format | ||
flake8-tidy-imports | ||
pytest | ||
twine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[flake8] | ||
max-line-length=100 | ||
exclude=src/test/* | ||
|
||
[isort] | ||
line_length=100 | ||
indent=' ' | ||
multi_line_output=3 | ||
length_sort=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .surrogatesearchcv import SurrogateSearchCV # noqa | ||
from .surrogatesearchcv import SurrogateSearchCV # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters