Skip to content

Commit

Permalink
Ruff Linter error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Nov 8, 2024
1 parent 3f6d288 commit 7eaf5be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ruff.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Lint with ruff
run: |
ruff check owlapy --line-length=200
- name: Test with pytest
run: |
wget https://files.dice-research.org/projects/Ontolearn/KGs.zip
Expand Down
11 changes: 1 addition & 10 deletions owlapy/util_owl_static_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,5 @@ def save_owl_class_expressions(expressions: OWLClassExpression | List[OWLClassEx
for th, i in enumerate(expressions):
cls_a = OWLClass(IRI.create(namespace, str(th)))
equivalent_classes_axiom = OWLEquivalentClassesAxiom([cls_a, i])
try:
ontology.add_axiom(equivalent_classes_axiom)
except AttributeError:
print(traceback.format_exc())
print("Exception at creating OWLEquivalentClassesAxiom")
print(equivalent_classes_axiom)
print(cls_a)
print(i)
print(expressions)
exit(1)
ontology.add_axiom(equivalent_classes_axiom)
ontology.save(path=path, inplace=False, rdf_format=rdf_format)
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"pandas>=1.5.0",
"requests>=2.32.3",
"rdflib>=6.0.2",
"ruff>=0.7.2",
"parsimonious>=0.8.1",
"pytest>=8.1.1",
"sortedcontainers>=2.4.0",
Expand Down

0 comments on commit 7eaf5be

Please sign in to comment.