Loading .pre-commit-config.yaml +8 −0 Original line number Diff line number Diff line Loading @@ -55,3 +55,11 @@ repos: entry: poetry run mypy . pass_filenames: false language: system - repo: local hooks: - id: system name: Unit tests description: use pytest to run unit tests entry: poetry run pytest tests/unit pass_filenames: false language: system app/common.py +0 −3 Original line number Diff line number Diff line """This module contains common definitions""" from dataclasses import dataclass from pydantic import BaseModel @dataclass class Response(BaseModel): """This is a model for REST API responses""" Loading Loading
.pre-commit-config.yaml +8 −0 Original line number Diff line number Diff line Loading @@ -55,3 +55,11 @@ repos: entry: poetry run mypy . pass_filenames: false language: system - repo: local hooks: - id: system name: Unit tests description: use pytest to run unit tests entry: poetry run pytest tests/unit pass_filenames: false language: system
app/common.py +0 −3 Original line number Diff line number Diff line """This module contains common definitions""" from dataclasses import dataclass from pydantic import BaseModel @dataclass class Response(BaseModel): """This is a model for REST API responses""" Loading