From ca569344368b26747891c9ed36a0d50dc88e9041 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Sun, 31 Mar 2024 17:54:11 +0200 Subject: [PATCH] Run lints via tox --- pyproject.toml | 7 ++++++- tox.ini | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f463c81..e0caafdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,13 +38,18 @@ dependencies = [ dynamic = ["version"] [project.optional-dependencies] +lint = [ + "ruff", + "mypy", + "types-pytz", + "types-python-dateutil", +] test = [ "freezegun", "hypothesis", "pytest", "pytest-cov", "pytest-runner", - "ruff", ] docs = [ "sphinx-click", diff --git a/tox.ini b/tox.ini index 46387c26..9f1fab2f 100644 --- a/tox.ini +++ b/tox.ini @@ -15,3 +15,10 @@ extras = test,repl [testenv:pyicu] deps = pyicu + +[testenv:lint] +extras = lint +commands = + ruff check --fix --exit-non-zero-on-fix + ruff format --diff + mypy .