Skip to content

Commit 4bb0859

Browse files
authored
Merge pull request #694 from insanum/tooling
Tooling: drop flake8, configure ruff
2 parents 6422662 + d21cf7e commit 4bb0859

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

pyproject.toml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,19 @@ gcalcli = "gcalcli.cli:main"
5656
[tool.distutils.bdist_wheel]
5757
universal = true
5858

59-
[tool.isort]
60-
profile = "google"
61-
force_single_line = false
62-
float_to_top = true
63-
combine_star = true
64-
py_version = 3
59+
[tool.ruff]
60+
line-length = 80
61+
62+
[tool.ruff.lint]
63+
# Enable Errors, Warnings, Flakes
64+
select = ["E", "W", "F"]
65+
66+
[tool.ruff.format]
67+
# Permit mixed quote style, project currently uses a mix of both.
68+
quote-style = "preserve"
69+
70+
[tool.ruff.lint.extend-per-file-ignores]
71+
"*.pyi" = ["E501"]
6572

6673
[tool.mypy]
6774
mypy_path = "gcalcli:stubs:tests"

setup.cfg

Lines changed: 0 additions & 9 deletions
This file was deleted.

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ commands=py.test -vv --cov=./gcalcli --pyargs tests {posargs}
1616
[testenv:lint]
1717
description = run linters
1818
skip_install = true
19-
deps = flake8
20-
commands = flake8
19+
deps = ruff
20+
commands = ruff check
2121

2222
[testenv:type]
2323
description = run type checks

0 commit comments

Comments
 (0)