From dcd88b6cdd37e2912bf8a778d533b3be55beb5d8 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 14 Jul 2026 15:11:56 +0500 Subject: [PATCH] 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 2716850215..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.59 + 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 46f5a8c022..8a01875d93 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.59", - "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