diff --git a/.github/actions/setup-python-env/action.yml b/.github/actions/setup-python-env/action.yml index 2462fdb..73ce559 100644 --- a/.github/actions/setup-python-env/action.yml +++ b/.github/actions/setup-python-env/action.yml @@ -9,7 +9,7 @@ inputs: uv-version: description: "uv version to use" required: true - default: "0.5.2" + default: "0.5.6" runs: using: "composite" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c6cde2..5bed0e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: - name: Run checks run: make check - tests-and-type-check: + run-tests: runs-on: ubuntu-latest strategy: matrix: @@ -47,6 +47,3 @@ jobs: - name: Run tests run: uv run pytest - - - name: Check typing - run: uv run mypy diff --git a/Makefile b/Makefile index d0edf76..40f6811 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ check: ## Run code quality tools. @echo "🚀 Linting code: Running pre-commit" @uv run pre-commit run -a @echo "🚀 Static type checking: Running mypy" - @uv run mypy + @uv run mypy src/ .PHONY: test test: ## Test the code with pytest diff --git a/pyproject.toml b/pyproject.toml index 11c319f..3e1b5eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -version = "0.2.0" +version = "0.2.0.dev0" name = "odc-loader" description = "Tooling for constructing xarray objects from parsed metadata" readme = "README.md" @@ -45,11 +45,10 @@ build-backend = "flit_core.buildapi" name = "odc.loader" [tool.mypy] -python_version = "3.10" +python_version = "3.9" ignore_missing_imports = true allow_redefinition = true -explicit_package_bases = true # work with the 'odc' namespace package -files = ["odc"] +show_error_codes = true [tool.isort] diff --git a/uv.lock b/uv.lock index fd9cfaf..5a4fac8 100644 --- a/uv.lock +++ b/uv.lock @@ -477,7 +477,7 @@ wheels = [ [[package]] name = "odc-loader" -version = "0.2.0" +version = "0.2.0.dev0" source = { editable = "." } dependencies = [ { name = "affine" },