From 96f1cf7c9b889d1e35d61c10d216a9bebe12978b Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Sat, 4 Nov 2023 22:07:06 -0700 Subject: [PATCH] cleanup (#3) * clean * add version * clean * clean * clean * clean * clean * save * clean * clean * cache target dir * clean * clean * clean * clean * clean --- Dockerfile | 12 ---------- README.md | 6 ++--- main.py | 1 - pyproject.toml | 62 -------------------------------------------------- 4 files changed, 3 insertions(+), 78 deletions(-) delete mode 100644 Dockerfile delete mode 100644 main.py delete mode 100644 pyproject.toml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 1b4b414..0000000 --- a/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM python:3.10-slim - -# Set the working directory in the container to /app -WORKDIR /app - -# Copy the current directory contents into the container at /app -COPY . . - -# Install any needed packages specified in requirements.txt -RUN pip install --no-cache-dir -r requirements.txt - -CMD ["python", "./main.py"] diff --git a/README.md b/README.md index 04f6aff..6c9a84b 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,15 @@ ## Overview -`cpa` is a cli tool for ultra fast setup of new Python projects. It automates the creation of config files for style & lint checks, gitignore, a basic Dockerfile and dependency management configuration. An opinionated set of pre-commit hooks are included for enforcing best practices and reducing setup time. +`cpa` is a cli tool for ultra fast setup of new Python projects. It automates the creation of config files for style & lint checks, gitignore, a basic Dockerfile and Poetry for dependency management. An opinionated set of pre-commit hooks are included for enforcing best practices and reducing dev time. ## Installation ### MacOS, Linux -Download latest binary and install via provided `install.sh` script or get it from [Releases](https://github.com/ysawa0/create-python-app/releases) +Download latest binary and install via provided `install.sh` or get it from [Releases](https://github.com/ysawa0/create-python-app/releases) -``` +```bash sh install.sh # cpa will be installed to ~/bin/cpa # add ~/bin to your PATH diff --git a/main.py b/main.py deleted file mode 100644 index ad35e5a..0000000 --- a/main.py +++ /dev/null @@ -1 +0,0 @@ -print("Hello World") diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index b0d3a44..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,62 +0,0 @@ -[tool.poetry] -name = "" -version = "0.0.1" -description = "" -authors = [ - "My Name " -] -license = "" - -[build-system] -requires = ["poetry-core>=1.7.0"] -build-backend = "poetry.core.masonry.api" - -[tool.black] -line-length = 120 -skip-string-normalization = false -target-version = ['py310'] -include = '\.pyi?$' -exclude = ''' -/( - \.eggs - | \.git - | \.hg - | \.mypy_cache - | \.tox - | \.venv - | _build - | buck-out - | build - | dist -)/ -''' -color = true - -[tool.isort] -balanced_wrapping = true -include_trailing_comma = true -known_first_party = "" -known_third_party = [ - "boto3", # Common for AWS - "django", # Common web framework, if used - "flask", # Common web framework, if used - "jinja2", # Common templating engine - "matplotlib", # Common for plotting - "numpy", # Common for numerical operations - "pandas", # Common for data manipulation - "pendulum", # Common for date time - "pytest", # Common for testing - "requests", # Common for HTTP requests - "sqlalchemy", # Common ORM for databases -] -multi_line_output = 3 -profile = "black" -line_length = 120 - -[tool.poetry.dependencies] -python = "^3.10" - -[tool.poetry.group.dev.dependencies] -pre-commit = ">=3.5.0" -pytest = "^7.3.1" -pytest-cov = "^4.1.0"