File tree 7 files changed +127
-7
lines changed
7 files changed +127
-7
lines changed Original file line number Diff line number Diff line change 1
1
.vscode
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__ /
4
+ * .py [cod ]
5
+ * $py.class
6
+
7
+ # C extensions
8
+ * .so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ env /
13
+ build /
14
+ develop-eggs /
15
+ dist /
16
+ downloads /
17
+ eggs /
18
+ .eggs /
19
+ lib /
20
+ lib64 /
21
+ parts /
22
+ sdist /
23
+ var /
24
+ wheels /
25
+ * .egg-info /
26
+ .installed.cfg
27
+ * .egg
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ * .manifest
33
+ * .spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov /
41
+ .tox /
42
+ .coverage
43
+ .coverage. *
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ * .cover
48
+ .hypothesis /
49
+
50
+ # Translations
51
+ * .mo
52
+ * .pot
53
+
54
+ # Django stuff:
55
+ * .log
56
+ local_settings.py
57
+
58
+ # Flask stuff:
59
+ instance /
60
+ .webassets-cache
61
+
62
+ # Scrapy stuff:
63
+ .scrapy
64
+
65
+ # Sphinx documentation
66
+ docs /_build /
67
+
68
+ # PyBuilder
69
+ target /
70
+
71
+ # Jupyter Notebook
72
+ .ipynb_checkpoints
73
+
74
+ # pyenv
75
+ .python-version
76
+
77
+ # celery beat schedule file
78
+ celerybeat-schedule
79
+
80
+ # SageMath parsed files
81
+ * .sage.py
82
+
83
+ # dotenv
84
+ .env
85
+
86
+ # virtualenv
87
+ .venv
88
+ venv /
89
+ ENV /
90
+
91
+ # Spyder project settings
92
+ .spyderproject
93
+ .spyproject
94
+
95
+ # Rope project settings
96
+ .ropeproject
97
+
98
+ # mkdocs documentation
99
+ /site
100
+
101
+ # mypy
102
+ .mypy_cache /
Original file line number Diff line number Diff line change
1
+ setup :
2
+ # create virtualenv python3 -m venv ~/.tip
3
+ # activate virtualenv: source ~/.tip/bin/activate
4
+
5
+ install :
6
+ pip install --upgrade pip && \
7
+ pip install -r requirements.txt
8
+
9
+ test :
10
+ python -m pytest -vv --cov=chapter4 tests/* .py
11
+ # python -m pytest --nbval notebook.ipynb
12
+
13
+ lint :
14
+ pylint --disable=R,C projects/chapter4/* .py
15
+
16
+ all : install lint test
Original file line number Diff line number Diff line change
1
+ def toyou ():
2
+ return "hi"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ pylint
2
+ pytest
3
+ pytest-cov
4
+ jupyter
Original file line number Diff line number Diff line change
1
+ from chapter4 import hello
2
+
3
+ def test_hello_toyou ():
4
+ assert hello .toyou () == "hi"
You can’t perform that action at this time.
0 commit comments