Skip to content

Commit

Permalink
ci(ruff): Add additional rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jul 1, 2023
1 parent ca78dc0 commit e332391
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 @@ -113,6 +113,33 @@ files = [
"tests/",
]

[tool.ruff]
target-version = "py38"
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 = ["unihan_etl", "cihai"]
combine-as-imports = true

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



[tool.coverage.run]
branch = true
parallel = true
Expand Down

0 comments on commit e332391

Please sign in to comment.