Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 7, 2024
1 parent a583e4f commit 0917b26
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
25 changes: 19 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"editor.formatOnSave": false
},
"[git-commit]": {
"editor.rulers": [72],
"editor.rulers": [
72
],
"rewrap.wrappingColumn": 72
},
"[json]": {
Expand All @@ -21,12 +23,16 @@
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.rulers": [88]
"editor.rulers": [
88
]
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"coverage-gutters.coverageFileNames": ["coverage.xml"],
"coverage-gutters.coverageFileNames": [
"coverage.xml"
],
"coverage-gutters.coverageReportFileName": "**/htmlcov/index.html",
"coverage-gutters.showGutterCoverage": false,
"coverage-gutters.showLineCoverage": true,
Expand All @@ -40,11 +46,15 @@
"**/.tox/**": true
},
"git.rebaseWhenSync": true,
"github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"],
"github-actions.workflows.pinned.workflows": [
".github/workflows/ci.yml"
],
"gitlens.telemetry.enabled": false,
"livePreview.defaultPreviewPath": "docs/_build/html",
"multiDiffEditor.experimental.enabled": true,
"mypy-type-checker.args": ["--config-file=${workspaceFolder}/pyproject.toml"],
"mypy-type-checker.args": [
"--config-file=${workspaceFolder}/pyproject.toml"
],
"mypy-type-checker.importStrategy": "fromEnvironment",
"myst.preview.extensions": [
"amsmath",
Expand All @@ -60,6 +70,7 @@
"python.analysis.autoImportCompletions": false,
"python.analysis.inlayHints.pytestParameters": true,
"python.analysis.typeCheckingMode": "strict",
"python.terminal.activateEnvironment": false,
"python.testing.autoTestDiscoverOnSaveEnabled": false,
"python.testing.pytestArgs": [
"--color=no",
Expand All @@ -80,6 +91,8 @@
},
"telemetry.telemetryLevel": "off",
"yaml.schemas": {
"./docs/software/project-inventory-schema.json": ["docs/software/*.yml"]
"./docs/software/project-inventory-schema.json": [
"docs/software/*.yml"
]
}
}
57 changes: 22 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ doc = [
]
jupyter = [
"PWA-pages[doc]",
"black",
"isort",
"jupyterlab",
"jupyterlab-code-formatter",
"jupyterlab-code-formatter >=3.0.0",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
Expand Down Expand Up @@ -239,39 +237,10 @@ docstring-code-format = true
line-ending = "lf"

[tool.ruff.lint]
extend-select = [
"A",
"B",
"BLE",
"C4",
"C90",
"D",
"EM",
"ERA",
"FA",
"I",
"ICN",
"INP",
"ISC",
"N",
"NPY",
"PGH",
"PIE",
"PL",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T20",
"TCH",
"TID",
"TRY",
"UP",
"YTT",
]
ignore = [
"ANN401",
"COM812",
"CPY001",
"D101",
"D102",
"D103",
Expand All @@ -281,18 +250,33 @@ ignore = [
"D213",
"D407",
"D416",
"DOC",
"E501",
"FURB101",
"FURB103",
"FURB140",
"G004",
"ISC001",
"PLW1514",
"PT001",
"PTH",
"SIM108",
]
select = ["ALL"]
task-tags = ["cspell"]

[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["display"]

[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true

[tool.ruff.lint.isort]
split-on-trailing-comma = false

[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"ANN",
"B018",
"C90",
"D",
Expand Down Expand Up @@ -326,14 +310,17 @@ split-on-trailing-comma = false
"UP00",
]
"tests/*" = [
"ANN",
"D",
"FBT001",
"INP001",
"PGH001",
"PLC2701",
"PLR0913",
"PLR2004",
"PLR6301",
"S101",
"SLF001",
"T20",
]

Expand Down

0 comments on commit 0917b26

Please sign in to comment.