Skip to content

Commit

Permalink
feat: use ruff linter and code formatter (#12)
Browse files Browse the repository at this point in the history
* feat: use ruff linter and code formatter

* style: assume py38 on ruff config
  • Loading branch information
allisson committed Feb 23, 2024
1 parent b52c8e9 commit b2007e2
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 263 deletions.
20 changes: 4 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,8 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/pycqa/isort
rev: 5.13.1
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: isort
args: ["--overwrite-in-place"]

- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
args: ["--line-length=110"]

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: ["--max-line-length=110", "--ignore=E203,E501,W503"]
- id: ruff
- id: ruff-format
Loading

0 comments on commit b2007e2

Please sign in to comment.