Skip to content

Commit

Permalink
ci(ruff): Strengthen code quality linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Aug 7, 2023
1 parent 7a00f09 commit cc95116
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,33 @@ exclude_lines = [
"@overload( |$)",
]

[tool.ruff]
target-version = "py37"
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"Q", # flake8-quotes
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"SIM", # flake8-simplify
"TRY", # Trycertatops
"PERF", # Perflint
"RUF" # Ruff-specific rules
]

[tool.ruff.isort]
known-first-party = [
"libtmux"
]
combine-as-imports = true

[tool.ruff.per-file-ignores]
"*/__init__.py" = ["F401"]

[build-system]
requires = ["poetry_core>=1.0.0", "setuptools>50"]
build-backend = "poetry.core.masonry.api"

0 comments on commit cc95116

Please sign in to comment.