Skip to content

Commit a139e17

Browse files
committed
it actually works on modern python now
1 parent fd3a198 commit a139e17

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,6 @@ venv.bak/
109109
.DS_Store
110110
.vscode/
111111
.Rhistory
112+
113+
# PyCHarm
114+
/.idea/

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
test:
44
rm -f .coverage
5-
nosetests --verbose --with-coverage --cover-package kb_python tests/* tests/dry/*
5+
pytest --verbose --cov=kb_python tests/* tests/dry/* && coverage report && coverage xml
6+
# nosetests --verbose --with-coverage --cover-package kb_python tests/* tests/dry/*
67

78
check:
89
flake8 kb_python && echo OK

dev-requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
bumpversion==0.6.0
22
coverage==5.1
33
flake8==3.8.2
4-
nose==1.3.7
4+
pytest==8.2.2
5+
pytest-cov==5.0.0
56
pre-commit==2.4.0
67
sphinx>=3.3.1
78
sphinx-autoapi>=1.5.1

docs/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ necessary packages by running::
1818
pip install -r requirements.txt
1919
pip install -r dev-requirements.txt
2020

21-
Code qualty and unit tests are strictly enforced for every pull request via
21+
Code quality and unit tests are strictly enforced for every pull request via
2222
Github actions.
2323

2424
Code Quality
@@ -33,7 +33,7 @@ at the root of the repository.
3333

3434
Unit-testing
3535
""""""""""""
36-
``kb-python`` uses ``nose`` to run unit tests. There is a convenient Makefile
36+
``kb-python`` uses ``pytest`` to run unit tests. There is a convenient Makefile
3737
rule in place to run all tests.::
3838

3939
make test

0 commit comments

Comments
 (0)