From 79aa36b75106782dd794c59ec9953802c962c24f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 22 Jul 2026 12:29:49 +0500 Subject: [PATCH] downstream: pyproject: Move tool deps from to requirements-tools.txt Because uv was always trying to install when starting a venv in `ifcopenshell` folder, though they might be already available globally. And also they were listed twice - in pyproject and in the ci-lint.yml, now there's a single source of truth. --- .github/workflows/ci-lint.yaml | 5 +---- pyproject.toml | 7 ------- requirements-tools.txt | 5 +++++ 3 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 requirements-tools.txt diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml index 677ec10c25..b1098e8607 100644 --- a/.github/workflows/ci-lint.yaml +++ b/.github/workflows/ci-lint.yaml @@ -27,10 +27,7 @@ jobs: - name: Install dependencies run: | curl -LsSf https://astral.sh/uv/install.sh | sh - uv tool install ruff - uv tool install black - uv tool install poethepoet - uv tool install ty==0.0.34 + cat requirements-tools.txt | xargs -L1 uv tool install # black doesn't catch all syntax errors, so we check them explicitly. - name: Check syntax errors diff --git a/pyproject.toml b/pyproject.toml index 37aed2dded..69075990e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,6 @@ [project] name = "IfcOpenShell" version = "0.0.0" -dependencies = [ - "black==26.3.1", - "ruff==0.15.12", - "poethepoet", - "ty==0.0.32", - "gersemi==0.26.1", -] [tool.black] line-length = 120 diff --git a/requirements-tools.txt b/requirements-tools.txt new file mode 100644 index 0000000000..33a2505707 --- /dev/null +++ b/requirements-tools.txt @@ -0,0 +1,5 @@ +black==26.3.1 +ruff==0.15.12 +poethepoet +ty==0.0.59 +gersemi==0.26.1