Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Lint code
run: |
pip install -c requirements.txt -r requirements-lint.txt
mypy .
mypy
ruff check
ruff format

Expand Down
22 changes: 21 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
strict_equality = true
warn_unreachable = true
warn_unused_ignores = true
show_error_context = true
pretty = true
check_untyped_defs = true
python_version = "3.12"
files = [
"tasktiger"
]

[[tool.mypy.overrides]]
module = ["flask_script.*", "rollbar.*", "structlog.*"]
ignore_missing_imports = true
follow_imports = "skip"

[tool.pytest.ini_options]
testpaths = ["tests"]
1 change: 1 addition & 0 deletions requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mypy==1.19.0
ruff==0.14.7
types-redis
types-click
65 changes: 0 additions & 65 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion tasktiger/_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,5 @@ class classproperty(property):
Works like @property but on classes.
"""

def __get__(desc, self, cls): # type:ignore[no-untyped-def]
def __get__(desc, self, cls): # type:ignore[no-untyped-def,override]
return desc.fget(cls) # type:ignore[misc]