Skip to content

Commit

Permalink
build: use mypyc
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 14, 2024
1 parent ca36e44 commit 9c89019
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
8 changes: 0 additions & 8 deletions cleanup.py

This file was deleted.

26 changes: 16 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ dependencies = [
]

[project.optional-dependencies]
mypy = [
'mypy==1.11.2',
]

dev = [
"pytest==8.3.3",
"pytest-github-actions-annotate-failures==0.2.0",
"coverage==7.6.2",
'pre-commit==4.0.1; python_version >= "3.9"',
'mypy==1.11.2; python_version >= "3.9"',
'pre-commit==4.0.1',
"coverage==7.6.1",
'pre-commit==3.8.0',
'bgm-tv-wiki[mypy]',
'pyyaml>=6,<7',
'types-PyYAML'
]
Expand All @@ -43,16 +49,16 @@ include = ['src/']
[tool.hatch.build.targets.wheel]
packages = ["src/bgm_tv_wiki"]

[tool.hatch.build.targets.wheel.hooks.cython]
enable-by-default = false
dependencies = ["hatch-cython<1"]

[tool.hatch.build.targets.wheel.hooks.cython.options]
directives = { boundscheck = false, nonecheck = false, language_level = 3, binding = true }
src = "bgm_tv_wiki"
[tool.hatch.build.targets.wheel.hooks.mypyc]
feature = ['mypy']
dependencies = [
"hatch-mypyc",
]
mypy-args = [
"--disallow-untyped-defs",
]

[tool.cibuildwheel]
before-build = "python cleanup.py"
skip = "pp* *musllinux*"

[tool.cibuildwheel.environment]
Expand Down

0 comments on commit 9c89019

Please sign in to comment.