Commit f1626e9c authored by Ruben Rodrigues's avatar Ruben Rodrigues
Browse files

Initial commit

parents
Pipeline #984 failed with stages
in 2 minutes and 18 seconds
.mypy_cache/
settings.json
__pycache_/
*.egg-info/
.tox/
.pytest_cache/
.xml
.pkl
.env
\ No newline at end of file
stages:
# sample stages might include:
- test
- deploy
variables:
# declare any variables here
WORKSPACE: "../{CI_PROJECT_NAME}
before_script:
# here you can run any commands before the pipelines start
- echo $CONDA_PREFIX
after_script:
# Do something after the pipeline is finished
# Attention: if you do clean-up here and delete your junit output, Gitlab cannot upload the file
test job:
stage: test
script:
- tox
artifacts:
when: always
reports:
junit: report.xml
paths:
- report.xml
expire_in: 1 week
deploy job:
stage: deploy
script: <deploy>
last job:
stage: .post
script: <this will always be the last run job, so you can do for example clean-up here>
# Find more info here: https://docs.gitlab.com/ee/ci/yaml/
\ No newline at end of file
%% Cell type:code id: tags:
```
# Load autoreload module
# autoreload 1: reload modules imported with %aimport everytime before execution
# autoreload 2: reload all modules
%load_ext autoreload
%autoreload 2
%matplotlib inline
%load_ext dotenv
dotenv -o "../.env"
```
from setuptools import setup
from setuptools import find_packages
setup(name='<pkg-name>',
version='0.10',
description='<package-description-here>',
author='<your-name>',
author_email='<your-email>',
license='<your-license>',
packages=find_packages("src"),
package_dir={"": "src"},
zip_safe=False,
install_requires=[
'<some-pkg>,
## Note: the space between the @ are acutally necessary!
'<some-gitlab-package> @ git+ssh://git@<package-url-with-slashes>.git@master',
],
extras_require={
'dev': [
'pytest',
'mypy',
'pylint',
'coverage',
'python-dotenv',
'tox-conda',
'ipykernel',
'matplotlib',
'plotnine',
'seaborn',
]
}
)
\ No newline at end of file
# from .module-name import module-fun
\ No newline at end of file
import pkg_name as pkg
import pytest
def test():
pytest.fail('todo')
\ No newline at end of file
[tox]
envlist =
{py37, py38}
[testenv]
passenv = *
deps=
pytest-sugar
python-dotenv
commands=
pytest --junitxml=report.xml
[testenv:black]
deps=
black
commands=
black --check .
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment