diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 416ee6b..21751c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,6 @@ repos: src/actinia_core.egg-info/ ) - repo: https://github.com/mundialis/github-workflows - rev: 1.5.0 + rev: 1.6.0 hooks: - id: linting diff --git a/ruff.toml b/ruff.toml index cf23929..23efad3 100644 --- a/ruff.toml +++ b/ruff.toml @@ -13,6 +13,7 @@ # PLR2004 magic-value-comparison (unnamed numerical constants ("magic") values) # PLR6301 Method could be a function, class method, or static method # PLW0603 (checks for use of) global-statement +# RUF067 `__init__` module should only contain docstrings and re-exports # S104 Possible binding to all interfaces # S107 hardcoded-password-default # S113 Probable use of `requests` call without timeout @@ -25,6 +26,7 @@ lint.ignore = ["ANN001", "ANN201", "ANN202", "E501", "FA102", "N802", "N816", "P "tests/testsuite.py" = [ "PLC0415",] "src/actinia_cloudevent_plugin/resources/logging.py" = ["A005",] "src/actinia_cloudevent_plugin/resources/config.py" = ["PLR0912", "SIM102","S105"] +"src/actinia_cloudevent_plugin/__init__.py" = ["RUF067",] "tests/integrationtests/test_cloudevent.py" = ["PLR2004",] "tests/cloudevent_receiver_server.py" = ["S104"] "tests/integrationtests/test_hook.py" = ["PLR2004",] diff --git a/src/actinia_cloudevent_plugin/main.py b/src/actinia_cloudevent_plugin/main.py index 69c0fe7..ab0cd67 100644 --- a/src/actinia_cloudevent_plugin/main.py +++ b/src/actinia_cloudevent_plugin/main.py @@ -50,6 +50,6 @@ # call this for development only with: # `python3 -m actinia_cloudevent_plugin.main` log.debug("starting app in development mode...") - # ruff: S201 :Use of `debug=True` in Flask app detected + # ignore ruff: S201 :Use of `debug=True` in Flask app detected flask_app.run(debug=True, use_reloader=False) # noqa: S201 # for production environent use application in wsgi.py