Skip to content

Commit

Permalink
Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 6, 2024
1 parent 3e9ebcb commit 0cdc0a6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 65 deletions.
15 changes: 12 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,20 @@ repos:
always_run: true
- id: prettier
name: prettier
entry: npx [email protected].2 --no-semi --write
entry: npx [email protected].3 --no-semi --write
language: system
types_or: [css, scss]
require_serial: true
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.20.0
rev: 1.21.0
hooks:
- id: django-upgrade
args: [--target-version, "5.0"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.3"
rev: "v0.6.4"
hooks:
- id: ruff
args: [--unsafe-fixes]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.2.1
Expand All @@ -55,3 +56,11 @@ repos:
additional_dependencies: ["@biomejs/[email protected]"]
args: [--unsafe]
types_or: [javascript, json]
- repo: https://github.com/boidolr/pre-commit-images
rev: v1.8.1
hooks:
- id: optimize-avif
- id: optimize-jpg
- id: optimize-png
- id: optimize-svg
- id: optimize-webp
8 changes: 6 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": false
},
Expand All @@ -10,7 +10,11 @@
},
"linter": {
"enabled": true,
"rules": {}
"rules": {
"suspicious": {
"noAssignInExpressions": "off"
}
}
},
"javascript": {
"formatter": {
Expand Down
3 changes: 2 additions & 1 deletion cli/trd.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def current_project():
if path == cwd:
return project

_terminate(f"Couldn't find a project for the current working directory {cwd}") # noqa: RET503
_terminate(f"Couldn't find a project for the current working directory {cwd}")
return None


def find_pofiles(root):
Expand Down
65 changes: 6 additions & 59 deletions htdocs/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0cdc0a6

Please sign in to comment.