Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldv_datamanagement_tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
LDV
ldv_datamanagement_tasks
Commits
5b480fd9
Commit
5b480fd9
authored
2 years ago
by
Klaas Kliffen
Browse files
Options
Downloads
Patches
Plain Diff
Start on tox
parent
4580a08c
No related branches found
No related tags found
1 merge request
!5
Resolve CWG-11 "Features/ add tox"
Pipeline
#39015
passed
2 years ago
Stage: lint
Stage: test
Stage: package
Stage: integration
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
MANIFEST.in
+0
-1
0 additions, 1 deletion
MANIFEST.in
tests/requirements.txt
+4
-0
4 additions, 0 deletions
tests/requirements.txt
tox.ini
+75
-0
75 additions, 0 deletions
tox.ini
with
79 additions
and
1 deletion
MANIFEST.in
+
0
−
1
View file @
5b480fd9
...
@@ -3,5 +3,4 @@ include README.md
...
@@ -3,5 +3,4 @@ include README.md
include VERSION
include VERSION
recursive-include docs *
recursive-include docs *
recursive-exclude tests *
recursive-exclude tests *
This diff is collapsed.
Click to expand it.
tests/requirements.txt
0 → 100644
+
4
−
0
View file @
5b480fd9
black
build
flake8
pylint
This diff is collapsed.
Click to expand it.
tox.ini
0 → 100644
+
75
−
0
View file @
5b480fd9
[tox]
# Generative environment list to test all supported Python versions
envlist
=
py3{7,8,9,10},black,pep8,pylint
minversion
=
3.18.0
# Source distributions are explicitly build using tox -e build
skipsdist
=
True
[testenv]
usedevelop
=
True
setenv
=
LANGUAGE
=
en_US
LC_ALL
=
en_US.UTF-8
PYTHONWARNINGS
=
default::DeprecationWarning
deps
=
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands
=
{envpython}
--version
stestr
run
{posargs}
# Use generative name and command prefixes to reuse the same virtualenv
# for all linting jobs.
[testenv:{pep8,black,pylint}]
usedevelop
=
False
envdir
=
{toxworkdir}/linting
commands
=
pep8:
{envpython}
-m
flake8
--version
pep8:
{envpython}
-m
flake8
black:
{envpython}
-m
black
--version
black:
{envpython}
-m
black
--check
--diff
.
pylint:
{envpython}
-m
pylint
--version
pylint:
{envpython}
-m
pylint
lofar_station_client
[testenv:debug]
commands
=
{envpython} -m testtools.run {posargs}
[testenv:coverage]
; stestr does not natively support generating coverage reports use
; `PYTHON=python -m coverage run....` to overcome this.
setenv
=
PYTHON
=
{envpython} -m coverage run --source lofar_station_client --omit='*tests*' --parallel-mode
commands
=
{envpython}
-m
coverage
erase
{envpython}
-m
stestr
run
{posargs}
{envpython}
-m
coverage
combine
{envpython}
-m
coverage
html
-d
cover
--omit
=
'*tests*'
{envpython}
-m
coverage
xml
-o
coverage.xml
{envpython}
-m
coverage
report
--omit
=
'*tests*'
[testenv:build]
usedevelop
=
False
commands
=
{envpython} -m build
[testenv:docs]
deps
=
-r{toxinidir}/requirements.txt
-r{toxinidir}/docs/requirements.txt
commands
=
sphinx-build -b html -W docs/source docs/build/html
[testenv:integration]
# Do no install the lofar station client package, force packaged version install
skip_install
=
true
# Intentionally break import paths if not installed from package
changedir
=
{toxinidir}/integration
# Allow bash for wheel file substitution
allowlist_external
=
bash
commands
=
# We need the bash substitutions here
bash
-ec
'pip
install
--force-reinstall
{toxinidir}/dist/*.whl'
{envpython}
-m
stestr
run
--serial
{posargs}
[flake8]
filename
=
*.py
exclude
=
.tox,.egg-info
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