-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Mypy type checking Fixes #12 Add Mypy type checking to the project. * Add `mypy` as a development dependency in `pyproject.toml`. * Add `[tool.mypy]` section in `pyproject.toml` to configure mypy to check all code files. * Add type hints to all function and method signatures in `intentguard/cache.py`, `intentguard/intentguard_options.py`, and `intentguard/intentguard.py`. * Update `.github/workflows/main.yml` to include a step to run `mypy` checks after the `ruff` checks. * Update `generate_cache_key` in `intentguard/cache.py` to accept `IntentGuardOptions` object. * Update `_format_code_objects` in `intentguard/intentguard.py` to handle specific types expected by `inspect.getsource`.
- Loading branch information
Showing
8 changed files
with
136 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.ruff_cache | ||
dist | ||
.venv | ||
design | ||
assets | ||
poetry.lock | ||
.cdigestignore | ||
LICENSE | ||
._codebase_digest.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,8 @@ | |
/.venv | ||
__pycache__ | ||
.intentguard | ||
.mypy_cache | ||
/design | ||
._codebase_digest.txt | ||
/.idea | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters