Skip to content

Commit ea16c3d

Browse files
yudhieshfrpalmap
authored andcommitted
Finalise repository for course launch (sb2nov#8)
* remove workflows * remove tests * update gitignore
1 parent 5f574c7 commit ea16c3d

File tree

3 files changed

+94
-64
lines changed

3 files changed

+94
-64
lines changed

.github/workflows/ci_cd_wf.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitignore

Lines changed: 94 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
33
*.py[cod]
4+
*$py.class
45

56
# C extensions
67
*.so
78

89
# Distribution / packaging
910
.Python
10-
env/
1111
build/
1212
develop-eggs/
1313
dist/
@@ -19,9 +19,12 @@ lib64/
1919
parts/
2020
sdist/
2121
var/
22+
wheels/
23+
share/python-wheels/
2224
*.egg-info/
2325
.installed.cfg
2426
*.egg
27+
MANIFEST
2528

2629
# PyInstaller
2730
# Usually these files are written by a python script from a template
@@ -36,53 +39,123 @@ pip-delete-this-directory.txt
3639
# Unit test / coverage reports
3740
htmlcov/
3841
.tox/
42+
.nox/
3943
.coverage
4044
.coverage.*
4145
.cache
4246
nosetests.xml
4347
coverage.xml
4448
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
4553

4654
# Translations
4755
*.mo
4856
*.pot
4957

5058
# Django stuff:
5159
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
5270

5371
# Sphinx documentation
5472
docs/_build/
5573

5674
# PyBuilder
75+
.pybuilder/
5776
target/
5877

59-
# DotEnv configuration
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/#use-with-ide
110+
.pdm.toml
111+
112+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113+
__pypackages__/
114+
115+
# Celery stuff
116+
celerybeat-schedule
117+
celerybeat.pid
118+
119+
# SageMath parsed files
120+
*.sage.py
121+
122+
# Environments
60123
.env
124+
.venv
125+
env/
126+
venv/
127+
ENV/
128+
env.bak/
129+
venv.bak/
61130

62-
# Database
63-
*.db
64-
*.rdb
65-
66-
# Pycharm
67-
.idea
131+
# Spyder project settings
132+
.spyderproject
133+
.spyproject
68134

69-
# VS Code
70-
.vscode/
135+
# Rope project settings
136+
.ropeproject
71137

72-
# Spyder
73-
.spyproject/
138+
# mkdocs documentation
139+
/site
74140

75-
# Jupyter NB Checkpoints
76-
.ipynb_checkpoints/
141+
# mypy
142+
.mypy_cache/
143+
.dmypy.json
144+
dmypy.json
77145

146+
# Pyre type checker
147+
.pyre/
78148

79-
# Mac OS-specific storage files
80-
.DS_Store
149+
# pytype static type analyzer
150+
.pytype/
81151

82-
# vim
83-
*.swp
84-
*.swo
152+
# Cython debug symbols
153+
cython_debug/
85154

86-
# Mypy cache
87-
.mypy_cache/
155+
# PyCharm
156+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158+
# and can be added to the global gitignore or merged into this file. For a more nuclear
159+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160+
#.idea/
88161

tests/test_calculator.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +0,0 @@
1-
from calculator import add, div, mul, sub
2-
3-
4-
def test_add():
5-
assert add(1, 1) == 2
6-
7-
8-
def test_sub():
9-
assert sub(1, 1) == 0
10-
11-
12-
def test_mul():
13-
assert mul(1, 1) == 1
14-
15-
16-
def test_div():
17-
assert div(2, 1) == 2

0 commit comments

Comments
 (0)