Skip to content

Commit

Permalink
fix: mypy in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub3628800 committed Sep 21, 2024
1 parent 56a0170 commit 21cc341
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
40 changes: 23 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: debug-statements
- id: check-ast
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
Expand All @@ -11,25 +25,17 @@ repos:
rev: v1.10.1
hooks:
- id: mypy
args: [--explicit-package-bases, --namespace-packages, --ignore-missing-imports]
exclude: "upload_test_coverage.py"
exclude: ^tests/
args: []
additional_dependencies:
- pydantic
- pydantic-settings
- asyncpg
- asyncpg-stubs
- starlette
- uvicorn

- repo: https://github.com/jazzband/pip-tools
rev: 7.4.1
hooks:
- id: pip-compile


- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: debug-statements
- id: check-ast
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]
2 changes: 1 addition & 1 deletion run_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

if __name__ == "__main__":
port = os.getenv("APPLICATION_PORT", 8000)
uvicorn.run(app, host="127.0.0.0", port=port, loop="uvloop")
uvicorn.run(app, host="127.0.0.0", port=int(port), loop="uvloop")
Empty file added shortener/__init__.py
Empty file.

0 comments on commit 21cc341

Please sign in to comment.