Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
style: Bumps ruff to 0.1.9 and mypy to 1.8.0 (#51)
Browse files Browse the repository at this point in the history
* chore: Bumps ruff and mypy

* style: Removes legacy ignore

* style: Removes unused noqa

* chore: Fixes lock file
  • Loading branch information
frgfm authored Dec 27, 2023
1 parent 1bdbb55 commit 6995b12
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.7'
rev: 'v0.1.9'
hooks:
- id: ruff
args:
Expand Down
95 changes: 48 additions & 47 deletions poetry.lock

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

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ posthog = "^3.0.0"
optional = true

[tool.poetry.group.quality.dependencies]
ruff = "==0.1.7"
mypy = "==1.6.1"
ruff = "==0.1.9"
mypy = "==1.8.0"
types-requests = ">=2.0.0"
types-python-jose = ">=3.3.0"
types-passlib = ">=1.7.0"
Expand Down Expand Up @@ -100,6 +100,7 @@ ignore = [
"ANN002", # missing type annotations on *args
"ANN003", # missing type annotations on **kwargs
"COM812", # trailing comma missing
"ISC001", # implicit string concatenation (handled by format)
]
exclude = [".git"]
line-length = 120
Expand Down
2 changes: 1 addition & 1 deletion src/alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))

from app.models import * # noqa F401
from app.models import *

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def run_executions_in_parallel(
Returns:
list: list of function's results
"""
return execute_in_parallel( # type: ignore[misc]
return execute_in_parallel(
lambda fn_arg: fn_arg[0](fn_arg[1]), # type: ignore[index]
zip(funcs, arr), # type: ignore[arg-type]
**kwargs,
Expand Down

0 comments on commit 6995b12

Please sign in to comment.