Skip to content

Commit

Permalink
Cleanup Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 14, 2024
1 parent b29563b commit 49ed7dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 109 deletions.
6 changes: 3 additions & 3 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@
"filename": "Makefile",
"hashed_secret": "504a5c3a2ce5fa0acc5f8d9685dc45860c25a8ed",
"is_verified": true,
"line_number": 235
"line_number": 134
},
{
"type": "Secret Keyword",
"filename": "Makefile",
"hashed_secret": "a3dd3453449ace4d9d2320fa941a909b57c0e846",
"is_verified": true,
"line_number": 238
"line_number": 137
}
],
"README.rst": [
Expand Down Expand Up @@ -219,5 +219,5 @@
}
]
},
"generated_at": "2024-10-30T22:52:46Z"
"generated_at": "2024-11-14T22:15:37Z"
}
107 changes: 1 addition & 106 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ alembic_migrate:
benchmark_test:
pytest -vvrx --durations=0

#black:
# black .

build_docs:
sphinx-build -n -a -b html docs builddocs
cd builddocs && zip -r ../builddocs.zip . -x ".*" && cd ..
Expand All @@ -35,104 +32,6 @@ clean:
rm -rf .mypy_cache/
rm -rf .ruff_cache/

#compile_requirements:
# echo "common.in"
# pip-compile examples/requirements/common.in
#
# echo "debug.in"
# pip-compile examples/requirements/debug.in
#
# echo "deployment.in"
# pip-compile examples/requirements/deployment.in
#
# echo "dev.in"
# pip-compile examples/requirements/dev.in
#
# echo "django_5_0.in"
# pip-compile examples/requirements/django_5_0.in
#
# echo "django_5_1.in"
# pip-compile examples/requirements/django_5_1.in
#
# echo "django_4_2.in"
# pip-compile examples/requirements/django_4_2.in
#
# echo "django_5_0_and_flask.in"
# pip-compile examples/requirements/django_5_0_and_flask.in
#
# echo "django_5_1_and_flask.in"
# pip-compile examples/requirements/django_5_1_and_flask.in
#
# echo "django_4_2_and_flask.in"
# pip-compile examples/requirements/django_4_2_and_flask.in
#
# echo "docs.in"
# pip-compile examples/requirements/docs.in
#
# echo "flask.in"
# pip-compile examples/requirements/flask.in
#
# echo "ml.in"
# pip-compile examples/requirements/ml.in
#
# echo "style_checkers.in"
# pip-compile examples/requirements/style_checkers.in
#
# echo "test.in"
# pip-compile examples/requirements/test.in
#
# echo "testing.in"
# pip-compile examples/requirements/testing.in
#
#compile_requirements_upgrade:
# echo "common.in"
# pip-compile --upgrade examples/requirements/common.in
#
# echo "debug.in"
# pip-compile --upgrade examples/requirements/debug.in
#
# echo "deployment.in"
# pip-compile --upgrade examples/requirements/deployment.in
#
# echo "dev.in"
# pip-compile --upgrade examples/requirements/dev.in
#
# echo "django_5_0.in"
# pip-compile --upgrade examples/requirements/django_5_0.in
#
# echo "django_5_1.in"
# pip-compile --upgrade examples/requirements/django_5_1.in
#
# echo "django_4_2.in"
# pip-compile --upgrade examples/requirements/django_4_2.in
#
# echo "django_5_0_and_flask.in"
# pip-compile --upgrade examples/requirements/django_5_0_and_flask.in
#
# echo "django_5_1_and_flask.in"
# pip-compile --upgrade examples/requirements/django_5_1_and_flask.in
#
# echo "django_4_2_and_flask.in"
# pip-compile --upgrade examples/requirements/django_4_2_and_flask.in
#
# echo "docs.in"
# pip-compile --upgrade examples/requirements/docs.in
#
# echo "flask.in"
# pip-compile --upgrade examples/requirements/flask.in
#
# echo "ml.in"
# pip-compile --upgrade examples/requirements/ml.in
#
# echo "style_checkers.in"
# pip-compile --upgrade examples/requirements/style_checkers.in
#
# echo "test.in"
# pip-compile --upgrade examples/requirements/test.in
#
# echo "testing.in"
# pip-compile --upgrade examples/requirements/testing.in

compile_requirements:
echo "common.in"
uv pip compile --no-strip-extras examples/requirements/common.in -o examples/requirements/common.txt
Expand Down Expand Up @@ -246,17 +145,13 @@ flask_runserver:
pre-commit:
pre-commit run --all-files

install:
pip-compile examples/requirements/dev.in
install: compile_requirements
pip install -r examples/requirements/dev.txt
pip install -e .
mkdir -p var/logs examples/db examples/media examples/media/static
python examples/django_example/manage.py collectstatic --noinput
python examples/django_example/manage.py migrate --noinput

#isort:
# isort . --overwrite-in-place

jupyter:
cd examples/django_example/ && TOKENIZERS_PARALLELISM=true ./manage.py shell_plus --notebook

Expand Down

0 comments on commit 49ed7dc

Please sign in to comment.