Skip to content

Commit

Permalink
tooling: drop flake8, configure ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Aug 24, 2024
1 parent 6dbb9ac commit b9fe853
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
16 changes: 10 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ gcalcli = "gcalcli.cli:main"
[tool.distutils.bdist_wheel]
universal = true

[tool.isort]
profile = "google"
force_single_line = false
float_to_top = true
combine_star = true
py_version = 3
[tool.ruff]
line-length = 80

[tool.ruff.lint]
# Enable Errors, Warnings, Flakes
select = ["E", "W", "F"]

[tool.ruff.format]
# Permit mixed quote style, project currently uses a mix of both.
quote-style = "preserve"

[[tool.mypy.overrides]]
module = ["gcalcli"]
Expand Down
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ commands=py.test -vv --cov=./gcalcli --pyargs tests {posargs}
[testenv:lint]
description = run linters
skip_install = true
deps = flake8
commands = flake8
deps = ruff
commands = ruff check

[testenv:type]
description = run type checks
Expand Down

0 comments on commit b9fe853

Please sign in to comment.