Skip to content

Commit

Permalink
Run lints via tox
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Mar 31, 2024
1 parent bd3b547 commit ca56934
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit ca56934

Please sign in to comment.