Skip to content
Snippets Groups Projects
Commit 6fa302c2 authored by Mate Balajti's avatar Mate Balajti
Browse files

update setup, ci

parent 24b310de
No related branches found
No related tags found
1 merge request!48refactor: setup.py, CI
Pipeline #17412 failed
...@@ -13,9 +13,8 @@ build-job: # First stage deployment and installation of dependencies. ...@@ -13,9 +13,8 @@ build-job: # First stage deployment and installation of dependencies.
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -r requirements_dev.txt - pip install -r requirements_dev.txt
- pip install -e . - pip install -e .
- echo "Dependencies successfully deployed."
Coverage-test-job: # Test Stage unit-test-job: # Test Stage
stage: test # Starts when the above build stages finishes installing dependencies. stage: test # Starts when the above build stages finishes installing dependencies.
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
...@@ -23,9 +22,8 @@ Coverage-test-job: # Test Stage ...@@ -23,9 +22,8 @@ Coverage-test-job: # Test Stage
- pip install -e . - pip install -e .
- coverage run --source tsg -m pytest - coverage run --source tsg -m pytest
- coverage report -m - coverage report -m
- echo "Coverage successfully deployed."
Flake8/Pylint/mypy-test-job: # Test Stage lint-test-job: # Test Stage
stage: test # Deploys and runs all 3 linters. stage: test # Deploys and runs all 3 linters.
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
...@@ -34,4 +32,3 @@ Flake8/Pylint/mypy-test-job: # Test Stage ...@@ -34,4 +32,3 @@ Flake8/Pylint/mypy-test-job: # Test Stage
- flake8 --docstring-convention google tsg/ tests/ - flake8 --docstring-convention google tsg/ tests/
- pylint tsg/ tests/ - pylint tsg/ tests/
- mypy tsg/ tests/ - mypy tsg/ tests/
- echo "Linters successfully deployed."
"""Set up project.""" """Set up project."""
from pathlib import Path from pathlib import Path
from setuptools import setup, find_packages from setuptools import setup, find_packages # type: ignore
project_root_dir = Path(__file__).parent.resolve() project_root_dir = Path(__file__).parent.resolve()
with open(project_root_dir / "requirements.txt", with open(project_root_dir / "requirements.txt",
...@@ -16,7 +16,7 @@ setup( ...@@ -16,7 +16,7 @@ setup(
url=URL, url=URL,
license='MIT', license='MIT',
author='Larissa Glass, Michael Zimmermann, Andri Fraenkl', author='Larissa Glass, Michael Zimmermann, Andri Fraenkl',
author_email='mate.balajti@unibas.ch', author_email='michael.zimmermann@unibas.ch',
description='Transcript structure generator', description='Transcript structure generator',
packages=find_packages(), packages=find_packages(),
install_requires=INSTALL_REQUIRES, install_requires=INSTALL_REQUIRES,
......
"""Tests for the package tsg.""" """Initialise tests."""
...@@ -308,6 +308,7 @@ class Gtf: ...@@ -308,6 +308,7 @@ class Gtf:
class TranscriptGenerator: class TranscriptGenerator:
"""Class to sample a transcript.""" """Class to sample a transcript."""
# pylint: disable=W0613
def __new__( def __new__(
cls, cls,
transcript_id: str, transcript_id: str,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment