Skip to content

Commit

Permalink
Create py.typed (#346)
Browse files Browse the repository at this point in the history
* Create py.typed

As recommended in [pep 0561](https://peps.python.org/pep-0561/), a blank `py.typed` marker should be included when type hints are used so downstream codes can type check with `mypy` and similar tools.

* pre-commit auto-fixes

* Update pyproject.toml

* Update test.yml

* Update pyproject.toml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Andrew-S-Rosen and pre-commit-ci[bot] authored Oct 14, 2024
1 parent 880ca8b commit 33e197e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: conda install -c conda-forge openbabel

- name: Install dependencies
run: uv pip install numpy==1.26.4 ; uv pip install -e '.[dev]' --system
run: uv pip install -e '.[dev]' --system

- name: pytest
env:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ maintainers = [{ name = "Janosh Riebesell" }, { name = "Shyue Ping Ong" }]
readme = "README.md"
keywords = ["jit", "job", "just-in-time", "management", "vasp", "nwchem", "qchem"]
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down Expand Up @@ -163,3 +163,6 @@ reportMissingImports = false
reportMissingModuleSource = false
reportInvalidTypeForm = false
exclude = ["**/tests"]

[tool.setuptools.package-data]
custodian = ["py.typed"]
Empty file added src/custodian/py.typed
Empty file.

0 comments on commit 33e197e

Please sign in to comment.