From 986862328030b85296e99a4b30acdcd67298816b Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Thu, 21 Mar 2024 17:05:46 +0000 Subject: [PATCH] Updates for ruff warnings --- pyproject.toml | 4 +++- tox.ini | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f5918e..afc7d6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,8 +39,10 @@ target-version = ['py38'] isort = true [tool.ruff] -select = ["E", "F", "B", "UP"] target-version = "py38" + +[tool.ruff.lint] +select = ["E", "F", "B", "UP"] # Exceptions: # B9 flake8-bugbear opinionated warnings # E501 is line length (delegated to black) diff --git a/tox.ini b/tox.ini index 0f66acd..896da51 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ envlist = lint, mypy,test [testenv] commands = - lint: ruff . + lint: ruff check . lint: flake8 . mypy: mypy rfparser/ test: pytest