Skip to content

Commit

Permalink
chore(api): update pre-commit hooks and run
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Sep 28, 2023
1 parent 7dae501 commit d3cbe30
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
36 changes: 20 additions & 16 deletions apps/api/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,35 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: debug-statements
- id: check-yaml
- id: double-quote-string-fixer
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.10.0
rev: v3.11.0
hooks:
- id: reorder-python-imports
args: [--py311-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.13.0
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
2 changes: 1 addition & 1 deletion apps/api/app/core/managers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable

from ..models import VideoWithOptions
from ..models import VideoWithOptionsAndStatus
Expand Down
2 changes: 1 addition & 1 deletion apps/api/app/core/threads.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import threading
import time
from collections.abc import Callable
from typing import Any
from typing import Callable
from typing import Literal
from typing import NotRequired
from typing import TypeAlias
Expand Down

1 comment on commit d3cbe30

@vercel
Copy link

@vercel vercel bot commented on d3cbe30 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.