Temas
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
FROM python:3.11.4-slim-bullseye | |
ENV LANG=C.UTF-8 \ | |
DEBIAN_FRONTEND=noninteractive | |
# Set working directory | |
WORKDIR /opt/app | |
# Install packages and dependencies | |
RUN apt-get update && \ |
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
# Source: https://github.com/pre-commit/pre-commit/blob/main/.pre-commit-config.yaml | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.5.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-ast | |
- id: check-yaml | |
- id: check-toml |
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
import logging | |
import sys | |
import yaml | |
from yaml.loader import SafeLoader | |
from project.utils.constants import LOGGING_FORMAT | |
from project.utils.constants import CONFIG_FILE | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) |