Skip to content

Commit c042e8f

Browse files
committed
Clean up after the merge
1 parent 35e8cbc commit c042e8f

File tree

8 files changed

+4
-82
lines changed

8 files changed

+4
-82
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN groupadd --gid $USER_GID $USERNAME \
2525
# Set up the Python development environment
2626
WORKDIR /app
2727
COPY pyproject.toml poetry.lock ./
28-
RUN python -m pip install poetry && \
28+
RUN python -m pip install -U pip poetry && \
2929
poetry config virtualenvs.create false && \
3030
poetry install
3131

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Install dependencies
4646
run: |
47-
python -m pip install poetry
47+
python -m pip install -U pip poetry
4848
poetry config virtualenvs.create false
4949
poetry install
5050

lab/requirements.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

lab/setup.cfg

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,3 @@ show_missing = True
1010

1111
[pylint.'MESSAGES CONTROL']
1212
disable=E1101
13-
14-
[green]
15-
verbose=3
16-
processes=1
17-
run-coverage=1
18-
termcolor=1
19-
# minimum-coverage=95
20-
# junit-report=./unittests.xml

setup.cfg

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,6 @@
1-
# setup configuration for tools
2-
[tool:pytest]
3-
minversion = 6.0
4-
addopts = --pspec --cov=service --cov-fail-under=95 --disable-warnings
5-
testpaths =
6-
tests
7-
integration
8-
9-
[green]
10-
verbose=3
11-
processes=1
12-
run-coverage=1
13-
termcolor=1
14-
minimum-coverage=95
15-
# junit-report=./unittests.xml
1+
# Code Quality
162

173
[flake8]
184
max-line-length = 127
195
per-file-ignores =
206
*/__init__.py: F401 E402
21-
22-
[pylint.'MESSAGES CONTROL']
23-
disable=E1101
24-
25-
[coverage:run]
26-
source = service
27-
omit =
28-
venv/*
29-
.venv/*
30-
31-
[coverage:report]
32-
show_missing = true
33-
exclude_lines =
34-
pragma: no cover
35-
pragma: no branch
36-
pass
37-
subprocess.CalledProcessError
38-
sys.exit
39-
if __name__ == .__main__.:
40-
ignore_errors = true
41-
42-
[coverage:xml]
43-
output=./coverage.xml
44-
45-
[coverage:html]
46-
title = 'Test Coverage Report'

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2016, 2019 John J. Rofrano. All Rights Reserved.
1+
# Copyright 2016, 2024 John J. Rofrano. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tests/test_models.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414

1515
"""
1616
Test cases for Pet Model
17-
18-
Test cases can be run with:
19-
nosetests
20-
coverage report -m
21-
22-
While debugging just these tests it's convenient to use this:
23-
nosetests --stop tests/test_pets.py:TestPetModel
24-
2517
"""
2618
import os
2719
import logging

tests/test_routes.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414

1515
"""
1616
Pet API Service Test Suite
17-
18-
Test cases can be run with the following:
19-
nosetests -v --with-spec --spec-color
20-
coverage report -m
21-
codecov --token=$CODECOV_TOKEN
22-
23-
While debugging just these tests it's convenient to use this:
24-
nosetests --stop tests/test_service.py:TestPetService
2517
"""
2618

2719
import os

0 commit comments

Comments
 (0)