From 80c0356d8ef1c0a2b3fba22e52d3cd95a2a49a2b Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Sun, 3 Mar 2024 03:36:00 +0300 Subject: [PATCH] setup pre-commit hooks Generate swagger UI --- .editorconfig | 27 + .env.example | 2 +- .gitignore | 2 +- .../inspectionProfiles/profiles_settings.xml | 2 +- .idea/misc.xml | 2 +- .idea/modules.xml | 2 +- .idea/store.iml | 2 +- .idea/vcs.xml | 2 +- .idea/workspace.xml | 76 ++- .pre-commit-config.yaml | 31 + Pipfile | 5 + Pipfile.lock | 643 +++++++++++++++++- README.md | 2 +- db.sqlite3 | Bin 0 -> 131072 bytes manage.py | 4 +- products/apps.py | 4 +- pyproject.toml | 10 + store/asgi.py | 2 +- store/settings.py | 113 ++- store/urls.py | 23 +- store/wsgi.py | 2 +- 21 files changed, 855 insertions(+), 101 deletions(-) create mode 100644 .editorconfig create mode 100644 .pre-commit-config.yaml create mode 100644 pyproject.toml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c0ce342 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{py,rst,ini}] +indent_style = space +indent_size = 4 + +[*.{html,css,scss,json,yml,xml}] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab + +[default.conf] +indent_style = space +indent_size = 2 diff --git a/.env.example b/.env.example index f1fd122..7a2d8b9 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,2 @@ SECRET_KEY= -ENVIRONMENT= \ No newline at end of file +ENVIRONMENT= diff --git a/.gitignore b/.gitignore index ca9e27c..c1f993a 100644 --- a/.gitignore +++ b/.gitignore @@ -171,4 +171,4 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -# End of https://www.toptal.com/developers/gitignore/api/django \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/django diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml index 105ce2d..cc5462d 100644 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -3,4 +3,4 @@