diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..078a917 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 1470eb5..f7275bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1 @@ -# ------------------------------------- -# Git Ignore File -# ------------------------------------- -# Specifies which files Git should not track. -# Keeps your repository clean of build artifacts, -# caches, and developer-specific settings. - -# Python cache and compiled files -__pycache__/ -*.py[cod] -*.log - -# Virtual environments (local only) venv/ -.env/ - -# IDE/project configuration files -.vscode/ -.idea/ - -# OS-specific hidden files -.DS_Store -Thumbs.db diff --git a/README.md b/README.md index eb29125..d206b61 100644 --- a/README.md +++ b/README.md @@ -1,46 +1 @@ -# Hello World Project - -A starting template for your project, following a modern Python project structure. - -## Project Layout - -``` -hello_world_project/ -├── src/hello_world_project/ -│ ├── main.py -│ ├── utils.py -│ ├── example_module.py -│ └── __init__.py -├── tests/ -│ └── test_example_module.py -├── pyproject.toml -├── requirements.txt -├── setup.cfg -└── README.md -``` - -## Quick Start - -### 1. Create and activate a virtual environment -```bash -python -m venv venv -source venv/bin/activate # macOS/Linux -``` - -### 2. Install the project to make it visible to Python -```bash -pip install -e . -``` -Alternatively, you can temporarily point PYTHONPATH to src. - -### 2. Run the application -```bash -python -m hello_world_project.main -``` - -## Running Tests - -Run all tests: -```bash -python -m unittest discover -s tests -``` \ No newline at end of file +project about scrapping \ No newline at end of file diff --git a/data/t.gitempty b/data/t.gitempty new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index a6c4f20..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,34 +0,0 @@ -# ------------------------------------- -# pyproject.toml -# ------------------------------------- -# The modern, standardized project configuration file. -# Used by Python build systems, packaging tools, and linters. -# -# It defines: -# - metadata (name, version, authors) -# - runtime dependencies -# - build system requirements -# -# Differences: -# * dependencies here specify what your project -# requires to RUN (broad versions) -# * requirements.txt specifies exact versions -# to REPRODUCE a working environment -# ------------------------------------- - -[build-system] -# Required build tools for installing the project -requires = ["setuptools", "wheel"] - -[project] -name = "hello_world_project" -version = "0.1.0" -description = "Hello World project." -authors = [{name = "Your Name"}] -readme = "README.md" -requires-python = ">=3.9" - -# Runtime dependencies — packages your project needs to run. -# For example: -# dependencies = ["requests>=2.32.0", "pandas>=2.0.0"] -dependencies = [] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 8780795..0000000 --- a/requirements.txt +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------- -# requirements.txt -# ------------------------------------- -# This file lists exact versions of packages -# needed to reproduce a working environment. -# Used for development, CI/CD, or deployment. -# -# Run: pip install -r requirements.txt -# -# Example: -# pandas==2.2.3 -# numpy==1.26.4 -# -# NOTE: -# - This file is optional if your project uses only -# the Python standard library. -# - `requirements.txt` and `pyproject.toml` serve -# different purposes: -# * requirements.txt → reproducibility (exact versions) -# * pyproject.toml → packaging & runtime dependencies diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 65119a1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,14 +0,0 @@ -# ------------------------------------- -# setup.cfg -# ------------------------------------- -# Central configuration file for Python tooling. -# Commonly used for linting, style, and testing settings. -# ------------------------------------- - -[flake8] -# Maximum allowed line length for code style. -max-line-length = 88 - -# Ignore specific warnings that conflict with Black formatting. -# E203 and W503 are standard ignores for compatibility. -extend-ignore = E203, W503 diff --git a/src/hello_world_project/__init__.py b/src/hello_world_project/__init__.py deleted file mode 100644 index 29b5856..0000000 --- a/src/hello_world_project/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""hello_world_project package.""" diff --git a/src/hello_world_project/example_module.py b/src/hello_world_project/example_module.py deleted file mode 100644 index b389af8..0000000 --- a/src/hello_world_project/example_module.py +++ /dev/null @@ -1,2 +0,0 @@ -def add_numbers(a: int, b: int) -> int: - return a + b diff --git a/src/hello_world_project/main.py b/src/hello_world_project/main.py deleted file mode 100644 index c0f4cd6..0000000 --- a/src/hello_world_project/main.py +++ /dev/null @@ -1,15 +0,0 @@ -from hello_world_project.utils import greet_user -from hello_world_project.example_module import add_numbers - -def main(): - print("=== Hello World Project ===") - - name = input("Enter your name: ") - greeting = greet_user(name) - print(greeting) - - result = add_numbers(10, 5) - print(f"The result of adding 10 and 5 is {result}.") - -if __name__ == "__main__": - main() diff --git a/src/hello_world_project/utils.py b/src/hello_world_project/utils.py deleted file mode 100644 index 308cb26..0000000 --- a/src/hello_world_project/utils.py +++ /dev/null @@ -1,4 +0,0 @@ -def greet_user(name: str) -> str: - if not name: - name = "User" - return f"Hello, {name}! Welcome to the Hello World project." diff --git a/src/quote_scraper/.gitempty b/src/quote_scraper/.gitempty new file mode 100644 index 0000000..e69de29 diff --git a/src/te.gitempty b/src/te.gitempty new file mode 100644 index 0000000..e69de29 diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index d2a4be3..0000000 --- a/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -''' Included for compatibility. Not needed with modern python version and its automated test discovery. ''' \ No newline at end of file diff --git a/tests/test_example_module.py b/tests/test_example_module.py deleted file mode 100644 index fefdcf3..0000000 --- a/tests/test_example_module.py +++ /dev/null @@ -1,16 +0,0 @@ -import unittest -from hello_world_project.example_module import add_numbers -from hello_world_project.utils import greet_user - -class TestHelloWorldProject(unittest.TestCase): - def test_add_numbers(self): - self.assertEqual(add_numbers(2, 3), 5) - self.assertEqual(add_numbers(-5, 5), 0) - self.assertEqual(add_numbers(0, 0), 0) - - def test_greet_user(self): - self.assertIn("Alice", greet_user("Alice")) - self.assertIn("User", greet_user("")) - -if __name__ == "__main__": - unittest.main()