chore: set up mypy strict checking and ship py.typed
This commit is contained in:
parent
ee2a729438
commit
e60495b2ce
3 changed files with 14 additions and 0 deletions
1
Pipfile
1
Pipfile
|
|
@ -12,6 +12,7 @@ name = "pypi"
|
|||
[dev-packages]
|
||||
tox = "*"
|
||||
pytest = "*"
|
||||
mypy = "*"
|
||||
build = "*"
|
||||
twine = "*"
|
||||
setuptools-scm = "~=8.2.0"
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ Git = "https://git.code.tiararodney.com/tiararodney/sekft"
|
|||
where = ["src"]
|
||||
namespaces = true
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"tiararodney.sekft" = ["py.typed"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = ["src", "../posix-sdc/src"]
|
||||
testpaths = ["tests"]
|
||||
|
|
@ -70,6 +73,16 @@ markers = [
|
|||
|
||||
[tool.mypy]
|
||||
strict = true
|
||||
mypy_path = "src"
|
||||
explicit_package_bases = true
|
||||
namespace_packages = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"torch.*", "transformers.*", "peft.*", "datasets.*", "bitsandbytes.*",
|
||||
"tiararodney.posix_sdc.*",
|
||||
]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.autopep8]
|
||||
max_line_length = 80
|
||||
|
|
|
|||
0
src/tiararodney/sekft/py.typed
Normal file
0
src/tiararodney/sekft/py.typed
Normal file
Loading…
Add table
Add a link
Reference in a new issue