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.
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
- 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.
script:
- pip install -r requirements.txt
......@@ -23,9 +22,8 @@ Coverage-test-job: # Test Stage
- pip install -e .
- coverage run --source tsg -m pytest
- 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.
script:
- pip install -r requirements.txt
......@@ -34,4 +32,3 @@ Flake8/Pylint/mypy-test-job: # Test Stage
- flake8 --docstring-convention google tsg/ tests/
- pylint tsg/ tests/
- mypy tsg/ tests/
- echo "Linters successfully deployed."
"""Set up project."""
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()
with open(project_root_dir / "requirements.txt",
......@@ -16,7 +16,7 @@ setup(
url=URL,
license='MIT',
author='Larissa Glass, Michael Zimmermann, Andri Fraenkl',
author_email='mate.balajti@unibas.ch',
author_email='michael.zimmermann@unibas.ch',
description='Transcript structure generator',
packages=find_packages(),
install_requires=INSTALL_REQUIRES,
......
"""Tests for the package tsg."""
"""Initialise tests."""
......@@ -308,6 +308,7 @@ class Gtf:
class TranscriptGenerator:
"""Class to sample a transcript."""
# pylint: disable=W0613
def __new__(
cls,
transcript_id: str,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment