Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7
with:
python-version: ${{ matrix.python-version }}
activate-environment: true

- name: Install dependencies
working-directory: ${{ matrix.package }}
Expand All @@ -80,11 +81,11 @@ jobs:
- name: Type checking
if: matrix.python-version == '3.13'
working-directory: ${{ matrix.package }}
run: uv run mypy-check --frozen
run: poe mypy

- name: Test with pytest
working-directory: ${{ matrix.package }}
run: uv run cov --frozen
run: poe cov

- if: matrix.python-version == '3.13'
name: Upload coverage to Codecov
Expand Down
19 changes: 10 additions & 9 deletions hooks/openfeature-hooks-opentelemetry/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
dev = [
"coverage[toml]>=7.10.0,<8.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=8.4.0,<9.0.0",
]

Expand All @@ -52,12 +53,12 @@ pretty = true
strict = true
disallow_any_generics = false

[project.scripts]
# workaround while UV doesn't support scripts directly in the pyproject.toml
# see: https://github.com/astral-sh/uv/issues/5903
cov-report = "scripts.scripts:cov_report"
cov = "scripts.scripts:cov"
# don't name it `mypy` otherwise `uv` will override the actual binary
mypy-check = "scripts.scripts:mypy"
test = "scripts.scripts:test"
test-cov = "scripts.scripts:test_cov"
[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"
28 changes: 0 additions & 28 deletions hooks/openfeature-hooks-opentelemetry/src/scripts/scripts.py

This file was deleted.

27 changes: 10 additions & 17 deletions providers/openfeature-provider-env-var/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
dev = [
"coverage[toml]>=7.10.0,<8.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=8.4.0,<9.0.0",
]

Expand All @@ -50,25 +51,17 @@ pretty = true
strict = true
disallow_any_generics = false

[tool.hatch.envs.hatch-test]
dependencies = [
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
"pytest",
]

[tool.coverage.run]
omit = [
"tests/**",
]

[project.scripts]
# workaround while UV doesn't support scripts directly in the pyproject.toml
# see: https://github.com/astral-sh/uv/issues/5903
cov-report = "scripts.scripts:cov_report"
cov = "scripts.scripts:cov"
# don't name it `mypy` otherwise `uv` will override the actual binary
mypy-check = "scripts.scripts:mypy"
test = "scripts.scripts:test"
test-cov = "scripts.scripts:test_cov"

[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"
28 changes: 0 additions & 28 deletions providers/openfeature-provider-env-var/src/scripts/scripts.py

This file was deleted.

19 changes: 10 additions & 9 deletions providers/openfeature-provider-flagd/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dev = [
"coverage[toml]>=7.10.0,<8.0.0",
"grpcio-health-checking>=1.74.0,<2.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=8.4.0,<9.0.0",
"pytest-bdd>=8.1.0,<9.0.0",
"testcontainers>=4.12.0,<5.0.0",
Expand Down Expand Up @@ -108,12 +109,12 @@ module = [
]
warn_unused_ignores = false

[project.scripts]
# workaround while UV doesn't support scripts directly in the pyproject.toml
# see: https://github.com/astral-sh/uv/issues/5903
cov-report = "scripts.scripts:cov_report"
cov = "scripts.scripts:cov"
# don't name it `mypy` otherwise `uv` will override the actual binary
mypy-check = "scripts.scripts:mypy"
test = "scripts.scripts:test"
test-cov = "scripts.scripts:test_cov"
[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"
28 changes: 0 additions & 28 deletions providers/openfeature-provider-flagd/src/scripts/scripts.py

This file was deleted.

19 changes: 10 additions & 9 deletions providers/openfeature-provider-flipt/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
dev = [
"coverage[toml]>=7.10.0,<8.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=8.4.0,<9.0.0",
"requests-mock>=1.12.0,<2.0.0",
"types-requests>=2.32.0,<3.0.0",
Expand Down Expand Up @@ -58,12 +59,12 @@ pretty = true
strict = true
disallow_any_generics = false

[project.scripts]
# workaround while UV doesn't support scripts directly in the pyproject.toml
# see: https://github.com/astral-sh/uv/issues/5903
cov-report = "scripts.scripts:cov_report"
cov = "scripts.scripts:cov"
# don't name it `mypy` otherwise `uv` will override the actual binary
mypy-check = "scripts.scripts:mypy"
test = "scripts.scripts:test"
test-cov = "scripts.scripts:test_cov"
[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"
28 changes: 0 additions & 28 deletions providers/openfeature-provider-flipt/src/scripts/scripts.py

This file was deleted.

19 changes: 10 additions & 9 deletions providers/openfeature-provider-ofrep/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
dev = [
"coverage[toml]>=7.10.0,<8.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=8.4.0,<9.0.0",
"requests-mock>=1.12.0,<2.0.0",
"types-requests>=2.32.0,<3.0.0",
Expand Down Expand Up @@ -64,12 +65,12 @@ pretty = true
strict = true
disallow_any_generics = false

[project.scripts]
# workaround while UV doesn't support scripts directly in the pyproject.toml
# see: https://github.com/astral-sh/uv/issues/5903
cov-report = "scripts.scripts:cov_report"
cov = "scripts.scripts:cov"
# don't name it `mypy` otherwise `uv` will override the actual binary
mypy-check = "scripts.scripts:mypy"
test = "scripts.scripts:test"
test-cov = "scripts.scripts:test_cov"
[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"
28 changes: 0 additions & 28 deletions providers/openfeature-provider-ofrep/src/scripts/scripts.py

This file was deleted.

26 changes: 13 additions & 13 deletions providers/openfeature-provider-unleash/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["uv_build~=0.8.0"]
requires = ["uv_build~=0.9.0"]
build-backend = "uv_build"

[project]
Expand Down Expand Up @@ -28,13 +28,13 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
[dependency-groups]
dev = [
"coverage[toml]>=7.10.0,<8.0.0",
"mypy[faster-cache]>=1.17.0,<2.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=8.4.0,<9.0.0",
"pytest-asyncio>=0.23.0",
"psycopg2-binary>=2.9.0,<3.0.0",
"testcontainers>=4.12.0,<5.0.0",
"types-requests>=2.31.0",
"ruff>=0.12.10",
"types-requests>=2.31.0,<3.0.0",
]

[tool.uv.build-backend]
Expand Down Expand Up @@ -132,12 +132,12 @@ max-statements = 30
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true

[project.scripts]
# workaround while UV doesn't support scripts directly in the pyproject.toml
# see: https://github.com/astral-sh/uv/issues/5903
cov-report = "scripts.scripts:cov_report"
cov = "scripts.scripts:cov"
# don't name it `mypy` otherwise `uv` will override the actual binary
mypy-check = "scripts.scripts:mypy"
test = "scripts.scripts:test"
test-cov = "scripts.scripts:test_cov"
[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"
Comment thread
gruebel marked this conversation as resolved.
Loading