Skip to content

Commit

Permalink
Merge pull request #9 from jtmiclat/chore/pre-commit-ruff
Browse files Browse the repository at this point in the history
Migrate pre-commits to ruff
  • Loading branch information
jtmiclat authored Sep 26, 2023
2 parents b04c86a + 07ba607 commit 6d8af89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ['--profile', 'black']
- id: ruff
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.3
rev: 1.7.0
hooks:
- id: nbqa-ruff
- id: nbqa-black
- id: nbqa-flake8
- id: nbqa-isort
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ nbqa = "^1.6.1"
[tool.poetry.group.notebook.dependencies]
jupyter = "^1.0.0"

[tool.ruff]
ignore = ["E501"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 6d8af89

Please sign in to comment.