black and ruff

This commit is contained in:
Bruno Postle
2026-02-11 18:22:45 +00:00
parent 060afb94b5
commit fecd4a810a
8 changed files with 11 additions and 16 deletions
+1 -2
View File
@@ -1,5 +1,3 @@
import pytest
import ifcopenshell
import ifcopenshell.api.aggregate
import ifcopenshell.api.owner.settings
@@ -8,6 +6,7 @@ import ifcopenshell.api.pset
import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.unit
import pytest
@pytest.fixture
+1 -2
View File
@@ -1,9 +1,8 @@
import json
from typing import Literal, Optional, Union
import pytest
import ifcopenshell
import pytest
from ifcedit.coerce import coerce_value
+3 -1
View File
@@ -78,7 +78,9 @@ class TestRunCommand:
def test_output_to_different_file(self, model_file, tmp_path):
output = str(tmp_path / "output.ifc")
stdout, stderr, rc = run_ifcedit("run", model_file, "root.create_entity", "-o", output, "--ifc_class", "IfcSlab")
stdout, stderr, rc = run_ifcedit(
"run", model_file, "root.create_entity", "-o", output, "--ifc_class", "IfcSlab"
)
assert rc == 0, f"stderr: {stderr}"
data = json.loads(stdout)
assert data["ok"] is True
+2 -3
View File
@@ -4,11 +4,10 @@ import json
from typing import Any
import ifcopenshell
from ifcquery import clash as clash_mod
from ifcquery import info, relations, select, summary, tree
from ifcedit.discover import function_docs, list_functions, list_modules
from ifcedit.run import run_api
from ifcquery import clash as clash_mod
from ifcquery import info, relations, select, summary, tree
from mcp.server.fastmcp import FastMCP
server = FastMCP(
+1 -2
View File
@@ -1,5 +1,3 @@
import pytest
import ifcopenshell
import ifcopenshell.api.aggregate
import ifcopenshell.api.owner.settings
@@ -7,6 +5,7 @@ import ifcopenshell.api.project
import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.unit
import pytest
import ifcmcp.server as server_mod
+1 -2
View File
@@ -1,5 +1,3 @@
import pytest
import ifcopenshell
import ifcopenshell.api.aggregate
import ifcopenshell.api.owner.settings
@@ -7,6 +5,7 @@ import ifcopenshell.api.project
import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.unit
import pytest
@pytest.fixture
+2 -3
View File
@@ -4,9 +4,6 @@ import subprocess
import sys
import tempfile
import numpy as np
import pytest
import ifcopenshell
import ifcopenshell.api.aggregate
import ifcopenshell.api.context
@@ -16,6 +13,8 @@ import ifcopenshell.api.project
import ifcopenshell.api.root
import ifcopenshell.api.spatial
import ifcopenshell.api.unit
import numpy as np
import pytest
from ifcquery.clash import clash
-1
View File
@@ -6,7 +6,6 @@ import tempfile
import ifcopenshell
import ifcopenshell.api.project
import pytest