diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3ac16ca9..e192a299d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,13 +17,13 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/ambv/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black name: Blacken - repo: https://github.com/PyCQA/bandit - rev: '1.8.0' + rev: '1.8.2' hooks: - id: bandit args: [-r] @@ -36,7 +36,7 @@ repos: # exclude: ^tests/.*$ - repo: https://github.com/SINTEF/ci-cd - rev: v2.8.3 + rev: v2.9.0 hooks: - id: docs-api-reference args: diff --git a/demo/vertical/plot_ontology.py b/demo/vertical/plot_ontology.py index 7155581c8..5252e250f 100755 --- a/demo/vertical/plot_ontology.py +++ b/demo/vertical/plot_ontology.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -"""Plots the user case ontology created with the script `define_ontology.py`. -""" +"""Plots the user case ontology created with the script `define_ontology.py`.""" from ontopy import World diff --git a/ontopy/utils.py b/ontopy/utils.py index 2a9248e8d..17a222300 100644 --- a/ontopy/utils.py +++ b/ontopy/utils.py @@ -1,5 +1,4 @@ -"""Some generic utility functions. -""" +"""Some generic utility functions.""" # pylint: disable=protected-access,invalid-name,redefined-outer-name # pylint: disable=import-outside-toplevel diff --git a/tests/ontopy_tests/test_patch.py b/tests/ontopy_tests/test_patch.py index 1712e4c65..10c1b41a6 100644 --- a/tests/ontopy_tests/test_patch.py +++ b/tests/ontopy_tests/test_patch.py @@ -1,6 +1,4 @@ -"""Tests Owlready2 patches implemented in ontopy/patch.py - -""" +"""Tests Owlready2 patches implemented in ontopy/patch.py""" import re diff --git a/tools/emmocheck b/tools/emmocheck index e7c5d161f..bca75c7f7 100755 --- a/tools/emmocheck +++ b/tools/emmocheck @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -"""Tool for checking that ontologies conform to EMMO conventions. -""" +"""Tool for checking that ontologies conform to EMMO conventions.""" import sys import os diff --git a/tools/ontoconvert b/tools/ontoconvert index 8d9e0dc69..de0f541af 100755 --- a/tools/ontoconvert +++ b/tools/ontoconvert @@ -1,6 +1,5 @@ #!/usr/bin/env python -"""Converts file format of input ontology and write it to output file(s). -""" +"""Converts file format of input ontology and write it to output file(s).""" import argparse import warnings