Skip to content

Commit

Permalink
Merge branch 'djeck1432:main' into crud-method
Browse files Browse the repository at this point in the history
  • Loading branch information
greatest0fallt1me authored Dec 25, 2024
2 parents 4dbb45e + 9e06f47 commit 58b74bd
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
args:
- --disable=all
- --enable=C0114,C0115,C0116,C0301
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,16 @@ Run command to create migration file
```bash
alembic -c web_app/alembic.ini revision --autogenerate -m "migration message"
```
## Pre-commit Setup
To ensure code quality, install pre-commit hooks locally:
1. Install pre-commit:
```bash
pip3 install pre-commit
```
2. Install hooks:
```bash
pre-commit install
```
105 changes: 103 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ pragma-sdk = "^2.4.6"
[tool.poetry.group.dev.dependencies]
black = "24.8.0"
isort = "5.13.2"

pre-commit = "4.0.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
asyncio_default_fixture_loop_scope = "function"

0 comments on commit 58b74bd

Please sign in to comment.