Skip to content
Snippets Groups Projects
Commit 696d200a authored by Jan David Mol's avatar Jan David Mol Committed by Corné Lukken
Browse files

Resolve L2SS-962

parent 80085707
No related branches found
No related tags found
1 merge request!94Resolve L2SS-962
[DEFAULT]
test_path=./
top_dir=./
\ No newline at end of file
# -*- coding: utf-8 -*-
# Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy)
# SPDX-License-Identifier: Apache-2.0
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Control the code that controls us, the great eyes aimed at the sky!"""
try:
from importlib import metadata
except ImportError: # for Python<3.8
import importlib_metadata as metadata
from importlib import metadata
from lofar_station_client.requests.prometheus import PrometheusRequests
......
# Order does matter
importlib-metadata>=0.12, <5.0;python_version<"3.8"
pip>=23.3
requests>=2.31.0 # Apache 2
numpy>=1.21.0 # BSD
......
......@@ -4,7 +4,6 @@ flake8>=5.0.0 # MIT
pylint>=2.15.0 # GPLv2
autopep8>=1.7.0 # MIT
coverage!=4.4,>=4.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
testscenarios>=0.5.0 # Apache-2.0/BSD
pytz>=2022.6 # MIT
......
......@@ -26,15 +26,15 @@ usedevelop = False
envdir = {toxworkdir}/linting
commands =
pep8: {envpython} -m flake8 --version
pep8: {envpython} -m flake8 lofar_station_client tests
pep8: {envpython} -m flake8 lofar_station_client tests integration
black: {envpython} -m black --version
black: {envpython} -m black --check --diff .
black: {envpython} -m black --check --diff lofar_station_client tests integration
pylint: {envpython} -m pylint --version
pylint: {envpython} -m pylint lofar_station_client
format: {envpython} -m autopep8 -v -aa --in-place --recursive lofar_station_client/
format: {envpython} -m autopep8 -v -aa --in-place --recursive integration/
format: {envpython} -m autopep8 -v -aa --in-place --recursive tests/
format: {envpython} -m black -v .
format: {envpython} -m black -v lofar_station_client tests integration
[testenv:debug]
commands = {envpython} -m testtools.run {posargs}
......@@ -77,8 +77,7 @@ allowlist_externals =
commands =
# We need the bash substitutions here
bash -ec 'pip install --force-reinstall {toxinidir}/dist/*.whl'
{envpython} -m stestr run --serial {posargs}
{envpython} -m pytest -v --log-level=DEBUG ./
[flake8]
filename = *.py
exclude=.tox,.egg-info,dist,_version,build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment