Skip to content

Commit e243418

Browse files
authored
1 parent fe56d3b commit e243418

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*.ts @Aeternalis-Ingenium
77
*.cjs @Aeternalis-Ingenium
88

9-
# HTML & CSS realted code
9+
# HTML & CSS related code
1010
*.html @Aeternalis-Ingenium
1111
*.css @Aeternalis-Ingenium
1212
*.scss @Aeternalis-Ingenium

.github/workflows/ci-backend.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
cache: 'pip'
3434
- name: Display Python version
3535
run: python -c "import sys; print(sys.version)"
36-
- name: Install depenencies
36+
- name: Install dependencies
3737
run: |
3838
python -m pip install --upgrade pip
3939
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
@@ -62,7 +62,7 @@ jobs:
6262
cache: 'pip'
6363
- name: Display Python version
6464
run: python -c "import sys; print(sys.version)"
65-
- name: Install dev depenencies
65+
- name: Install dev dependencies
6666
run: |
6767
python -m pip install --upgrade pip
6868
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
@@ -158,7 +158,7 @@ jobs:
158158
cache: 'pip'
159159
- name: Display Python version
160160
run: python -c "import sys; print(sys.version)"
161-
- name: Install depenencies
161+
- name: Install dependencies
162162
run: |
163163
python -m pip install --upgrade pip
164164
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ repos:
3333
name: isort (python)
3434
args:
3535
- --settings-path=backend/pyproject.toml
36+
- repo: https://github.com/codespell-project/codespell
37+
rev: v2.2.2
38+
hooks:
39+
- id: codespell
40+
additional_dependencies:
41+
- tomli
3642
- repo: https://github.com/pre-commit/mirrors-mypy
3743
rev: "v0.991"
3844
hooks:

backend/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This backend application template consists of:
66
* Create the backend server with FastAPI and Uvicorn,
77
* Connect the backend app with PostgreSQL server via the asynchronous SQLAlchemy with AsyncPG driver.
88
* Set up Alembic for the auto-generation of database migrations.
9-
* Create `Account` (domain) class as our database entitiy `account`.
9+
* Create `Account` (domain) class as our database entity `account`.
1010
* Create data validation for our database entity with [Pydantic](https://pydantic-docs.helpmanual.io/).
1111
* Create formatters for `json` convention and `datetime`.
1212
* Create authorization with JWT Token generator.
@@ -97,7 +97,7 @@ The secret variables are accessed by 2 different files:
9797

9898
## Pre-Commit
9999

100-
**INFO**: Run **Step 1** everytime you `git add` a file to identify any mistakes before `git commit`. Otherwise, you will re-write your perfect commit message again 👿🤬🤮
100+
**INFO**: Run **Step 1** every time you `git add` a file to identify any mistakes before `git commit`. Otherwise, you will re-write your perfect commit message again 👿🤬🤮
101101

102102
* Step 1 $\rightarrow$ Install the pre-commit hook:
103103
```shell

backend/src/repository/migrations/versions/2022_12_09_1825-60d1844cb5d3_initial_migration_fo_account_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""initial migration fo account table
1+
"""initial migration for account table
22
33
Revision ID: 60d1844cb5d3
44
Revises:

backend/src/securities/hashing/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def generate_password_salt_hash(self) -> str:
2626

2727
def generate_password_hash(self, hash_salt: str, password: str) -> str:
2828
"""
29-
A function taht adds the user's password with the layer 1 Bcrypt hash, before
29+
A function that adds the user's password with the layer 1 Bcrypt hash, before
3030
hash it for the second time using Argon2 algorithm.
3131
"""
3232
return self._hash_ctx_layer_2.hash(secret=hash_salt + password)

0 commit comments

Comments
 (0)