-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Markdown Section Templates (#115)
* Update and align ignore files. * Update pre-commit commands. * Update dev tool settings and config. * Move ruff config from pyproject to .ruff file. * Remove empty parser files. * Clean up ignore file list. * Update project examples and docs. * Clean up docker file. * Clean up make rules. * Update project examples and docs. * Add new README section templates.
- Loading branch information
Showing
180 changed files
with
6,405 additions
and
3,343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,70 @@ | ||
# Git and GitHub metadata | ||
.github/ | ||
.git/ | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
CHANGELOG.md | ||
|
||
# Exclude all .pyc files | ||
**/__pycache__ | ||
|
||
# Build artifacts | ||
build/ | ||
dist/ | ||
*.tar.gz | ||
*.whl | ||
*.egg-info/ | ||
|
||
# Test and setup scripts | ||
# Compiled Python files | ||
*.pyc | ||
*.pyo | ||
__pycache__/ | ||
|
||
# Virtual environment | ||
.venv/ | ||
.env | ||
|
||
# System-specific files | ||
.DS_Store | ||
|
||
# Temporary files | ||
*~ | ||
|
||
# Logging | ||
logs/ | ||
*.log | ||
|
||
# Testing | ||
noxfile.py | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
coverage.xml | ||
htmlcov/ | ||
tests/ | ||
setup/ | ||
scripts/ | ||
|
||
# Jupyter notebooks | ||
# Git | ||
.github/ | ||
.git/ | ||
.gitignore | ||
|
||
# Markdown | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
CHANGELOG.md | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints/ | ||
outputs/ | ||
notebooks/ | ||
|
||
# Package Management | ||
Pipfile | ||
Pipfile.lock | ||
# VSCode workspace settings | ||
.vscode/ | ||
|
||
# Python Tools | ||
.mypy_cache/ | ||
.pytest_cache/ | ||
.ruff_cache/ | ||
|
||
# Documentation and Automation Files | ||
# Documentation | ||
docs/ | ||
examples/ | ||
mkdocs.yml | ||
Makefile | ||
noxfile.py | ||
|
||
# Work In Progress | ||
# Configuration Files (wip) | ||
|
||
# Work In Progress (WIP) | ||
examples/images/dalle | ||
readmeai/config/settings/themes | ||
readmeai/config/settings/classifiers.toml | ||
readmeai/config/settings/models.toml | ||
readmeai/config/settings/quickstart_wip.toml | ||
readmeai/config/settings/quickstart.toml | ||
|
||
# Github Actions | ||
.github/workflows/ci.yml | ||
|
||
# Submodules (wip) | ||
readmeai/templates/ | ||
readmeai/ui/ | ||
|
||
# Dalle-3 Images | ||
examples/images/dalle | ||
readmeai/utils/file_cleaner.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
exclude = [ | ||
".git", | ||
".ipynb_checkpoints", | ||
".mypy_cache", | ||
".nox", | ||
".pyenv", | ||
".pytest_cache", | ||
".ruff_cache", | ||
".env,", | ||
".venv", | ||
".vscode", | ||
"venv", | ||
] | ||
line-length = 79 | ||
indent-width = 4 | ||
target-version = "py311" | ||
|
||
[lint] | ||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
extend-select = ["E501"] | ||
select = [ | ||
"ARG", # unused arguments | ||
"B", # flake8-bugbear | ||
"E", # pycodestyle | ||
"E722", # bare except statements | ||
"F", # pyflakes | ||
"F401", # remove unused imports | ||
"I", # isort | ||
"N", # pep8-naming | ||
"RUF", # ruff | ||
"SIM", # flake8-simplify | ||
"UP", # pyupgrade | ||
] | ||
fixable = ["ALL"] | ||
ignore = [] | ||
unfixable = [] | ||
|
||
[format] | ||
docstring-code-format = true | ||
docstring-code-line-length = "dynamic" | ||
indent-style = "space" | ||
line-ending = "auto" | ||
quote-style = "double" | ||
skip-magic-trailing-comma = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,25 @@ | ||
# Use a base image with Python 3.10 installed (multi-platform) | ||
FROM --platform=${BUILDPLATFORM} python:3.10-slim-buster | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Set environment variable for Git Python | ||
ENV GIT_PYTHON_REFRESH=quiet | ||
|
||
# Install system dependencies and clean up apt cache | ||
RUN apt-get update && apt-get install -y git \ | ||
RUN apt-get update \ | ||
&& apt-get install -y git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create a non-root user with a specific UID and GID (i.e. 1000 in this case) | ||
RUN groupadd -r tempuser -g 1000 && \ | ||
useradd -r -u 1000 -g tempuser tempuser && \ | ||
mkdir -p /home/tempuser && \ | ||
chown -R tempuser:tempuser /home/tempuser | ||
RUN groupadd -r tempuser -g 1000 \ | ||
&& useradd -r -u 1000 -g tempuser tempuser \ | ||
&& mkdir -p /home/tempuser \ | ||
&& chown -R tempuser:tempuser /home/tempuser | ||
|
||
# Set permissions for the working directory to the new user | ||
RUN chown tempuser:tempuser /app | ||
|
||
# Switch to the new user | ||
USER tempuser | ||
|
||
# Add the directory where pip installs user scripts to the PATH | ||
ENV PATH=/home/tempuser/.local/bin:$PATH | ||
|
||
# Install the readmeai package from PyPI with a pinned version | ||
RUN pip install --no-cache-dir --user --upgrade readmeai | ||
|
||
# Set the command to run the CLI | ||
ENTRYPOINT ["readmeai"] | ||
CMD ["--help"] |
Oops, something went wrong.