Skip to content

Commit dec2abc

Browse files
committed
removed pytest and coverage replaced with pytest-cov
1 parent ded5137 commit dec2abc

File tree

6 files changed

+15
-28
lines changed

6 files changed

+15
-28
lines changed

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"use_requests": "n",
1212
"use_cryptography": "n",
1313
"__template_repo": "https://github.com/btr1975/cookiecutter-python-fastapi-openapi",
14-
"__template_version": "1.0.2",
14+
"__template_version": "1.0.3",
1515
"_copy_without_render": [
1616
".github"
1717
]

{{cookiecutter.git_repo_name}}/Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Makefile for project needs
22
# Author: Ben Trachtenberg
3-
# Version: 1.0.1
3+
# Version: 1.0.2
44
#
55

6-
.PHONY: info app-run coverage pylint pytest gh-pages pdf word
6+
.PHONY: info app-run coverage pylint pytest gh-pages pdf
77

88
info:
99
@echo "make options"
@@ -12,30 +12,23 @@ info:
1212
@echo " pylint To run pylint"
1313
@echo " pytest To run pytest with verbose option"
1414
@echo " pdf To create PDF Docs"
15-
@echo " word To create Word Docs"
1615
{% if cookiecutter.app_documents_location == 'github-pages' %} @echo " gh-pages To create the GitHub pages"{% endif %}
1716

1817
app-run:
1918
@python app_run.py
2019

2120
coverage:
22-
@coverage erase
23-
@coverage run
24-
@coverage report
25-
@coverage html
21+
@pytest --cov --cov-report=html -vvv
2622

2723
pylint:
2824
@pylint modules/
2925

3026
pytest:
31-
@pytest -vvv
27+
@pytest --cov -vvv
3228

3329
pdf:
3430
@sphinx-build -b rinoh ./docs ./docs/_build/pdf
3531

36-
word:
37-
@sphinx-build -b docx ./docs ./docs/_build/word
38-
3932
{% if cookiecutter.app_documents_location == 'github-pages' %}
4033
gh-pages:
4134
@sphinx-build ./docs ./docs/gh-pages
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import url("theme.css");
2+
3+
.wy-nav-content {
4+
max-width: 90%;
5+
}

{{cookiecutter.git_repo_name}}/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
'sphinx.ext.viewcode',
4242
'sphinx.ext.autodoc',
4343
'myst_parser',
44-
'docxsphinx',
4544
'sphinxcontrib.mermaid',
4645
]
4746

@@ -92,6 +91,7 @@
9291
# relative to this directory. They are copied after the builtin static files,
9392
# so a file named "default.css" will overwrite the builtin "default.css".
9493
html_static_path = ['_static']
94+
html_style = 'css/my_theme.css'
9595

9696
# This is used fpr making a PDF using rinohtype
9797
# See https://www.mos6581.org/rinohtype/master/sphinx.html
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@ECHO OFF
22
REM Makefile for project needs
33
REM Author: Ben Trachtenberg
4-
REM Version: 1.0.1
4+
REM Version: 1.0.2
55
REM
66

77
IF "%1" == "app-run" (
@@ -10,10 +10,7 @@ IF "%1" == "app-run" (
1010
)
1111

1212
IF "%1" == "coverage" (
13-
coverage erase
14-
coverage run
15-
coverage report
16-
coverage html
13+
pytest --cov --cov-report=html -vvv
1714
GOTO END
1815
)
1916

@@ -23,7 +20,7 @@ IF "%1" == "pylint" (
2320
)
2421

2522
IF "%1" == "pytest" (
26-
pytest -vvv
23+
pytest --cov -vvv
2724
GOTO END
2825
)
2926

@@ -32,11 +29,6 @@ IF "%1" == "pdf" (
3229
GOTO END
3330
)
3431

35-
IF "%1" == "word" (
36-
sphinx-build -b docx ./docs ./docs/_build/word
37-
GOTO END
38-
)
39-
4032
{% if cookiecutter.app_documents_location == 'github-pages' %}
4133
IF "%1" == "gh-pages" (
4234
sphinx-build ./docs ./docs/gh-pages
@@ -50,7 +42,6 @@ IF "%1" == "gh-pages" (
5042
@ECHO pylint To run pylint
5143
@ECHO pytest To run pytest with verbose option
5244
@ECHO pdf To create PDF Docs
53-
@ECHO word To create Word Docs
5445
{% if cookiecutter.app_documents_location == 'github-pages' %}@ECHO gh-pages To create the GitHub pages{% endif %}
5546

5647
:END

{{cookiecutter.git_repo_name}}/requirements-dev.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
# NOTICE THE FIRST LINE INCLUDES THE requirements.txt
33
#
44
-r requirements.txt
5-
pytest
6-
coverage
5+
pytest-cov
76
sphinx
87
pylint
98
rinohtype
109
myst-parser
11-
docxsphinx
1210
sphinx_rtd_theme
1311
sphinxcontrib-mermaid
1412
{% if cookiecutter.use_requests == 'y' %}requests-mock{% endif %}

0 commit comments

Comments
 (0)