Skip to content

Commit

Permalink
Clean root folder files
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillemdb committed Jan 22, 2021
1 parent 90d9bc1 commit bea0bfc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Contributing Guidelines

{{project_name}} is [{{license}} licensed](LICENSE) and accepts
ML Ops Quickstart is [MIT licensed](LICENSE) and accepts
contributions via GitHub pull requests. This document outlines some of the
conventions on development workflow, commit message formatting, contact points,
and other resources to make it easier to get your contribution accepted.

## Certificate of Origin

By contributing to this project you agree to the [Developer Certificate of
Origin (DCO)](DCO). This document was created by the Linux Kernel community and is a
Origin (DCO)](DCO.md). This document was created by the Linux Kernel community and is a
simple statement that you, as a contributor, have the legal right to make the
contribution.

Expand All @@ -22,7 +22,7 @@ This can be done easily using the [`-s`](https://github.com/git/git/blob/b2c150d

The official support channels, for both users and contributors, are:

- GitHub [issues](https://github.com/{{owner}}/{{project_name}}/issues)*
- GitHub [issues](https://github.com/fragiletech/ml-ops-quickstart/issues)*

*Before opening a new issue or submitting a new pull request, it's helpful to
search the project - it's likely that another user has already reported the
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN cd mloq \
RUN make -f mloq/scripts/makefile.docker remove-dev-packages
RUN mkdir /root/.jupyter && \
echo 'c.NotebookApp.token = "'${JUPYTER_PASSWORD}'"' > /root/.jupyter/jupyter_notebook_config.py
CMD pipenv run jupyter notebook --allow-root --port 8080 --ip 0.0.0.0
CMD jupyter notebook --allow-root --port 8080 --ip 0.0.0.0
25 changes: 16 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ check:
pylint ${PROJECT}
black --check ${PROJECT}

.PHONY: pipenv-build
pipenv-build:
.PHONY: pipenv-install
pipenv-install:
rm -rf *.egg-info && rm -rf build && rm -rf __pycache__
rm -f Pipfile && rm -f Pipfile.lock
pipenv install --dev -r requirements-test.txt
Expand All @@ -29,22 +29,29 @@ pipenv-build:
pipenv install -e .
pipenv lock

.PHONY: test
test:
find -name "*.pyc" -delete
pytest -s

.PHONY: pipenv-test
pipenv-test:
find -name "*.pyc" -delete
pipenv run pytest -s

.PHONY: test
test:
find -name "*.pyc" -delete
pytest -s
.PHONY: docker-build
docker-build:
docker build --pull -t ${DOCKER_ORG}/${PROJECT}:${VERSION} .

.PHONY: docker-test
docker-test:
find -name "*.pyc" -delete
docker run --rm -v $(pwd):/io --network host -w /${PROJECT} --entrypoint python3 ${DOCKER_ORG}/${PROJECT}:${VERSION} -m pytest

.PHONY: docker-build
docker-build:
docker build --pull -t ${DOCKER_ORG}/${PROJECT}:${VERSION} .
.PHONY: docker-shell
docker-shell:
docker run --rm -v $(pwd):/io --network host -w /${PROJECT} -it ${DOCKER_ORG}/${PROJECT}:${VERSION} bash

.PHONY: docker-notebook
docker-notebook:
docker run --rm -v $(pwd):/io --network host -w /${PROJECT} -it ${DOCKER_ORG}/${PROJECT}:${VERSION}
1 change: 1 addition & 0 deletions scripts/rename_testpypi_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def main():
project = os.environ.get("PROJECT_NAME", "mloq")
last_version = get_versions(project)[-1]
rename_wheels(last_version)
return 0


if __name__ == "__main__":
Expand Down

0 comments on commit bea0bfc

Please sign in to comment.