Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 190 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
# Docker ignore file for hack_digital_transformation project

# Ignore data directory as requested
data/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# IDE files
.vscode/
.idea/
*.swp
*.swo
*~

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Logs
logs/
*.log

# Temporary files
tmp/
temp/

# Notebooks (if not needed in the image)
notebooks/

# Tests (if not needed in production image)
tests/

# Documentation
docs/

# Configuration files that might contain sensitive information
.env
.env.local
.env.*.local

# Docker related files that shouldn't be in the image
.dockerignore
Dockerfile
docker-compose.yml

# Full-stack directory (if it's meant to be separate)
full-stack/

# Git files
.git/
.gitignore

# Compiled files
*.so
*.pyc
*.pyo
*.pyd
*.egg
*.egg-info/

# Virtual environment files
venv/
env/
31 changes: 0 additions & 31 deletions .github/workflows/ci-checks.yml

This file was deleted.

5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ COPY setup.py .
RUN apt-get update && apt-get install -y \
gcc \
g++ \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*

# Устанавливаем Python зависимости
Expand Down
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
UV = uv

.PHONY: help install install-dev install-prod test lint format data train evaluate serve docker clean mlflow-ui
.PHONY: help install install-dev install-prod test lint format notebooks-lint notebooks-format notebooks-clean data train evaluate serve docker clean mlflow-ui

help:
@echo "Доступные команды:"
Expand All @@ -10,6 +10,9 @@ help:
@echo " make test Запустить тесты"
@echo " make lint Проверить код линтером"
@echo " make format Форматировать код"
@echo " make notebooks-lint Проверить Jupyter ноутбуки линтером"
@echo " make notebooks-format Форматировать Jupyter ноутбуки"
@echo " make notebooks-clean Очистить выводы из Jupyter ноутбуков"
@echo " make data Загрузить и подготовить данные"
@echo " make train Обучить модель"
@echo " make evaluate Оценить модель"
Expand Down Expand Up @@ -39,6 +42,16 @@ format:
PYTHONPATH=. $(UV) run black src/ tests/
PYTHONPATH=. $(UV) run isort src/ tests/

notebooks-lint:
PYTHONPATH=. $(UV) run flake8-nb notebooks/
PYTHONPATH=. $(UV) run black --check notebooks/

notebooks-format:
PYTHONPATH=. $(UV) run black notebooks/

notebooks-clean:
PYTHONPATH=. $(UV) run nbstripout notebooks/**/*.ipynb

data:
PYTHONPATH=. $(UV) run python src/data/make_dataset.py

Expand All @@ -61,4 +74,4 @@ clean:
find . -name "*.pyc" -exec rm -f {} \;
find . -name "__pycache__" -exec rm -rf {} \;
find . -name ".pytest_cache" -exec rm -rf {} \;
find . -name ".coverage" -exec rm -f {} \;
find . -name ".coverage" -exec rm -f {} \;
Loading
Loading