Skip to content

Commit

Permalink
Tooling: drop flake8, configure ruff and editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Aug 24, 2024
1 parent d60ae29 commit 00274d8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*.py]
indent_style = space
indent_size = 4
max_line_length = 80
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,5 +16,5 @@ 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

0 comments on commit 00274d8

Please sign in to comment.