@@ -37,6 +37,8 @@ line-length = 99
3737target-version = " py37"
3838
3939[tool .ruff .lint ]
40+ preview = true
41+ explicit-preview-rules = true
4042select = [
4143 " A" , # flake8-builtins: prevent shadowing builtins
4244 " ASYNC" , # flake8-async
@@ -45,6 +47,10 @@ select = [
4547 " C90" , # McCabe cyclomatic complexity
4648 " DTZ" , # flake8-datetimez
4749 " E" , # pycodestyle
50+ " E225" , # (preview) missing whitespace around operator
51+ " E261" , # (preview) at least two spaces before inline comment
52+ " E262" , # (preview) inline comment must start with '# '
53+ " E265" , # (preview) block comment must start with '# '
4854 " EXE" , # flake8-executable
4955 " F" , # Pyflakes
5056 " G" , # flake8-logging-format
@@ -83,6 +89,9 @@ ignore = [
8389 " PLW0603" , # global statement
8490 " PLW2901" , # overwriting loop variable
8591 " RUF012" , # mutable class variable
92+ " RUF001" , # ambiguous unicode in string (µ for microtesla is intentional)
93+ " RUF002" , # ambiguous unicode in docstring
94+ " RUF003" , # ambiguous unicode in comment
8695 " RUF100" , # unused noqa
8796 " SIM101" , # merge isinstance calls (micropython compat)
8897 " SIM105" , # contextlib.suppress not available in micropython
0 commit comments