Skip to content

Commit

Permalink
chore: update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Oct 21, 2024
1 parent 6454b33 commit 7e2b9f1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 134 deletions.
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
repos:
- repo: "https://github.com/commitizen-tools/commitizen"
rev: "v2.18.0"
rev: "v3.29.1"
hooks:
- id: commitizen
stages: [commit-msg]

- repo: "https://github.com/kynan/nbstripout"
rev: "0.5.0"
rev: "0.7.1"
hooks:
- id: nbstripout
stages: [commit]

- repo: "https://github.com/pre-commit/mirrors-prettier"
rev: "v2.7.1"
rev: "v3.1.0"
hooks:
- id: prettier
stages: [commit]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.5"
rev: "v0.7.0"
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 3 additions & 3 deletions glue_solara/viewers/mdi/mdi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ export default {
const dy = this.screenY - e.screenY;
this.currentWindow.width = Math.max(
40,
this.currentWindowCopy.width - dx
this.currentWindowCopy.width - dx,
);
this.currentWindow.height = Math.max(
40,
this.currentWindowCopy.height - dy
this.currentWindowCopy.height - dy,
);
}
}
Expand All @@ -189,7 +189,7 @@ export default {
},
remove(window) {
this.close(
this.frontendWindows.findIndex((w) => w.order === window.order)
this.frontendWindows.findIndex((w) => w.order === window.order),
);
},
fullscreen(window) {
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,23 @@ test = [
]

[tool.ruff]
ignore-init-module-imports = true
fix = true
exclude = [
'.git',
'dist',
'.eggs',
]
line-length = 100

[tool.ruff.lint]
ignore = [
"E501", # line too long | Black take care of it
]
line-length = 100
select = ["E", "W", "F", "Q", "I"]

[tool.black]
line-length = 100

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]

[[tool.mypy.overrides]]
module = "glue.*,glue_jupyter.*"
ignore_missing_imports = true
122 changes: 0 additions & 122 deletions qt-glue.ipynb

This file was deleted.

0 comments on commit 7e2b9f1

Please sign in to comment.