Skip to content

Commit 0a0ab4b

Browse files
committed
feat: pre-commit lint πŸ–ŠοΈ
1 parent 75bf7f0 commit 0a0ab4b

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

β€Ž.pre-commit-config.yamlβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
repos:
2+
- repo: https://github.com/PyCQA/autoflake
3+
rev: v2.2.1
4+
hooks:
5+
- id: autoflake
6+
args: [--remove-all-unused-imports, --in-place]
7+
28
- repo: https://github.com/pycqa/isort
39
rev: 5.13.2
410
hooks:

β€Žapi/src/heroes/schemas.pyβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class HeroBase(BaseModel):
2020
class HeroCreate(HeroBase):
2121
"""Schema for creating a new hero."""
2222

23-
pass
24-
2523

2624
class HeroUpdate(BaseModel):
2725
"""Schema for updating an existing hero.

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies = [
2323
"black>=24.1.0",
2424
"isort>=5.13.0",
2525
"pre-commit>=4.0.1",
26+
"autoflake>=2.3.1",
2627
]
2728

2829
[tool.pytest.ini_options]

β€Žuv.lockβ€Ž

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)