Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript structure generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
Transcript structure generator
Commits
6fa302c2
Commit
6fa302c2
authored
1 year ago
by
Mate Balajti
Browse files
Options
Downloads
Patches
Plain Diff
update setup, ci
parent
24b310de
No related branches found
No related tags found
1 merge request
!48
refactor: setup.py, CI
Pipeline
#17412
failed
1 year ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+2
-5
2 additions, 5 deletions
.gitlab-ci.yml
setup.py
+2
-2
2 additions, 2 deletions
setup.py
tests/__init__.py
+1
-1
1 addition, 1 deletion
tests/__init__.py
tsg/main.py
+1
-0
1 addition, 0 deletions
tsg/main.py
with
6 additions
and
8 deletions
.gitlab-ci.yml
+
2
−
5
View file @
6fa302c2
...
@@ -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."
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
2
View file @
6fa302c2
"""
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
=
'
m
ate.balajti
@unibas.ch
'
,
author_email
=
'
m
ichael.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
,
...
...
This diff is collapsed.
Click to expand it.
tests/__init__.py
+
1
−
1
View file @
6fa302c2
"""
Tests for the package
ts
g
.
"""
"""
Initialise tes
ts.
"""
This diff is collapsed.
Click to expand it.
tsg/main.py
+
1
−
0
View file @
6fa302c2
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment