diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88d0f264ee..5d7c85492f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,14 +7,8 @@ repos: rev: "v0.1.3" hooks: - id: ruff - 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"] + args: [--fix, --show-fixes] + types_or: [python, pyi, jupyter] - repo: https://github.com/adamchainz/blacken-docs rev: "1.16.0" diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000000..7304d64570 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,8 @@ +extend-include = ["*.ipynb"] +extend-exclude = ["__init__.py"] + +[lint] +ignore = ["E741"] + +[lint.per-file-ignores] +"**.ipynb" = ["E402", "E703"]