From: Joerg Behrmann Date: Tue, 19 Sep 2023 08:39:29 +0000 (+0200) Subject: build: add section to configure ruff X-Git-Tag: v18~51^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bea16fd0c2a32922a317c95351b8d07526897678;p=thirdparty%2Fmkosi.git build: add section to configure ruff ruff [1] is a new very fast linter that combines rules from many commonly used linters like pyflakes, isort or pyupgrade. This commit uses the rules from pycodestyle (enabeled by default), pyflakes, isort and pyupgrade and reintroduces the 119 character line length limit that was used in the past with black and flake8, but was lost when black was disabled. [1] https://github.com/astral-sh/ruff --- diff --git a/pyproject.toml b/pyproject.toml index 5fd5f9b02..af085d2f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,3 +68,8 @@ strict_equality = true [[tool.mypy.overrides]] module = ["argcomplete"] ignore_missing_imports = true + +[tool.ruff] +target-version = "py39" +line-length = 119 +select = ["E", "F", "I", "UP"]