diff --git a/.editorconfig b/.editorconfig index 9b0cbdc..3f3789f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,9 @@ root = true +[*.py] +indent_style = space +indent_size = 4 +max_line_length = 80 + [*.{yml,yaml}] indent_size = 2 diff --git a/pyproject.toml b/pyproject.toml index c788815..efe71ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 6eb7126..0000000 --- a/setup.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[flake8] -import-order-style = google -exclude = - .git, - __pycache__, - venv, - .env, - .tox, - .venv diff --git a/tox.ini b/tox.ini index a4d197d..9559284 100644 --- a/tox.ini +++ b/tox.ini @@ -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 [gh] python =