První pokus odevzdání projektu - #227
Conversation
turecekt
left a comment
There was a problem hiding this comment.
- soubor test.py přejmenovat na test_functions.py aby jej pytest naimportoval
- soubor Návrh programu přejmenovat na README.md
- odstranit soubor example.py
- odstranit všechny soubory .html
- dopsat docstringy do všech modulů a funkcí aby prošlo přes flake8
- v sekci About na hlavní stránce repa následně upravit Website url na url vašich gh-pages s automaticky vygenerovanou dokumentací.
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
turecekt
left a comment
There was a problem hiding this comment.
stejně opravit i functions.py
turecekt
left a comment
There was a problem hiding this comment.
- syntaxe opravena a pytest prochází bez chyby, teď ještě vyčistit kód aby prošel přes flake8 viz sekce Actions - build ve vašem repozitáři:
flake8 .
./functions.py:1:1: D300 Use """triple double quotes"""
./functions.py:1:1: D400 First line should end with a period
./functions.py:15:1: D300 Use """triple double quotes"""
./functions.py:15:1: D400 First line should end with a period
./functions.py:35:1: D300 Use """triple double quotes"""
./functions.py:35:1: D400 First line should end with a period
./test_functions.py:1:1: D300 Use """triple double quotes"""
./test_functions.py:1:1: D400 First line should end with a period
./test_functions.py:4:1: E402 module level import not at top of file
./test_functions.py:9:1: D204 1 blank line required after class docstring
./test_functions.py:9:1: D300 Use """triple double quotes"""
./test_functions.py:9:1: D400 First line should end with a period
./test_functions.py:11:1: D300 Use """triple double quotes"""
./test_functions.py:11:1: D400 First line should end with a period
./test_functions.py:17:1: D300 Use """triple double quotes"""
./test_functions.py:17:1: D400 First line should end with a period
./test_functions.py:23:1: D300 Use """triple double quotes"""
./test_functions.py:23:1: D400 First line should end with a period
./test_functions.py:28:1: D300 Use """triple double quotes"""
./test_functions.py:28:1: D400 First line should end with a period
./test_functions.py:38:1: D204 1 blank line required after class docstring
./test_functions.py:38:1: D300 Use """triple double quotes"""
./test_functions.py:38:1: D400 First line should end with a period
./test_functions.py:40:1: D300 Use """triple double quotes"""
./test_functions.py:40:1: D400 First line should end with a period
./test_functions.py:46:1: D300 Use """triple double quotes"""
./test_functions.py:46:1: D400 First line should end with a period
./test_functions.py:52:1: D300 Use """triple double quotes"""
./test_functions.py:52:1: D400 First line should end with a period
./test_functions.py:58:1: D300 Use """triple double quotes"""
./test_functions.py:58:1: D400 First line should end with a period
turecekt
left a comment
There was a problem hiding this comment.
v sekci About na hlavní stránce repa upravit Website url na url vašich gh-pages s automaticky vygenerovanou dokumentací.
Je potřeba ještě něco udělat? |
| @@ -0,0 +1,36 @@ | |||
| """Hlavní modul.""" | |||
turecekt
left a comment
There was a problem hiding this comment.
A u obou funkcí ve functions.py dopnit ještě datové typy parametrů funkce a návratových hodnot v definici funkce(type hints) a jejich popis v rozšířeném docstringu formou reST(:param: a :return:) viz zde: https://github.com/turecekt/vs_project/blob/master/example.py
There was a problem hiding this comment.
Akorád ještě napřed v Actions zrušit workflow "pages-build-deployment" a v nastavení repozitáře v settings v sekci Pages je nutné nastavit Build and Deployment Source na Github Actions a následně ještě zařadit navrhovanou změnu (měla by se tak po commitu automaticky přegenerovat a vystavit dokumentace).
Co-authored-by: Tomáš Tureček <42441627+turecekt@users.noreply.github.com>
První pokus odevzdání projektu