File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - uses : actions/setup-python@v2
1111 with :
1212 python-version : 3.x
13- - run : cp README.md docs/index.md
1413 - run : pip install mkdocs-material
1514 - run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change 1- export :
2- poetry export -f requirements.txt -o requirements.txt --without-hashes
1+ install :
2+ poetry install
33
44tests : install
55 poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
66 poetry run black . --check
77 poetry run isort . --profile=black
88 poetry run pytest --cov=./ --cov-report=xml
99
10- install :
11- poetry install
10+ export :
11+ poetry export -f requirements.txt -o requirements.txt
12+
13+ export_and_commit : export
14+ git config --global user.name ' leynier'
15+ git config --global user.email ' leynier41@gmail.com'
16+ git add requirements.txt
17+ git commit --allow-empty -m " Update requirements.txt"
18+ git push
19+
20+ update_index :
21+ cp README.md docs/index.md
22+
23+ update_index_and_commit : update_index
24+ git config --global user.name ' leynier'
25+ git config --global user.email ' leynier41@gmail.com'
26+ git add docs/index.md
27+ git commit --allow-empty -m " Update docs/index.md"
28+ git push
Original file line number Diff line number Diff line change 1- click == 7.1.2 ; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
2- typer == 0.3.2 ; python_version >= "3.6"
1+ click == 7.1.2 ; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" \
2+ --hash =sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc \
3+ --hash =sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a
4+ typer == 0.3.2 ; python_version >= "3.6" \
5+ --hash =sha256:ba58b920ce851b12a2d790143009fa00ac1d05b3ff3257061ff69dbdfc3d161b \
6+ --hash =sha256:5455d750122cff96745b0dec87368f56d023725a7ebc9d2e54dd23dc86816303
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ from typer .testing import CliRunner
2+
3+ from template .main import app
4+
5+ runner = CliRunner ()
6+
7+
8+ def test_template ():
9+ result = runner .invoke (app )
10+ assert result .exit_code == 0
11+ assert "Hello World!" in result .stdout
You can’t perform that action at this time.
0 commit comments