Skip to content

Commit

Permalink
refactor: Change linter and formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Mar 24, 2024
1 parent c5d8bb0 commit d6ef649
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.0
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: v1.0.0
hooks:
- id: doc8
args:
- '--max-line-length=119'
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args:
- '--max-line-length=88'
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
- --max-line-length=119
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ virtual = true
dev-dependencies = [
"sphinx-autobuild>=2021.3.14",
]

[tool.ruff.lint]
select = ["C90", "D", "E", "F", "I", "W"]

[tool.ruff.lint.pydocstyle]
convention = "pep257"

0 comments on commit d6ef649

Please sign in to comment.