File tree Expand file tree Collapse file tree 6 files changed +15
-28
lines changed
{{cookiecutter.git_repo_name}} Expand file tree Collapse file tree 6 files changed +15
-28
lines changed Original file line number Diff line number Diff line change 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 ]
Original file line number Diff line number Diff line change 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
88info :
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
1817app-run :
1918 @python app_run.py
2019
2120coverage :
22- @coverage erase
23- @coverage run
24- @coverage report
25- @coverage html
21+ @pytest --cov --cov-report=html -vvv
2622
2723pylint :
2824 @pylint modules/
2925
3026pytest :
31- @pytest -vvv
27+ @pytest --cov - vvv
3228
3329pdf :
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' %}
4033gh-pages :
4134 @sphinx-build ./docs ./docs/gh-pages
Original file line number Diff line number Diff line change 1+ @import url ("theme.css" );
2+
3+ .wy-nav-content {
4+ max-width : 90% ;
5+ }
Original file line number Diff line number Diff line change 4141 'sphinx.ext.viewcode' ,
4242 'sphinx.ext.autodoc' ,
4343 'myst_parser' ,
44- 'docxsphinx' ,
4544 'sphinxcontrib.mermaid' ,
4645]
4746
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".
9493html_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
Original file line number Diff line number Diff line change 11@ ECHO OFF
22REM Makefile for project needs
33REM Author: Ben Trachtenberg
4- REM Version: 1.0.1
4+ REM Version: 1.0.2
55REM
66
77IF " %1 " == " app-run" (
@@ -10,10 +10,7 @@ IF "%1" == "app-run" (
1010)
1111
1212IF " %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
2522IF " %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' % }
4133IF " %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
Original file line number Diff line number Diff line change 22# NOTICE THE FIRST LINE INCLUDES THE requirements.txt
33#
44-r requirements.txt
5- pytest
6- coverage
5+ pytest-cov
76sphinx
87pylint
98rinohtype
109myst-parser
11- docxsphinx
1210sphinx_rtd_theme
1311sphinxcontrib-mermaid
1412{% if cookiecutter.use_requests == 'y' %}requests-mock{% endif %}
You can’t perform that action at this time.
0 commit comments