diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 12e48d913b..01eb62bcd0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,18 +4,12 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.1" + rev: "v0.1.3" hooks: - id: ruff + types_or: [python, pyi, jupyter] args: [--fix, --ignore=E741, --exclude=__init__.py] - - repo: https://github.com/nbQA-dev/nbQA - rev: 1.7.0 - hooks: - - id: nbqa-ruff - additional_dependencies: [ruff==0.0.284] - args: ["--fix","--ignore=E501,E402"] - - repo: https://github.com/adamchainz/blacken-docs rev: "1.16.0" hooks: diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000000..56d383806f --- /dev/null +++ b/ruff.toml @@ -0,0 +1,2 @@ +[lint.per-file-ignores] +"**.ipynb" = ["E402", "E703"]