Skip to content

Commit

Permalink
chore: use ruff instead of pycln (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatlittleboy authored Jan 10, 2025
1 parent 71e425c commit 5afc570
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ repos:
- id: black
args: ["--config", "pyproject.toml"]

- repo: https://github.com/hadialqattan/pycln
rev: v2.5.0
hooks:
- id: pycln
args: [--config=pyproject.toml]

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ exclude = '''
line-length = 110
target-version = ['py39']

[tool.pycln]
all = true

[tool.isort]
ensure_newline_before_comments = true
force_grid_wrap = 0
Expand All @@ -27,6 +24,7 @@ use_parentheses = true
line-length = 110
force-exclude = true
target-version = "py39"
fix = true
[tool.ruff.lint]
select = [
# pycodestyle
Expand All @@ -39,6 +37,8 @@ select = [
"D410", "D411", "D413",
# flake8-bugbear
"B",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-errmsg
Expand All @@ -48,12 +48,14 @@ select = [
# flake8-simplify
"SIM101", "SIM109", "SIM117", "SIM118",
"SIM2",
# flake8-commas
"COM",
# flake8-return
"RET505", "RET506", "RET507", "RET508",
]
ignore = ["E501", "F403"]
extend-fixable = [
"F401",
"COM",
]

[build-system]
requires = [
Expand Down

0 comments on commit 5afc570

Please sign in to comment.