commit 4fe95ea1a0fea6e4c67fe6effbdf133ecd28eead Author: hizlanarif Date: Sat Jun 6 14:03:14 2026 +0200 feat: add caesar cipher helper solution diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e91660 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Python +.venv/ +__pycache__/ +*.pyc + +# tooling +.pytest_cache/ +.ruff_cache/ + +# editors +.idea/ + +# OS noise +.DS_Store + +# Critical +.env \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..cb9c597 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +ruff==0.15.1 +black==26.1.0 +pytest==9.0.2 +pre-commit==4.5.1 \ No newline at end of file diff --git a/src/oop_solution.py b/src/oop_solution.py new file mode 100644 index 0000000..60b35ed --- /dev/null +++ b/src/oop_solution.py @@ -0,0 +1,8 @@ +class Animal: + def __init__(self, name): + self.name = name + + +class Cat(Animal): + def speak(self) -> str: + return f"{self.name} meows." \ No newline at end of file