Skip to content

Commit

Permalink
🔧 fix uv sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 3, 2024
1 parent a8a8141 commit ab32077
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: install
run: |
uv sync --frozen --no-install-project --python 3.13
uv build
uv pip install "$(find ./dist -name '*.whl')"
run: uv sync --frozen --python 3.13

- name: lint
run: uv run poe lint
Expand All @@ -57,10 +54,7 @@ jobs:
uses: astral-sh/setup-uv@v4

- name: install
run: |
uv sync --frozen --no-install-project --python 3.13
uv build
uv pip install "$(find ./dist -name '*.whl')"
run: uv sync --frozen --python 3.13

- name: typetest
run: uv run poe typetest
Expand All @@ -79,9 +73,7 @@ jobs:

- name: install
run: |
uv sync --frozen --no-install-project --python=$OLDEST_SUPPORTED_PYTHON
uv build
uv pip install "$(find ./dist -name '*.whl')"
uv sync --frozen --python=$OLDEST_SUPPORTED_PYTHON
uv pip install --upgrade numpy==$OLDEST_SUPPORTED_NUMPY
- name: typetest
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ci:
skip:
- markdownlint
- mdformat
- codespell
- ruff
- ruff-format
- typetest
Expand Down
20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description = "Typing stubs for SciPy"
readme = "README.md"
authors = [{name = "Joren Hammudoglu", email = "jhammudoglu@gmail.com"}]
license = "BSD-3-Clause"
keywords = ["scipy", "typing", "pep484"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down Expand Up @@ -36,8 +37,10 @@ Issues = "https://github.com/jorenham/scipy-stubs/issues"
Changelog = "https://github.com/jorenham/scipy-stubs/releases"
Funding = "https://github.com/sponsors/jorenham"

[tool.hatch.build.targets.sdist]
[tool.hatch.build]
packages = ["scipy-stubs"]

[tool.hatch.build.targets.sdist]
exclude = [
"/.cache",
"/.github",
Expand Down Expand Up @@ -147,7 +150,7 @@ skip = "*.lock,*.pyi"

[tool.mdformat]
end_of_line = "lf"
exclude = [".tox/**", ".venv/**", "**/*.m[!d]", "**/*.[!m]d"] # python >= 3.13
exclude = [".tox/**", ".venv/**", "**/*.m[!d]", "**/*.[!m]d"]

[tool.mypy]
python_version = "3.10"
Expand All @@ -156,7 +159,7 @@ disable_bytearray_promotion = true
disable_memoryview_promotion = true
warn_unused_ignores = true
warn_unreachable = true
disallow_any_explicit = false # no other way to type e.g. `float64 <: number[Any]`
disallow_any_explicit = false # no other way to type e.g. `float64 <: number[Any]`
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
# plugins = ["numpy.typing.mypy_plugin"]

Expand Down Expand Up @@ -229,7 +232,6 @@ select = ["ALL"]
ignore = ["D", "FBT", "COM812", "CPY", "EM", "TD", "FIX", "DOC"]

[tool.ruff.lint.per-file-ignores]
# TODO: enable F (pyflakes)
"*.pyi" = ["F", "E741", "N", "A", "PYI054", "PLC2701", "PLW3201", "PLR", "FURB"]

[tool.ruff.lint.flake8-import-conventions]
Expand Down Expand Up @@ -266,18 +268,18 @@ description = "stubtest with {base_python}"
skip_install = true
allowlist_externals = ["uv", "poe"]
commands_pre = [["uv", "sync", "--frozen"]]
commands = [["poe", "stubtest"]]
commands = [["uv", "run", "poe", "stubtest"]]

[tool.tox.env.pre-commit]
description = "pre-commit"
skip_install = true
allowlist_externals = ["uv", "poe"]
allowlist_externals = ["uv"]
commands_pre = [["uv", "sync", "--frozen"]]
commands = [["poe", "pre-commit"]]
commands = [["uv", "run", "poe", "pre-commit"]]

[tool.tox.env.repo-review]
description = "repo-review"
skip_install = true
allowlist_externals = ["uv", "poe"]
allowlist_externals = ["uv"]
commands_pre = [["uv", "sync", "--frozen"]]
commands = [["poe", "repo-review"]]
commands = [["uv", "run", "poe", "repo-review"]]

0 comments on commit ab32077

Please sign in to comment.