Skip to content

Commit

Permalink
Add ruff pre-commit (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Mar 6, 2023
1 parent 4bc0171 commit 18f2349
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
18 changes: 4 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,9 @@ repos:
rev: 23.1.0
hooks:
- id: black
args: ["--line-length", "100"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254
hooks:
- id: isort
files: \.py$
args: [--profile=black]

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: binder
additional_dependencies:
["flake8-implicit-str-concat==0.2.0", "flake8-pyproject"]
- id: ruff
args: ["--fix"]
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,16 @@ jupyverse = "fps_uvicorn.cli:app"
[tool.check-manifest]
ignore = [ ".*",]

[tool.black]
line-length = 100

[tool.ruff]
line-length = 100
exclude = ["binder"]

[tool.jupyter-releaser]
skip = [ "check-links", "check-manifest",]

[tool.flake8]
max-line-length = 100

[tool.jupyter-releaser.options]
python_packages = [
"plugins/auth_base:fps-auth-base",
Expand Down

0 comments on commit 18f2349

Please sign in to comment.