Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajiih committed Nov 26, 2024
1 parent 23a0688 commit 05ae00e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ jobs:
# verbose: true
continue-on-error: true

- name: ✅ Type checking with BasedPyright
run: basedpyright --stats
continue-on-error: true
- name: ✅ Verify public API types with BasedPyright
run: basedpyright --verifytypes nested_dict_tools
continue-on-error: true

- name: 🏗️ Build
run: |
pipx install hatch
Expand Down
2 changes: 1 addition & 1 deletion hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def update(self, metadata: dict[str, Any]) -> None:
about = importlib.util.module_from_spec(spec)
sys.modules["__about__"] = about
spec.loader.exec_module(about)
1 == 2
1 == 2

Check failure on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, ubuntu-latest)

Ruff (B015)

hatch_build.py:31:9: B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.

Check failure on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, ubuntu-latest)

Ruff (PLR0133)

hatch_build.py:31:9: PLR0133 Two constants compared in a comparison, consider replacing `1 == 2`

Check warning on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, ubuntu-latest)

Expression value is unused (reportUnusedExpression)

Check warning on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, ubuntu-latest)

Condition will always evaluate to False since the types "Literal[1]" and "Literal[2]" have no overlap (reportUnnecessaryComparison)

Check failure on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, windows-latest)

Ruff (B015)

hatch_build.py:31:9: B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.

Check failure on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, windows-latest)

Ruff (PLR0133)

hatch_build.py:31:9: PLR0133 Two constants compared in a comparison, consider replacing `1 == 2`

Check warning on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, windows-latest)

Expression value is unused (reportUnusedExpression)

Check warning on line 31 in hatch_build.py

View workflow job for this annotation

GitHub Actions / build (3.12, windows-latest)

Condition will always evaluate to False since the types "Literal[1]" and "Literal[2]" have no overlap (reportUnnecessaryComparison)

# Map __about__ attributes to metadata fields
metadata["authors"] = [{"name": about.__author__, "email": about.__author_email__}]
Expand Down

0 comments on commit 05ae00e

Please sign in to comment.