Andrej730
0b93694097
black .
2025-09-30 13:04:48 +05:00
daniel-augusto
0c81b41ac7
Update highlight of block code
2025-09-29 23:30:39 +10:00
Andrej730
9a38455465
black .
2025-09-12 20:11:06 +05:00
Thomas Krijnen
ced52862a1
Fix inst id based line lookup in log_internal_cpp_errors()
2025-09-12 16:25:37 +02:00
Thomas Krijnen
231d047ce9
Capture SPF specific errors in validation test
2025-09-10 09:40:20 +02:00
Thomas Krijnen
8ca9bd63dc
read-only validate
2025-09-10 09:10:03 +02:00
Thomas Krijnen
ce02e7a2a0
HeaderEntity does not exist anymore
2025-08-31 15:51:58 +02:00
Andrej730
fc10915d2b
ifcopenshell.validate - remove simple_spf dependency ( 689289b)
...
Moved it to `TYPE_CHECKING` since it's currently used just for typing.
Was breaking validation in Bonsai since it doesn't provide all submodules with IfcOpenShell https://github.com/IfcOpenShell/IfcOpenShell/issues/6723#issuecomment-3016223786
Also added a simple test so github workflow would catch a simple error like this.
2025-06-30 18:08:34 +05:00
Andrej730
a76af3c2ba
validate IfcApplication.UR2 - check that both version and app name are not None ( 263d238f9)
...
Otherwise it will be caught by regular validation checks
2025-06-23 19:06:15 +05:00
Andrej730
263d238f9c
ifcopenshell.validate - fix IfcApplication.UR2 validation
...
Previously we were checking for just ApplicationFullName, without considering Version.
https://github.com/buildingSMART/IFC4.3.x-development/issues/966
2025-06-20 18:48:37 +05:00
Andrej730
c6fd02869b
ifcopenshell.validate - check json_logger more explicitly
2025-06-20 18:48:37 +05:00
Andrej730
b4d41790a5
ifcopenshell.validate - fix mixed up rule names (IfcApplication.UR)
2025-06-20 18:48:37 +05:00
Andrej730
90ab846a18
typing
2025-06-20 18:48:34 +05:00
Andrej
02d359d0e6
Fix Ruff UP035 (also deprecated annotation symbols)
2025-06-09 18:03:19 +05:00
Andrej
baf3edca13
ifcopenshell.validate - fix Python 3.9 support ( 25eecde)
2025-05-29 19:14:42 +05:00
Andrej
feebc701fa
Fix Ruff UP008 (super-call-with-parameters)
...
https://docs.astral.sh/ruff/rules/super-call-with-parameters/
2025-05-28 18:24:13 +05:00
Andrej730
b0f2785e99
black .
2025-05-06 11:11:07 +05:00
Geert Hesselink
5d920d5e31
header_entity type -> attr check
2025-05-05 20:54:19 +02:00
Geert Hesselink
2b522b71cb
hasattr to isinstance()
2025-05-05 20:54:19 +02:00
Geert Hesselink
d00c3735ec
Update src/ifcopenshell-python/ifcopenshell/validate.py
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2025-05-05 20:54:19 +02:00
Geert Hesselink
bbdc9c45dd
use repr(), compatible f.header
2025-05-05 20:54:19 +02:00
Geert Hesselink
5eb9cdf40d
handle header entity string reversal
2025-05-05 20:54:19 +02:00
Geert Hesselink
689289bb60
validate ifcopenshell.simple_spf.file
2025-05-05 20:54:19 +02:00
Thomas Krijnen
84568f34f0
validate.py be more specific in distinguishing type decl and entity refs
2025-05-05 14:20:47 +02:00
Andrej730
fd423f21e2
ifcopenshell.validate - validate IfcApplications
2025-03-28 17:59:07 +05:00
Andrej730
32608ff194
py -m ifcopenshell.validate to use argparse
...
So command would fail if no arguments provided and there would hints on how to use it.
2025-02-17 17:58:45 +05:00
Thomas Krijnen
da78a1107d
Fix validation error in non-aggregate aggregate #5830
2024-11-30 17:49:29 +01:00
Andrej730
ab069f431a
typing
2024-11-27 18:30:37 +05:00
Andrej730
25eecded4e
ifcopenshell.validate to validate guids #5808
2024-11-27 15:42:03 +05:00
Thomas Krijnen
96d6d5bfbe
Fix validation false positive on Number #5752
2024-11-19 12:49:10 +01:00
Thomas Krijnen
8932d8758e
validate.py distinguish internal errors from invalid files
2024-11-11 11:09:26 +01:00
Andrej730
3c69fffb19
ifcopenshell.validate fix missing space in indentation 😅
2024-09-03 18:38:22 +05:00
Andrej730
e50a90cc9f
ifcopenshell.validate return code 1 in case of some file is invalid
2024-09-02 17:04:54 +05:00
Andrej730
5f5ab10b35
ifcopenshell.validate to validate ifc header #4119
2024-09-02 17:04:54 +05:00
Andrej730
0e791c7dfd
Fix ifcopenshell.validate missing output in some cases after 07a0b4f
...
Apparently adding LogDetectionHandler disabled default handler that prints the output.
2024-09-02 17:04:54 +05:00
Thomas Krijnen
d80bcd1a94
Unify variant storage ( #5118 )
2024-08-23 20:29:07 +02:00
Andrej730
dc8912c128
-m ifcopenshell.validate not to print an empty line if file is valid
2024-06-27 18:26:49 +05:00
Andrej730
07a0b4fe2d
-m ifcopenshell.validate to print a message if file is valid
2024-06-27 18:26:49 +05:00
Dion Moult
89c4cbeb05
Drop support for Python 2.
2024-05-07 12:17:46 +10:00
Andrej730
f34aef1ebf
validate - add examples
2024-04-08 13:56:52 +05:00
Andrej730
bf9bddc867
ifcopenshell.validate to check unique guids (IfcRoot.UR1)
2024-04-02 17:17:23 +05:00
Andrej730
20a2fda066
typing
2024-04-02 15:45:42 +05:00
Andrej730
f03afb20f3
validate.py - black format
2024-04-02 15:45:42 +05:00
Thomas Krijnen
81b4e42ca2
Use schema_identifier for schema and express rule validation. See #3126
2023-10-12 10:37:44 +02:00
Thomas Krijnen
a2bb015c79
Update validate.py - catch some runtime errors
2023-08-30 13:48:31 +02:00
Thomas Krijnen
f0bb19d48d
Fixes to validation of selected simple type / enum
2023-04-13 13:16:48 +02:00
Thomas Krijnen
352d6b5ef9
Attempt load schema from cwd (IS THIS DANGEROUS?)
2023-04-10 20:31:56 +02:00
Thomas Krijnen
33415fa1af
#2685 Fix AttributeError
2023-04-07 16:02:11 +02:00
Thomas Krijnen
5fcfbac4a3
Update validate.py
2023-03-19 13:24:27 +01:00
Thomas Krijnen
00b18f67cf
#2685 indeterminate upper bound formatting
2023-03-19 12:46:15 +01:00