diff --git a/display/d.text/test.py b/display/d.text/test.py index c68449ed7be..6e7fe676a65 100755 --- a/display/d.text/test.py +++ b/display/d.text/test.py @@ -56,8 +56,8 @@ def text(in_text): rotate(i * 10) color(colors[i % len(colors)]) xy( - (80 + 10 * math.cos(i * 10 / 180 * 3.141593)), - (50 + 10 * 640 / 480 * math.sin(i * 10 / 180 * 3.141593)), + (80 + 10 * math.cos(i * 10 / 180 * math.pi)), + (50 + 10 * 640 / 480 * math.sin(i * 10 / 180 * math.pi)), ) text(fonts[int(i % len(fonts))]) diff --git a/pyproject.toml b/pyproject.toml index 64b7c033708..b4ff3583cf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -152,7 +152,6 @@ ignore = [ "FBT002", # boolean-default-value-positional-argument "FBT003", # boolean-positional-value-in-call "FURB118", # reimplemented-operator - "FURB152", # math-constant "I001", # unsorted-imports "ISC003", # explicit-string-concatenation "PERF203", # try-except-in-loop @@ -354,6 +353,7 @@ ignore = [ "gui/wxpython/web_services/widgets.py" = ["INT003"] "gui/wxpython/wxgui.py" = ["INT002"] "gui/wxpython/wxplot/profile.py" = ["NPY001"] +"lib/imagery/testsuite/test_imagery_sigsetfile.py" = ["FURB152"] "lib/init/grass.py" = ["INT003"] "python/grass/__init__.py" = ["PYI056"] "python/grass/exp*/tests/grass_script_mapset_session_test.py" = ["SIM117"]