Skip to content

Commit 97a746e

Browse files
Lint Fixes
1 parent 59f2fbc commit 97a746e

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ repos:
2626
- id: flake8
2727
additional_dependencies: [flake8-docstrings]
2828

29-
# Temporarily disable mypy due to issues with Python version compatibility
30-
# - repo: https://github.com/pre-commit/mirrors-mypy
31-
# rev: v1.3.0
32-
# hooks:
33-
# - id: mypy
34-
# additional_dependencies:
35-
# - types-requests
36-
# - types-python-dateutil
37-
# exclude: ^projectx_sdk/client\.py$
29+
# Re-enable mypy with configurations that work
30+
- repo: https://github.com/pre-commit/mirrors-mypy
31+
rev: v1.3.0
32+
hooks:
33+
- id: mypy
34+
additional_dependencies:
35+
- types-requests
36+
- types-python-dateutil
37+
args: [
38+
"--ignore-missing-imports",
39+
"--follow-imports=skip"
40+
]

projectx_sdk/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,5 @@ def put(self, path: str, **kwargs) -> Dict[str, Any]:
261261

262262
def delete(self, path: str, **kwargs) -> Dict[str, Any]:
263263
"""Make a DELETE request to the API."""
264+
# Use the generic request method with the DELETE HTTP method
264265
return self.request("DELETE", path, **kwargs)

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ strict_optional = true
4545

4646
# Ignore syntax issues in 3rd party packages
4747
ignore_errors = false
48+
install_types = true # Try to auto-install missing stub packages
49+
non_interactive = true # Don't ask for confirmation when installing stub packages
4850

4951
[[tool.mypy.overrides]]
5052
module = ["signalrcore.*", "pytest.*", "responses.*", "pydantic.*"]

0 commit comments

Comments
 (0)