From 7ea926484b8c8b59f43984999d26e5a634410ca2 Mon Sep 17 00:00:00 2001 From: Tim Monko Date: Mon, 1 Dec 2025 22:04:02 -0600 Subject: [PATCH] oidc and ruff config --- .github/workflows/test_and_deploy.yml | 6 ++++- pyproject.toml | 33 +++------------------------ 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index d721f8b..5c3aef6 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -24,6 +24,8 @@ jobs: name: ${{ matrix.platform }} py${{ matrix.python-version }} runs-on: ${{ matrix.platform }} timeout-minutes: 30 + permissions: + id-token: write strategy: matrix: platform: [ubuntu-latest, windows-latest, macos-latest] @@ -65,7 +67,9 @@ jobs: PLATFORM: ${{ matrix.platform }} - name: Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 + with: + use_oidc: true deploy: # this will run when you have tagged a commit, starting with "v*" diff --git a/pyproject.toml b/pyproject.toml index a4de111..2f6f73b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ ndev-sampledata = "ndev_sampledata:napari.yaml" "User Support" = "https://github.com/ndev-kit/ndev-sampledata/issues" [build-system] -requires = ["setuptools>=77.0.3", "wheel", "setuptools_scm"] +requires = ["setuptools>=77.0.3", "setuptools_scm"] build-backend = "setuptools.build_meta" [tool.setuptools] @@ -71,12 +71,9 @@ where = ["src"] write_to = "src/ndev_sampledata/_version.py" fallback_version = "0.0.1+nogit" -[tool.black] -line-length = 79 -target-version = ['py310', 'py311', 'py312', 'py313'] - [tool.ruff] line-length = 79 +format.quote-style = "single" lint.select = [ "E", "F", "W", #flake8 "UP", # pyupgrade @@ -91,31 +88,7 @@ lint.select = [ "SIM", # flake8-simplify ] lint.ignore = [ - "E501", # line too long. let black handle this + "E501", # line too long. handled by formatter "UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this. ] - -exclude = [ - ".bzr", - ".direnv", - ".eggs", - ".git", - ".mypy_cache", - ".pants.d", - ".ruff_cache", - ".svn", - ".tox", - ".venv", - "__pypackages__", - "_build", - "buck-out", - "build", - "dist", - "node_modules", - "venv", - "*vendored*", - "*_vendor*", -] - -target-version = "py310" fix = true