Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
.tmp
npm-debug.log
*__pycache__*
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
"workbench.activityBar.visible": true,
"workbench.colorTheme": "Visual Studio Dark",
"workbench.fontAliasing": "antialiased",
"workbench.statusBar.visible": true
"workbench.statusBar.visible": true,
"python.analysis.extraPaths": [
"${workspaceFolder}/src",
"./src"
]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Dieses Problem lösen Sie wie folgt:
Add changes to git using this command: git add .
Commit changes using this command: git commit -m "some message"

### Autor
### Autorin

**Dr. Julia Imlauer**

Expand All @@ -39,5 +39,5 @@ _Robotikerin | ML-Expertin | AI-Enthusiastin_
Sehen Sie sich andere Kurse des Autors auf [LinkedIn Learning](https://www.linkedin.com/learning/instructors/julia-imlauer) an.

[0]: # (Replace these placeholder URLs with actual course URLs)
[lil-course-url]: https://www.linkedin.com/learning/tbd
[lil-thumbnail-url]: https://media.licdn.com/dms/image/D560DAQHy88_RfLwlJw/learning-public-crop_675_1200/0/1687258117518?e=2147483647&v=beta&t=Dfk6Yk8Uljvd9UtwpxGyhpWhx_UF31ccWdm8XXuCIMI
[lil-course-url]: https://www.linkedin.com/learning/python-grundkurs-25087490
[lil-thumbnail-url]: https://media.licdn.com/dms/image/v2/D4E0DAQGVDy6GhNuQrg/learning-public-crop_675_1200/learning-public-crop_675_1200/0/1732613158551?e=2147483647&v=beta&t=5LC7lo-5r3cDZmF-extYK9uspoQn-T692GVco2Na7xM
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "aufgaben_package"
version = "1.0.0"
description = "Übung für Tests"
readme = "README.md"
requires-python = ">=3.6"
dependencies = [
"pytest==8.3.2"
]
license = { text = "LinkedIn Learning Exercise Files License" }
authors = [
{ name = "Julia Imlauer", email = "info@linkedinlearning.com" }
]
keywords = ["python", "grundkurs", "linkedinlearning"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: LinkedIn Learning Exercise Files License",
"Operating System :: OS Independent"
]

[project.urls]
"Homepage" = "https://github.com/LinkedInLearning/python-grundkurs-2685000"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools]
license-files = ["LICENSE"]


# 'Installation' mittels pyproject.toml
# pip install .
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
pythonpath = src
Empty file added src/__init__.py
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions src/aufgaben_package/personen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Person:
def __init__(self, name, alter):
self.name = name
self.alter = alter

def __str__(self):
return f"{self.name} ({self.alter})"
13 changes: 13 additions & 0 deletions src/aufgaben_package/rechen_operation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
def erhoehe_um_zwei(zahl):
return zahl + 2

def multipliziere_mit_drei(zahl):
return zahl * 3

def subtrahiere_zehn(zahl):
return zahl - 10

def teile_durch_vier(zahl):
if zahl % 4 != 0:
raise ValueError("Zahl muss durch 4 teilbar sein")
return zahl / 4
Empty file added tests/TESTS_HIER_IMPLEMNTIEREN
Empty file.