diff --git a/.prospector.yml b/.prospector.yml index b828777b..027de017 100644 --- a/.prospector.yml +++ b/.prospector.yml @@ -65,3 +65,12 @@ bandit: run: true disable: - B101 # Use of assert detected. + +ruff: + run: true + options: + fix: true + disable: + - E501 # line too long + - S101 # Use of assert detected + - SIM105 # suppressible-exception (slow code) diff --git a/docs/profiles.rst b/docs/profiles.rst index 2007c1b9..59273f2b 100644 --- a/docs/profiles.rst +++ b/docs/profiles.rst @@ -282,7 +282,7 @@ Individual Configuration Options Each tool can be individually configured with a section beginning with the tool name (in lowercase). Valid values are ``bandit``, ``dodgy``, ``frosted``, ``mccabe``, ``mypy``, ``pydocstyle``, ``pycodestyle``, -``pyflakes``, ``pylint``, ``pyright``, ``pyroma`` and ``vulture``. +``pyflakes``, ``pylint``, ``pyright``, ``pyroma``, ``vulture`` and ``ruff``. Enabling and Disabling Tools ............................ @@ -416,17 +416,26 @@ The available options are: +----------------+------------------------+----------------------------------------------+ | pyright | venv-path | Directory that contains virtual environments | +----------------+------------------------+----------------------------------------------+ +| ruff | -anything- | Options pass to ruff as argument | +| | | `True` => --