* Ruff fixes

* Ruff fixes

* from __future__ import annotations breaks MicroPython

* noqa: FURB188 because there is no str.replacesuffix() in MicroPython

* Add ruff to pre-commit
This commit is contained in:
Christian Clauss
2025-02-20 09:43:09 +01:00
committed by GitHub
parent 0366e48fad
commit 46239caa19
20 changed files with 117 additions and 100 deletions

View File

@@ -1,6 +1,6 @@
import numpy
import matplotlib
import numpy as np
import matplotlib as mpl
# just do something with the packages
print(len(dir(numpy)))
print(len(dir(matplotlib)))
print(len(dir(np)))
print(len(dir(mpl)))

View File

@@ -4,4 +4,4 @@ def runtime_version():
return sys.version
__export__ = ['runtime_version']
__export__ = ["runtime_version"]