diff --git a/.gitignore b/.gitignore index 1a496fab..2900cd3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,2 @@ -*.pyc -env -venv -.project -.pydevproject -*/__pycache__/ .idea/ -*.egg-info/ -frontend \ No newline at end of file +frontend diff --git a/CHANGES.txt b/CHANGES.md similarity index 100% rename from CHANGES.txt rename to CHANGES.md diff --git a/README.md b/README.md index 50f21823..53be6d13 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,22 @@ python3 -m pip install pyramid waitress sqlalchemy zope.sqlalchemy psycopg2 ## Prettier - to format typescript files ```npx prettier --write src/app/``` + +## Eslint - to lint typescript files +```shell script +eslint src/app/ +``` +Optional to fix the errors as well +``` +eslint src/app/ --fix +``` + +### Poerty remove environment +```sh +rm -rf `poetry env info -p` +``` + +### Poerty install +```sh +poetry install +``` \ No newline at end of file diff --git a/.flake8 b/brewman/.flake8 similarity index 100% rename from .flake8 rename to brewman/.flake8 diff --git a/brewman/.gitignore b/brewman/.gitignore new file mode 100644 index 00000000..7269916c --- /dev/null +++ b/brewman/.gitignore @@ -0,0 +1,3 @@ +*.pyc +*/__pycache__/ +*.egg-info/ diff --git a/alembic.ini b/brewman/alembic.ini similarity index 100% rename from alembic.ini rename to brewman/alembic.ini diff --git a/alembic/README b/brewman/alembic/README similarity index 100% rename from alembic/README rename to brewman/alembic/README diff --git a/alembic/env.py b/brewman/alembic/env.py similarity index 100% rename from alembic/env.py rename to brewman/alembic/env.py diff --git a/alembic/versions/0bf3d70ee7de_initial_commit.py b/brewman/alembic/versions/0bf3d70ee7de_initial_commit.py similarity index 100% rename from alembic/versions/0bf3d70ee7de_initial_commit.py rename to brewman/alembic/versions/0bf3d70ee7de_initial_commit.py diff --git a/alembic/versions/eed0b382c287_lowercase_fastapi.py b/brewman/alembic/versions/eed0b382c287_lowercase_fastapi.py similarity index 100% rename from alembic/versions/eed0b382c287_lowercase_fastapi.py rename to brewman/alembic/versions/eed0b382c287_lowercase_fastapi.py diff --git a/brewman/__init__.py b/brewman/brewman/__init__.py similarity index 100% rename from brewman/__init__.py rename to brewman/brewman/__init__.py diff --git a/brewman/__main__.py b/brewman/brewman/__main__.py similarity index 100% rename from brewman/__main__.py rename to brewman/brewman/__main__.py diff --git a/brewman/__version__.py b/brewman/brewman/__version__.py similarity index 100% rename from brewman/__version__.py rename to brewman/brewman/__version__.py diff --git a/brewman/core/__init__.py b/brewman/brewman/core/__init__.py similarity index 100% rename from brewman/core/__init__.py rename to brewman/brewman/core/__init__.py diff --git a/brewman/core/config.py b/brewman/brewman/core/config.py similarity index 100% rename from brewman/core/config.py rename to brewman/brewman/core/config.py diff --git a/brewman/core/security.py b/brewman/brewman/core/security.py similarity index 100% rename from brewman/core/security.py rename to brewman/brewman/core/security.py diff --git a/brewman/core/session.py b/brewman/brewman/core/session.py similarity index 100% rename from brewman/core/session.py rename to brewman/brewman/core/session.py diff --git a/brewman/db/__init__.py b/brewman/brewman/db/__init__.py similarity index 100% rename from brewman/db/__init__.py rename to brewman/brewman/db/__init__.py diff --git a/brewman/db/base.py b/brewman/brewman/db/base.py similarity index 100% rename from brewman/db/base.py rename to brewman/brewman/db/base.py diff --git a/brewman/db/base_class.py b/brewman/brewman/db/base_class.py similarity index 100% rename from brewman/db/base_class.py rename to brewman/brewman/db/base_class.py diff --git a/brewman/db/init_db.py b/brewman/brewman/db/init_db.py similarity index 100% rename from brewman/db/init_db.py rename to brewman/brewman/db/init_db.py diff --git a/brewman/db/session.py b/brewman/brewman/db/session.py similarity index 100% rename from brewman/db/session.py rename to brewman/brewman/db/session.py diff --git a/brewman/main.py b/brewman/brewman/main.py similarity index 100% rename from brewman/main.py rename to brewman/brewman/main.py diff --git a/brewman/models/__init__.py b/brewman/brewman/models/__init__.py similarity index 100% rename from brewman/models/__init__.py rename to brewman/brewman/models/__init__.py diff --git a/brewman/models/auth.py b/brewman/brewman/models/auth.py similarity index 100% rename from brewman/models/auth.py rename to brewman/brewman/models/auth.py diff --git a/brewman/models/master.py b/brewman/brewman/models/master.py similarity index 100% rename from brewman/models/master.py rename to brewman/brewman/models/master.py diff --git a/brewman/models/meta.py b/brewman/brewman/models/meta.py similarity index 100% rename from brewman/models/meta.py rename to brewman/brewman/models/meta.py diff --git a/brewman/models/operations.py b/brewman/brewman/models/operations.py similarity index 100% rename from brewman/models/operations.py rename to brewman/brewman/models/operations.py diff --git a/brewman/models/tzinfoutc.py b/brewman/brewman/models/tzinfoutc.py similarity index 100% rename from brewman/models/tzinfoutc.py rename to brewman/brewman/models/tzinfoutc.py diff --git a/brewman/models/voucher.py b/brewman/brewman/models/voucher.py similarity index 100% rename from brewman/models/voucher.py rename to brewman/brewman/models/voucher.py diff --git a/brewman/routers/__init__.py b/brewman/brewman/routers/__init__.py similarity index 100% rename from brewman/routers/__init__.py rename to brewman/brewman/routers/__init__.py diff --git a/brewman/routers/account.py b/brewman/brewman/routers/account.py similarity index 100% rename from brewman/routers/account.py rename to brewman/brewman/routers/account.py diff --git a/brewman/routers/account_types.py b/brewman/brewman/routers/account_types.py similarity index 100% rename from brewman/routers/account_types.py rename to brewman/brewman/routers/account_types.py diff --git a/brewman/routers/attendance.py b/brewman/brewman/routers/attendance.py similarity index 100% rename from brewman/routers/attendance.py rename to brewman/brewman/routers/attendance.py diff --git a/brewman/routers/attendance_report.py b/brewman/brewman/routers/attendance_report.py similarity index 100% rename from brewman/routers/attendance_report.py rename to brewman/brewman/routers/attendance_report.py diff --git a/brewman/routers/attendance_types.py b/brewman/brewman/routers/attendance_types.py similarity index 100% rename from brewman/routers/attendance_types.py rename to brewman/brewman/routers/attendance_types.py diff --git a/brewman/routers/auth/__init__.py b/brewman/brewman/routers/auth/__init__.py similarity index 100% rename from brewman/routers/auth/__init__.py rename to brewman/brewman/routers/auth/__init__.py diff --git a/brewman/routers/auth/client.py b/brewman/brewman/routers/auth/client.py similarity index 100% rename from brewman/routers/auth/client.py rename to brewman/brewman/routers/auth/client.py diff --git a/brewman/routers/auth/role.py b/brewman/brewman/routers/auth/role.py similarity index 100% rename from brewman/routers/auth/role.py rename to brewman/brewman/routers/auth/role.py diff --git a/brewman/routers/auth/user.py b/brewman/brewman/routers/auth/user.py similarity index 100% rename from brewman/routers/auth/user.py rename to brewman/brewman/routers/auth/user.py diff --git a/brewman/routers/batch.py b/brewman/brewman/routers/batch.py similarity index 100% rename from brewman/routers/batch.py rename to brewman/brewman/routers/batch.py diff --git a/brewman/routers/cost_centre.py b/brewman/brewman/routers/cost_centre.py similarity index 100% rename from brewman/routers/cost_centre.py rename to brewman/brewman/routers/cost_centre.py diff --git a/brewman/routers/credit_salary.py b/brewman/brewman/routers/credit_salary.py similarity index 100% rename from brewman/routers/credit_salary.py rename to brewman/brewman/routers/credit_salary.py diff --git a/brewman/routers/db_image.py b/brewman/brewman/routers/db_image.py similarity index 100% rename from brewman/routers/db_image.py rename to brewman/brewman/routers/db_image.py diff --git a/brewman/routers/db_integrity.py b/brewman/brewman/routers/db_integrity.py similarity index 100% rename from brewman/routers/db_integrity.py rename to brewman/brewman/routers/db_integrity.py diff --git a/brewman/routers/employee.py b/brewman/brewman/routers/employee.py similarity index 100% rename from brewman/routers/employee.py rename to brewman/brewman/routers/employee.py diff --git a/brewman/routers/employee_attendance.py b/brewman/brewman/routers/employee_attendance.py similarity index 100% rename from brewman/routers/employee_attendance.py rename to brewman/brewman/routers/employee_attendance.py diff --git a/brewman/routers/employee_benefit.py b/brewman/brewman/routers/employee_benefit.py similarity index 100% rename from brewman/routers/employee_benefit.py rename to brewman/brewman/routers/employee_benefit.py diff --git a/brewman/routers/fingerprint.py b/brewman/brewman/routers/fingerprint.py similarity index 100% rename from brewman/routers/fingerprint.py rename to brewman/brewman/routers/fingerprint.py diff --git a/brewman/routers/incentive.py b/brewman/brewman/routers/incentive.py similarity index 100% rename from brewman/routers/incentive.py rename to brewman/brewman/routers/incentive.py diff --git a/brewman/routers/issue.py b/brewman/brewman/routers/issue.py similarity index 100% rename from brewman/routers/issue.py rename to brewman/brewman/routers/issue.py diff --git a/brewman/routers/issue_grid.py b/brewman/brewman/routers/issue_grid.py similarity index 100% rename from brewman/routers/issue_grid.py rename to brewman/brewman/routers/issue_grid.py diff --git a/brewman/routers/journal.py b/brewman/brewman/routers/journal.py similarity index 100% rename from brewman/routers/journal.py rename to brewman/brewman/routers/journal.py diff --git a/brewman/routers/lock_information.py b/brewman/brewman/routers/lock_information.py similarity index 100% rename from brewman/routers/lock_information.py rename to brewman/brewman/routers/lock_information.py diff --git a/brewman/routers/login.py b/brewman/brewman/routers/login.py similarity index 100% rename from brewman/routers/login.py rename to brewman/brewman/routers/login.py diff --git a/brewman/routers/maintenance.py b/brewman/brewman/routers/maintenance.py similarity index 100% rename from brewman/routers/maintenance.py rename to brewman/brewman/routers/maintenance.py diff --git a/brewman/routers/product.py b/brewman/brewman/routers/product.py similarity index 100% rename from brewman/routers/product.py rename to brewman/brewman/routers/product.py diff --git a/brewman/routers/product_group.py b/brewman/brewman/routers/product_group.py similarity index 100% rename from brewman/routers/product_group.py rename to brewman/brewman/routers/product_group.py diff --git a/brewman/routers/purchase.py b/brewman/brewman/routers/purchase.py similarity index 100% rename from brewman/routers/purchase.py rename to brewman/brewman/routers/purchase.py diff --git a/brewman/routers/purchase_return.py b/brewman/brewman/routers/purchase_return.py similarity index 100% rename from brewman/routers/purchase_return.py rename to brewman/brewman/routers/purchase_return.py diff --git a/brewman/routers/rebase.py b/brewman/brewman/routers/rebase.py similarity index 100% rename from brewman/routers/rebase.py rename to brewman/brewman/routers/rebase.py diff --git a/brewman/routers/recipe.py b/brewman/brewman/routers/recipe.py similarity index 100% rename from brewman/routers/recipe.py rename to brewman/brewman/routers/recipe.py diff --git a/brewman/routers/reports/__init__.py b/brewman/brewman/routers/reports/__init__.py similarity index 100% rename from brewman/routers/reports/__init__.py rename to brewman/brewman/routers/reports/__init__.py diff --git a/brewman/routers/reports/balance_sheet.py b/brewman/brewman/routers/reports/balance_sheet.py similarity index 100% rename from brewman/routers/reports/balance_sheet.py rename to brewman/brewman/routers/reports/balance_sheet.py diff --git a/brewman/routers/reports/cash_flow.py b/brewman/brewman/routers/reports/cash_flow.py similarity index 100% rename from brewman/routers/reports/cash_flow.py rename to brewman/brewman/routers/reports/cash_flow.py diff --git a/brewman/routers/reports/closing_stock.py b/brewman/brewman/routers/reports/closing_stock.py similarity index 100% rename from brewman/routers/reports/closing_stock.py rename to brewman/brewman/routers/reports/closing_stock.py diff --git a/brewman/routers/reports/daybook.py b/brewman/brewman/routers/reports/daybook.py similarity index 100% rename from brewman/routers/reports/daybook.py rename to brewman/brewman/routers/reports/daybook.py diff --git a/brewman/routers/reports/ledger.py b/brewman/brewman/routers/reports/ledger.py similarity index 100% rename from brewman/routers/reports/ledger.py rename to brewman/brewman/routers/reports/ledger.py diff --git a/brewman/routers/reports/net_transactions.py b/brewman/brewman/routers/reports/net_transactions.py similarity index 100% rename from brewman/routers/reports/net_transactions.py rename to brewman/brewman/routers/reports/net_transactions.py diff --git a/brewman/routers/reports/product_ledger.py b/brewman/brewman/routers/reports/product_ledger.py similarity index 100% rename from brewman/routers/reports/product_ledger.py rename to brewman/brewman/routers/reports/product_ledger.py diff --git a/brewman/routers/reports/profit_loss.py b/brewman/brewman/routers/reports/profit_loss.py similarity index 100% rename from brewman/routers/reports/profit_loss.py rename to brewman/brewman/routers/reports/profit_loss.py diff --git a/brewman/routers/reports/purchase_entries.py b/brewman/brewman/routers/reports/purchase_entries.py similarity index 100% rename from brewman/routers/reports/purchase_entries.py rename to brewman/brewman/routers/reports/purchase_entries.py diff --git a/brewman/routers/reports/purchases.py b/brewman/brewman/routers/reports/purchases.py similarity index 100% rename from brewman/routers/reports/purchases.py rename to brewman/brewman/routers/reports/purchases.py diff --git a/brewman/routers/reports/raw_material_cost.py b/brewman/brewman/routers/reports/raw_material_cost.py similarity index 100% rename from brewman/routers/reports/raw_material_cost.py rename to brewman/brewman/routers/reports/raw_material_cost.py diff --git a/brewman/routers/reports/reconcile.py b/brewman/brewman/routers/reports/reconcile.py similarity index 100% rename from brewman/routers/reports/reconcile.py rename to brewman/brewman/routers/reports/reconcile.py diff --git a/brewman/routers/reports/stock_movement.py b/brewman/brewman/routers/reports/stock_movement.py similarity index 100% rename from brewman/routers/reports/stock_movement.py rename to brewman/brewman/routers/reports/stock_movement.py diff --git a/brewman/routers/reports/trial_balance.py b/brewman/brewman/routers/reports/trial_balance.py similarity index 100% rename from brewman/routers/reports/trial_balance.py rename to brewman/brewman/routers/reports/trial_balance.py diff --git a/brewman/routers/reports/unposted.py b/brewman/brewman/routers/reports/unposted.py similarity index 100% rename from brewman/routers/reports/unposted.py rename to brewman/brewman/routers/reports/unposted.py diff --git a/brewman/routers/reset_stock.py b/brewman/brewman/routers/reset_stock.py similarity index 100% rename from brewman/routers/reset_stock.py rename to brewman/brewman/routers/reset_stock.py diff --git a/brewman/routers/voucher.py b/brewman/brewman/routers/voucher.py similarity index 100% rename from brewman/routers/voucher.py rename to brewman/brewman/routers/voucher.py diff --git a/brewman/schemas/__init__.py b/brewman/brewman/schemas/__init__.py similarity index 100% rename from brewman/schemas/__init__.py rename to brewman/brewman/schemas/__init__.py diff --git a/brewman/schemas/auth.py b/brewman/brewman/schemas/auth.py similarity index 100% rename from brewman/schemas/auth.py rename to brewman/brewman/schemas/auth.py diff --git a/brewman/schemas/input.py b/brewman/brewman/schemas/input.py similarity index 100% rename from brewman/schemas/input.py rename to brewman/brewman/schemas/input.py diff --git a/brewman/schemas/master.py b/brewman/brewman/schemas/master.py similarity index 100% rename from brewman/schemas/master.py rename to brewman/brewman/schemas/master.py diff --git a/brewman/schemas/reports.py b/brewman/brewman/schemas/reports.py similarity index 100% rename from brewman/schemas/reports.py rename to brewman/brewman/schemas/reports.py diff --git a/brewman/schemas/settings.py b/brewman/brewman/schemas/settings.py similarity index 100% rename from brewman/schemas/settings.py rename to brewman/brewman/schemas/settings.py diff --git a/brewman/schemas/voucher.py b/brewman/brewman/schemas/voucher.py similarity index 100% rename from brewman/schemas/voucher.py rename to brewman/brewman/schemas/voucher.py diff --git a/brewman/scripts/__init__.py b/brewman/brewman/scripts/__init__.py similarity index 100% rename from brewman/scripts/__init__.py rename to brewman/brewman/scripts/__init__.py diff --git a/brewman/scripts/initializedb.py b/brewman/brewman/scripts/initializedb.py similarity index 100% rename from brewman/scripts/initializedb.py rename to brewman/brewman/scripts/initializedb.py diff --git a/pyproject.toml b/brewman/pyproject.toml similarity index 100% rename from pyproject.toml rename to brewman/pyproject.toml