Skip to content

Commit

Permalink
MAINT: revert Ruff setup
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 9, 2023
1 parent 571cc4a commit 543dea1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,21 @@ repos:
- --no-prettierrc
- --no-pypi
- --no-python
- --no-ruff
- --no-version-branches
- --repo-name=ComPWA-demo
- --repo-title="ComPWA demos"
- id: colab-toc-visible

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-flake8
- id: nbqa-isort
- id: nbqa-pyupgrade
args:
- --py36-plus

- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
Expand All @@ -65,13 +75,6 @@ repos:
name: editorconfig
alias: ec

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-pyupgrade
args:
- --py36-plus

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
Expand Down
5 changes: 3 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"esbenp.prettier-vscode",
"garaioag.garaio-vscode-unwanted-recommendations",
"github.vscode-github-actions",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.isort",
"ms-python.python",
"ms-vsliveshare.vsliveshare",
"redhat.vscode-yaml",
Expand All @@ -17,8 +20,6 @@
"unwantedRecommendations": [
"bungcip.better-toml",
"davidanson.vscode-markdownlint",
"ms-python.flake8",
"ms-python.isort",
"ms-python.pylint",
"travisillig.vscode-json-stable-stringify"
]
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ target-version = [
"py39",
]

[tool.isort]
profile = "black"

[tool.nbqa.addopts]
flake8 = [
"--extend-ignore=E402,E501",
]

[tool.pytest.ini_options]
addopts = [
"--durations=0",
Expand Down

0 comments on commit 543dea1

Please sign in to comment.