Skip to content

Commit 2c60e18

Browse files
committed
Merge branch 'develop' into add_nightly_supply_chain_review
2 parents cb3e3f6 + 2a5e1e4 commit 2c60e18

32 files changed

+22450
-405
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
matrix:
4040
python-version:
4141
- '3.9'
42-
- '3.12'
42+
- '3.13'
4343

4444
steps:
4545
- uses: actions/checkout@v4

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
matrix:
3131
python-version:
3232
- '3.9'
33-
- '3.12'
33+
- '3.13'
3434

3535
steps:
3636
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 24.10.0
3+
rev: 25.1.0
44
hooks:
55
- id: black
66
- repo: https://github.com/pycqa/flake8
7-
rev: 7.1.1
7+
rev: 7.2.0
88
hooks:
99
- id: flake8
1010
- repo: https://github.com/pycqa/isort
11-
rev: 5.13.2
11+
rev: 6.0.1
1212
hooks:
1313
- id: isort
1414
name: isort (python)

case_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
#
1515
# We would appreciate acknowledgement if the software is used.
1616

17-
__version__ = "0.16.0"
17+
__version__ = "0.17.0"

case_utils/case_file/__init__.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
This module creates a graph object that provides a basic UCO characterization of a single file. The gathered metadata is among the more "durable" file characteristics, i.e. characteristics that would remain consistent when transferring a file between locations.
1919
"""
2020

21-
__version__ = "0.6.0"
21+
__version__ = "0.7.0"
2222

2323
import argparse
2424
import datetime
@@ -38,7 +38,6 @@
3838
NS_UCO_CORE,
3939
NS_UCO_OBSERVABLE,
4040
NS_UCO_TYPES,
41-
NS_UCO_VOCABULARY,
4241
NS_XSD,
4342
)
4443

@@ -228,14 +227,9 @@ def create_file_node(
228227

229228
l_hash_method: rdflib.Literal
230229
if key in ("sha3_256", "sha3_512"):
231-
l_hash_method = rdflib.Literal(
232-
key.replace("_", "-").upper(),
233-
datatype=NS_UCO_VOCABULARY.HashNameVocab,
234-
)
230+
l_hash_method = rdflib.Literal(key.replace("_", "-").upper())
235231
else:
236-
l_hash_method = rdflib.Literal(
237-
key.upper(), datatype=NS_UCO_VOCABULARY.HashNameVocab
238-
)
232+
l_hash_method = rdflib.Literal(key.upper())
239233

240234
hash_value: str = getattr(successful_hashdict, key)
241235
l_hash_value = rdflib.Literal(hash_value.upper(), datatype=NS_XSD.hexBinary)
@@ -300,7 +294,6 @@ def main() -> None:
300294
graph.namespace_manager.bind("uco-core", NS_UCO_CORE)
301295
graph.namespace_manager.bind("uco-observable", NS_UCO_OBSERVABLE)
302296
graph.namespace_manager.bind("uco-types", NS_UCO_TYPES)
303-
graph.namespace_manager.bind("uco-vocabulary", NS_UCO_VOCABULARY)
304297
graph.namespace_manager.bind("xsd", NS_XSD)
305298

306299
output_format = None

case_utils/case_sparql_construct/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
This script executes a SPARQL CONSTRUCT query, returning a graph of the generated triples.
1919
"""
2020

21-
__version__ = "0.2.6"
21+
__version__ = "0.2.7"
2222

2323
import argparse
2424
import logging

case_utils/case_sparql_select/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
Should a more complex query be necessary, an outer, wrapping SELECT query would let this script continue to function.
3030
"""
3131

32-
__version__ = "0.5.2"
32+
__version__ = "0.5.3"
3333

3434
import argparse
3535
import binascii

case_utils/case_validate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
details.)
3333
"""
3434

35-
__version__ = "0.5.0"
35+
__version__ = "0.6.0"
3636

3737
import argparse
3838
import logging

case_utils/inherent_uuid.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
>>> assert str(n_file_facet)[-36:] == str(n_file_facet_2)[-36:]
5858
"""
5959

60-
__version__ = "0.1.2"
60+
__version__ = "0.2.0"
6161

6262
import binascii
6363
import re
@@ -66,16 +66,16 @@
6666

6767
from rdflib import Literal, Namespace, URIRef
6868

69-
from case_utils.namespace import NS_UCO_CORE, NS_UCO_VOCABULARY, NS_XSD
69+
from case_utils.namespace import NS_UCO_CORE, NS_XSD
7070

71-
L_MD5 = Literal("MD5", datatype=NS_UCO_VOCABULARY.HashNameVocab)
72-
L_SHA1 = Literal("SHA1", datatype=NS_UCO_VOCABULARY.HashNameVocab)
73-
L_SHA256 = Literal("SHA256", datatype=NS_UCO_VOCABULARY.HashNameVocab)
74-
L_SHA3_256 = Literal("SHA3-256", datatype=NS_UCO_VOCABULARY.HashNameVocab)
75-
L_SHA3_512 = Literal("SHA3-512", datatype=NS_UCO_VOCABULARY.HashNameVocab)
76-
L_SHA384 = Literal("SHA384", datatype=NS_UCO_VOCABULARY.HashNameVocab)
77-
L_SHA512 = Literal("SHA512", datatype=NS_UCO_VOCABULARY.HashNameVocab)
78-
L_SSDEEP = Literal("SSDEEP", datatype=NS_UCO_VOCABULARY.HashNameVocab)
71+
L_MD5 = Literal("MD5")
72+
L_SHA1 = Literal("SHA1")
73+
L_SHA256 = Literal("SHA256")
74+
L_SHA3_256 = Literal("SHA3-256")
75+
L_SHA3_512 = Literal("SHA3-512")
76+
L_SHA384 = Literal("SHA384")
77+
L_SHA512 = Literal("SHA512")
78+
L_SSDEEP = Literal("SSDEEP")
7979

8080
# Key: hashMethod literal.
8181
# Value: Tuple.

0 commit comments

Comments
 (0)