refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings * fix(signal): annotate async context manager as a generator
This commit is contained in:
1 parent
cb3ba45317
commit
a4d2430140
922 files changed
+406
-7738
No files matched your search
@@ -23,8 +23,6 @@ ENV VIRTUAL_ENV=/app/.venv
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
RUN uv venv --seed "$VIRTUAL_ENV"
|
||||
|
||||
# Install Python dependencies without building the project (cached layer).
|
||||
# Source and documentation changes only invalidate the final package install.
|
||||
ARG NANOBOT_EXTRAS=
|
||||
COPY pyproject.toml ./
|
||||
RUN set -- && \
|
||||
@@ -33,7 +31,6 @@ RUN set -- && \
|
||||
done && \
|
||||
uv pip install --python "$VIRTUAL_ENV/bin/python" --no-cache -r pyproject.toml "$@"
|
||||
|
||||
# Copy the full source and install
|
||||
COPY README.md LICENSE THIRD_PARTY_NOTICES.md hatch_build.py ./
|
||||
COPY docs/ docs/
|
||||
COPY nanobot/ nanobot/
|
||||
@@ -41,8 +38,6 @@ COPY scripts/install_channel_dependencies.py scripts/
|
||||
COPY --from=webui-builder /app/nanobot/web/dist/ nanobot/web/dist/
|
||||
RUN NANOBOT_SKIP_WEBUI_BUILD=1 uv pip install --python "$VIRTUAL_ENV/bin/python" --no-cache --no-deps .
|
||||
|
||||
# Preinstall selected channel dependencies from their manifests. A comma-separated
|
||||
# list keeps the image configurable while preserving WhatsApp in the default image.
|
||||
ARG NANOBOT_CHANNELS=whatsapp
|
||||
RUN for channel in $(printf '%s' "$NANOBOT_CHANNELS" | tr ',' ' '); do \
|
||||
python -m scripts.install_channel_dependencies "$channel"; \
|
||||
@@ -54,7 +49,6 @@ RUN for channel in $(printf '%s' "$NANOBOT_CHANNELS" | tr ',' ' '); do \
|
||||
# won't shadow it. Only used when RENDER=true; ignored by local runs.
|
||||
COPY render-config.json ./
|
||||
|
||||
# Create the non-root user and hand ownership of the writable virtualenv to it.
|
||||
RUN useradd -m -u 1000 -s /bin/bash nanobot && \
|
||||
mkdir -p /home/nanobot/.nanobot && \
|
||||
chown -R nanobot:nanobot /home/nanobot /app/.venv
|
||||
@@ -73,7 +67,6 @@ ENV HOME=/home/nanobot
|
||||
# non-graceful exit).
|
||||
ENV PYTHONUNBUFFERED=1 PYTHONFAULTHANDLER=1
|
||||
|
||||
# Gateway health endpoint and optional WebUI/WebSocket channel ports
|
||||
EXPOSE 18790 8765
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
Reference in new issue
Block a user