diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cec4b98333bb59261df4478660703dd4fd304df6..28ed56a00300324ec9ab553f5fbca0b1f6452e1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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." diff --git a/setup.py b/setup.py index 638df50275127f5f975918bde7b0a2fba435a847..47e0eb5ddd7de4e734c5c7ae12c7a75b7196108c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ """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, diff --git a/tests/__init__.py b/tests/__init__.py index 8c26b48c7cd14f264ec8c86f6f9487f9180ce4ca..01d21ff0c16f73340094995eea7ac86eb2452f39 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1 @@ -"""Tests for the package tsg.""" +"""Initialise tests.""" diff --git a/tsg/main.py b/tsg/main.py index d2c1bb63ccb61fe696723fb58270f15323f58bc6..7926ef56ca226f88904a09426994c0a738a4d6eb 100644 --- a/tsg/main.py +++ b/tsg/main.py @@ -308,6 +308,7 @@ class Gtf: class TranscriptGenerator: """Class to sample a transcript.""" + # pylint: disable=W0613 def __new__( cls, transcript_id: str,