diff --git a/brewman/.pre-commit-config.yaml b/brewman/.pre-commit-config.yaml index 6da7f1d7..8b434375 100644 --- a/brewman/.pre-commit-config.yaml +++ b/brewman/.pre-commit-config.yaml @@ -2,12 +2,12 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 22.10.0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 + rev: 5.0.4 hooks: - id: flake8 args: ['--config=brewman/.flake8'] diff --git a/brewman/pyproject.toml b/brewman/pyproject.toml index 13bebae7..32b0c464 100644 --- a/brewman/pyproject.toml +++ b/brewman/pyproject.toml @@ -6,26 +6,26 @@ authors = ["tanshu <git@tanshu.com>"] [tool.poetry.dependencies] python = "^3.10" -uvicorn = {extras = ["standard"], version = "^0.18.2"} -fastapi = "^0.78.0" +uvicorn = {extras = ["standard"], version = "^0.19.0"} +fastapi = "^0.85.1" python-jose = {extras = ["cryptography"], version = "^3.3.0"} passlib = {extras = ["bcrypt"], version = "^1.7.4"} -psycopg2-binary = "^2.9.3" -SQLAlchemy = {extras = ["mypy"], version = "^1.4.39"} +psycopg2-binary = "^2.9.5" +SQLAlchemy = {extras = ["mypy"], version = "^1.4.42"} python-multipart = "^0.0.5" -PyJWT = "^2.4.0" -alembic = "^1.8.0" +PyJWT = "^2.6.0" +alembic = "^1.8.1" itsdangerous = "^2.1.2" -python-dotenv = "^0.20.0" -pydantic = {extras = ["dotenv"], version = "^1.9.1"} -starlette = "^0.19.1" +python-dotenv = "^0.21.0" +pydantic = {extras = ["dotenv"], version = "^1.10.2"} +starlette = "^0.20.4" [tool.poetry.dev-dependencies] -flake8 = "^4.0.1" -black = "^22.6.0" +flake8 = "^5.0.4" +black = "^22.10.0" isort = {extras = ["toml"], version = "^5.10.1"} -pre-commit = "^2.19.0" -mypy = "^0.961" +pre-commit = "^2.20.0" +mypy = "^0.982" [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/overlord/package.json b/overlord/package.json index 1667221b..6b78ef7e 100644 --- a/overlord/package.json +++ b/overlord/package.json @@ -14,54 +14,54 @@ }, "private": true, "dependencies": { - "@angular/animations": "^14.0.4", - "@angular/cdk": "^14.0.4", - "@angular/common": "^14.0.4", - "@angular/compiler": "^14.0.4", - "@angular/core": "^14.0.4", - "@angular/flex-layout": "^14.0.0-beta.40", - "@angular/forms": "^14.0.4", - "@angular/material": "^14.0.4", - "@angular/material-moment-adapter": "^14.0.4", - "@angular/platform-browser": "^14.0.4", - "@angular/platform-browser-dynamic": "^14.0.4", - "@angular/router": "^14.0.4", + "@angular/animations": "^14.2.8", + "@angular/cdk": "^14.2.6", + "@angular/common": "^14.2.8", + "@angular/compiler": "^14.2.8", + "@angular/core": "^14.2.8", + "@angular/flex-layout": "^14.0.0-beta.41", + "@angular/forms": "^14.2.8", + "@angular/material": "^14.2.6", + "@angular/material-moment-adapter": "^14.2.6", + "@angular/platform-browser": "^14.2.8", + "@angular/platform-browser-dynamic": "^14.2.8", + "@angular/router": "^14.2.8", "@ngx-loading-bar/core": "^6.0.2", "@ngx-loading-bar/http-client": "^6.0.2", "@ngx-loading-bar/router": "^6.0.2", - "@types/mousetrap": "1.6.9", + "@types/mousetrap": "1.6.10", "angular2-hotkeys": "^13.1.0", - "mathjs": "^10.6.4", - "moment": "^2.29.3", + "mathjs": "^11.3.2", + "moment": "^2.29.4", "rxjs": "^6.6.7", "tslib": "^2.1.0", "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "^14.0.4", - "@angular-eslint/builder": "^14.0.0", - "@angular-eslint/eslint-plugin": "^14.0.0", - "@angular-eslint/eslint-plugin-template": "^14.0.0", - "@angular-eslint/schematics": "^14.0.0", - "@angular-eslint/template-parser": "^14.0.0", - "@angular/cli": "^14.0.4", - "@angular/compiler-cli": "^14.0.4", - "@angular/language-service": "^14.0.4", - "@types/jasmine": "~3.7.4", - "@types/node": "^18.0.1", - "@typescript-eslint/eslint-plugin": "^5.29.0", - "@typescript-eslint/parser": "^5.29.0", - "eslint": "^8.18.0", + "@angular-devkit/build-angular": "^14.2.7", + "@angular-eslint/builder": "^14.1.2", + "@angular-eslint/eslint-plugin": "^14.1.2", + "@angular-eslint/eslint-plugin-template": "^14.1.2", + "@angular-eslint/schematics": "^14.1.2", + "@angular-eslint/template-parser": "^14.1.2", + "@angular/cli": "^14.2.7", + "@angular/compiler-cli": "^14.2.8", + "@angular/language-service": "^14.2.8", + "@types/jasmine": "~4.3.0", + "@types/node": "^18.11.8", + "@typescript-eslint/eslint-plugin": "^5.41.0", + "@typescript-eslint/parser": "^5.41.0", + "eslint": "^8.26.0", "eslint-plugin-import": "2.26.0", "eslint-plugin-unused-imports": "^2.0.0", "husky": "^8.0.1", - "jasmine-core": "~3.8.0", + "jasmine-core": "~4.5.0", "jasmine-spec-reporter": "7.0.0", - "karma": "^6.3.2", - "karma-chrome-launcher": "~3.1.0", - "karma-coverage": "~2.0.3", - "karma-jasmine": "~4.0.1", - "karma-jasmine-html-reporter": "^1.6.0", + "karma": "^6.4.1", + "karma-chrome-launcher": "~3.1.1", + "karma-coverage": "~2.2.0", + "karma-jasmine": "~5.1.0", + "karma-jasmine-html-reporter": "^2.0.0", "lint-staged": "^13.0.3", "prettier": "^2.7.1", "standard-version": "^9.5.0", @@ -81,4 +81,4 @@ "npx eslint --cache --fix" ] } -} +} \ No newline at end of file diff --git a/overlord/src/app/profit-loss/profit-loss.component.html b/overlord/src/app/profit-loss/profit-loss.component.html index 82a1bf92..4aabe182 100644 --- a/overlord/src/app/profit-loss/profit-loss.component.html +++ b/overlord/src/app/profit-loss/profit-loss.component.html @@ -43,14 +43,14 @@ <ng-container matColumnDef="group"> <mat-header-cell *matHeaderCellDef mat-sort-header>Group</mat-header-cell> <mat-cell *matCellDef="let row">{{ row.group }}</mat-cell> - <mat-footer-cell *matFooterCellDef>{{ info.footer?.group }}</mat-footer-cell> + <mat-footer-cell *matFooterCellDef>{{ info.footer.group }}</mat-footer-cell> </ng-container> <!-- Name Column --> <ng-container matColumnDef="name"> <mat-header-cell *matHeaderCellDef mat-sort-header>Name</mat-header-cell> <mat-cell *matCellDef="let row">{{ row.name }}</mat-cell> - <mat-footer-cell *matFooterCellDef>{{ info.footer?.name }}</mat-footer-cell> + <mat-footer-cell *matFooterCellDef>{{ info.footer.name }}</mat-footer-cell> </ng-container> <!-- Amount Column --> @@ -58,7 +58,7 @@ <mat-header-cell *matHeaderCellDef mat-sort-header class="right">Amount</mat-header-cell> <mat-cell *matCellDef="let row" class="right">{{ row.amount | currency: 'INR' }}</mat-cell> <mat-footer-cell *matFooterCellDef class="right"> - {{ info.footer?.amount | currency: 'INR' }} + {{ info.footer.amount | currency: 'INR' }} </mat-footer-cell> </ng-container> @@ -67,7 +67,7 @@ <mat-header-cell *matHeaderCellDef mat-sort-header class="right">Total</mat-header-cell> <mat-cell *matCellDef="let row" class="right">{{ row.total | currency: 'INR' }}</mat-cell> <mat-footer-cell *matFooterCellDef class="right"> - {{ info.footer?.total | currency: 'INR' }} + {{ info.footer.total | currency: 'INR' }} </mat-footer-cell> </ng-container> diff --git a/overlord/src/app/purchases/purchases.component.html b/overlord/src/app/purchases/purchases.component.html index f0aef384..c0c26ae7 100644 --- a/overlord/src/app/purchases/purchases.component.html +++ b/overlord/src/app/purchases/purchases.component.html @@ -50,7 +50,7 @@ ></mat-cell > <mat-footer-cell *matFooterCellDef> - {{ info.footer?.name }} + {{ info.footer.name }} </mat-footer-cell> </ng-container> @@ -61,7 +61,7 @@ row.quantity | number: '1.2-2' }}</mat-cell> <mat-footer-cell *matFooterCellDef class="right"> - {{ info.footer?.quantity | number: '1.2-2' }} + {{ info.footer.quantity | number: '1.2-2' }} </mat-footer-cell> </ng-container> @@ -70,7 +70,7 @@ <mat-header-cell *matHeaderCellDef class="right">Rate</mat-header-cell> <mat-cell *matCellDef="let row" class="right">{{ row.rate | currency: 'INR' }}</mat-cell> <mat-footer-cell *matFooterCellDef class="right"> - {{ info.footer?.rate | currency: 'INR' }} + {{ info.footer.rate | currency: 'INR' }} </mat-footer-cell> </ng-container> @@ -79,7 +79,7 @@ <mat-header-cell *matHeaderCellDef mat-sort-header class="right">Amount</mat-header-cell> <mat-cell *matCellDef="let row" class="right">{{ row.amount | currency: 'INR' }}</mat-cell> <mat-footer-cell *matFooterCellDef class="right"> - {{ info.footer?.amount | currency: 'INR' }} + {{ info.footer.amount | currency: 'INR' }} </mat-footer-cell> </ng-container>