Skip to content

Commit

Permalink
Switch to ruff's formatter and import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Nov 4, 2023
1 parent 0bef7f8 commit d0dad75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
- name: Check formatting
if: always()
run: |
hatch run style:format
git diff --color --exit-code
- name: Check types
if: always()
Expand Down
16 changes: 4 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,20 @@ check = [
skip-install = true
dependencies = [
"ruff",
"isort",
"black",
]
[tool.hatch.envs.style.scripts]
fix = [
"ruff check --fix mkdocs_click tests",
"format",
]
format = [
"isort -q mkdocs_click tests",
"black -q mkdocs_click tests",
"ruff format -q mkdocs_click tests",
]

[tool.black]
line-length = 100

[tool.isort]
profile = "black"
line_length = 100

[tool.ruff]
line-length = 100
select = [
"I",
"F", "W", "E", "UP", "YTT", "C4", "DTZ", "FA", "ISC", "PIE", "T20", "RSE", "TCH",
"B002", "B003", "B005", "B007", "B009", "B012", "B013", "B014", "B015", "B018", "B020", "B021", "B023", "B026", "B033", "B034", "B905",
"COM818",
Expand All @@ -123,7 +115,7 @@ allow-dict-calls-with-keyword-arguments = true
[tool.mypy]
disallow_untyped_defs = true
warn_unreachable = true
show_error_codes = true
allow_redefinition = true

[tool.pytest.ini_options]
addopts = "--tb=native"
Expand Down

0 comments on commit d0dad75

Please sign in to comment.