Skip to content

Commit

Permalink
Make linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
norpadon committed Jun 27, 2024
1 parent 0901ee3 commit b577fc7
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: abatilo/actions-poetry@v3
- name: Install dependencies
run: poetry install --with dev
- uses: chartboost/ruff-action@v1

- uses: jakebailey/pyright-action@v2
31 changes: 30 additions & 1 deletion poetry.lock

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

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ openai = "^1.35.3"
anthropic = "^0.29.0"
ruff-lsp = "^0.0.53"
isort = "^5.13.2"
pyright = "^1.1.369"

[tool.poetry.group.docs.dependencies]
sphinx = "^7.3.7"
sphinx-rtd-theme = "^2.0.0"
sphinxcontrib-napoleon = "^0.7"
toml = "^0.10.2"

[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "standard"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion wanga/schema/normalize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import collections
import collections.abc
import typing # noqa: F401
import typing # noqa
from types import NoneType, UnionType
from typing import Annotated, Union, get_args, get_origin

Expand Down

0 comments on commit b577fc7

Please sign in to comment.