Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooling: drop flake8, configure ruff #694

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,19 @@ 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.ruff.lint.extend-per-file-ignores]
"*.pyi" = ["E501"]

[tool.mypy]
mypy_path = "gcalcli:stubs:tests"
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
Loading