Skip to content

Commit

Permalink
feat: swap to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Oct 20, 2024
1 parent 5ed2a51 commit d358f1b
Show file tree
Hide file tree
Showing 81 changed files with 4,298 additions and 5,574 deletions.
2 changes: 1 addition & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ SAQ_CONCURRENCY=1
VITE_HOST=localhost
VITE_PORT=5174
VITE_HOT_RELOAD=True
VITE_DEV_MODE=False
VITE_DEV_MODE=True
54 changes: 0 additions & 54 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.11","3.12"]
python-version: ["3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down
16 changes: 10 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand All @@ -11,18 +11,22 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.6
rev: v0.7.0
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- repo: local
hooks:
- id: prettier
- id: local-biome-check
name: biome check
entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
language: system
types: [text]
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
exclude: templates|migrations|scripts|docs|dist|.venv|public
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.12.0
hooks:
- id: mypy
exclude: scripts/
Expand Down
14 changes: 0 additions & 14 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

38 changes: 19 additions & 19 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"recommendations": [
"mikestead.dotenv",
"christian-kohler.path-intellisense",
"ms-python.vscode-pylance",
"ms-python.python",
"charliermarsh.ruff",
"ms-python.mypy-type-checker",
"njpwerner.autodocstring",
"samuelcolvin.jinjahtml",
"formulahendry.code-runner",
"editorconfig.editorconfig",
"irongeek.vscode-env",
"dbaeumer.vscode-eslint",
"xyz.plsql-language",
"davidanson.vscode-markdownlint",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode",
"ms-python.pylint"
]
"recommendations": [
"mikestead.dotenv",
"christian-kohler.path-intellisense",
"ms-python.vscode-pylance",
"ms-python.python",
"charliermarsh.ruff",
"ms-python.mypy-type-checker",
"njpwerner.autodocstring",
"samuelcolvin.jinjahtml",
"formulahendry.code-runner",
"editorconfig.editorconfig",
"irongeek.vscode-env",
"dbaeumer.vscode-eslint",
"xyz.plsql-language",
"davidanson.vscode-markdownlint",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode",
"ms-python.pylint"
]
}
44 changes: 17 additions & 27 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"pythonArgs": ["-Xfrozen_modules=off"],
"configurations": [
{
"name": "Litestar Run",
"type": "debugpy",
"request": "launch",
"module": "litestar",
"envFile": "${workspaceFolder}/.env",
"args": [
"--app-dir",
"${workspaceFolder}/",
"--app",
"app.asgi:create_app",
"run",
"--port",
"8088",
"--web-concurrency",
"1"
],
"justMyCode": false,
"console": "integratedTerminal"
},
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"pythonArgs": ["-Xfrozen_modules=off"],
"configurations": [
{
"name": "Litestar Run",
"type": "debugpy",
"request": "launch",
"module": "litestar",
"envFile": "${workspaceFolder}/.env",
"args": ["--app-dir", "${workspaceFolder}/", "--app", "app.asgi:create_app", "run", "--port", "8088", "--web-concurrency", "1"],
"justMyCode": false,
"console": "integratedTerminal"
}
]
}
Loading

0 comments on commit d358f1b

Please sign in to comment.