-
Notifications
You must be signed in to change notification settings - Fork 1
add ty type checker #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0fde73a
b4ef3e2
e89e8f5
8353069
7d87aca
ec21dbf
381385f
e4e3e39
89bbbe0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -180,7 +180,7 @@ def _fmt_atom_p(self, j: int) -> str: | |||||
| nanos = j % 1000 | ||||||
| micros = j // 1000 | ||||||
| origin = int(datetime(2000, 1, 1, tzinfo=timezone.utc).timestamp()) | ||||||
| dt = datetime.utcfromtimestamp(origin + micros / 1000000.0) | ||||||
| dt = datetime.fromtimestamp(origin + micros / 1000000.0, timezone.utc) | ||||||
|
||||||
| dt = datetime.fromtimestamp(origin + micros / 1000000.0, timezone.utc) | |
| dt = datetime.fromtimestamp(origin + micros / 1000000.0, tz=timezone.utc) |
Copilot
AI
Feb 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking API change. The HtmlFormatter.init signature has been modified to remove the 'markup' and 'escape' parameters. While these parameters have been replaced with overridable methods (html_markup and html_escape), any external code that was passing these parameters to HtmlFormatter will break. Consider documenting this breaking change in release notes or migration guide, or adding deprecation warnings in a transitional version.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| set -e | ||
| ruff check . | ||
| ruff format . | ||
| ty check | ||
| mypy --strict . | ||
| pytest . |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| prompt-toolkit | ||
| pytest | ||
| pytest-asyncio | ||
| ty | ||
| ruff | ||
|
shuckc marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| pytest | ||
| pytest-asyncio | ||
| iniconfig==2.1.0 | ||
| packaging==25.0 | ||
| prompt-toolkit==3.0.43 | ||
| Pygments==2.19.2 | ||
| pytest==9.0.2 | ||
| pytest-asyncio==1.3.0 | ||
| ruff==0.12.10 | ||
| ty==0.0.18 | ||
| wcwidth==0.2.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The virtual environment setup appears redundant. Creating a venv with 'python -m venv .venv', activating it, and adding it to PATH is unnecessary in GitHub Actions. The actions/setup-python action already provides an isolated Python environment. The subsequent 'pip install' commands will work without explicitly creating and activating a venv. Consider removing lines 24-28 to simplify the workflow.