Skip to content

Commit

Permalink
Fixes (#89)
Browse files Browse the repository at this point in the history
* Clean-up Makefile.
* Remove old `scripts` directory.
  • Loading branch information
barseghyanartur authored Nov 14, 2024
1 parent b29563b commit 5a76ee4
Show file tree
Hide file tree
Showing 29 changed files with 7 additions and 348 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"
}
113 changes: 4 additions & 109 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ 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 ..

check_release:
python setup.py sdist bdist_wheel
twine check dist/*
twine check dist/* --verbose

clean:
find . -name "*.pyc" -exec rm -rf {} \;
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 Expand Up @@ -287,7 +182,7 @@ mypy:
auto_build_docs:
sphinx-autobuild docs docs/_build/html

rebuild_docs: clean_up
rebuild_docs: clean
sphinx-apidoc src/faker_file --full -o docs -H 'faker-file' -A 'Artur Barseghyan <artur.barseghyan@gmail.com>' -f -d 20
cp docs/conf.py.distrib docs/conf.py
cp docs/index.rst.distrib docs/index.rst
Expand All @@ -302,7 +197,7 @@ runserver:
cd examples/django_example/ && ./manage.py runserver 0.0.0.0:8000 --traceback -v 3 "$$@"

serve_docs:
cd builddocs/ && python -m http.server 5000
cd builddocs/ && python -m http.server 5001

shell:
cd examples/django_example/ && ./manage.py shell --traceback -v 3 "$$@"
Expand Down
3 changes: 0 additions & 3 deletions scripts/alembic_migrate.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/benchmark_test.sh

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/black.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/build_docs.sh

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/check_release.sh

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/clean_up.sh

This file was deleted.

73 changes: 0 additions & 73 deletions scripts/compile_requirements.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/detect-secrets-create-baseline.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/doc8.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/flask_runserver.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/isort.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/jupyter.sh

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/make_migrations.sh

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/make_release.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/migrate.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/mypy.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/rebuild_docs.sh

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/ruff.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/runserver.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/serve_docs.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/shell.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/sqlalchemy_shell.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/test_rst_docs.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/test_tests.sh

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/uninstall.sh

This file was deleted.

Loading

0 comments on commit 5a76ee4

Please sign in to comment.