Skip to content

Commit 60d30d5

Browse files
Add uv-secure (#327)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent e731cb5 commit 60d30d5

File tree

4 files changed

+388
-3
lines changed

4 files changed

+388
-3
lines changed

.github/workflows/lint-and-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ jobs:
6161
version: PATH
6262
working-directory: src/
6363
python-version: ${{ matrix.python-version }}
64+
65+
uv-secure:
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v4
69+
- name: Set up uv
70+
uses: astral-sh/setup-uv@v5
71+
with:
72+
enable-cache: true
73+
cache-dependency-glob: "uv.lock"
74+
- run: uvx --with uvloop uv-secure
75+
6476
Build:
6577
runs-on: ${{ matrix.os }}
6678
strategy:

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repos: [] # TODO: Remove this file once pre-commit.ci is disabled

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ dev = [
5353
"mypy[faster-cache] >=1.16",
5454
"pyright[nodejs] >=1.1.400", # reportPrivateImportUsage behaviour change
5555
"ruff >=0.11.13",
56+
"uv-secure",
57+
"uvloop; sys_platform != 'win32'",
58+
"winloop; sys_platform == 'win32'",
5659
#
5760
# Types
5861
"scipy-stubs >=1.14.1.1",
@@ -78,6 +81,9 @@ dependency-metadata = [
7881
[tool.uv.sources]
7982
keyboard = { git = "https://github.com/boppreh/keyboard.git" } # Fix install on macos and linux-ci https://github.com/boppreh/keyboard/pull/568
8083

84+
[tool.uv-secure.maintainability_criteria]
85+
forbid_yanked = true
86+
8187
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
8288
[tool.pyright]
8389
typeCheckingMode = "strict"

0 commit comments

Comments
 (0)