Skip to content

Commit

Permalink
Rename check to self-explanatory type
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Apr 9, 2024
1 parent 417b957 commit deca91b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build client dist docs format install lint preview release server start test version
.PHONY: all build client dist docs format install lint preview release server start test type version


VERSION := $(shell node -p -e "require('./package.json').version")
Expand Down Expand Up @@ -62,6 +62,11 @@ test:
hatch run test
npm run test

## Checks types with pyright and typescript
type:
hatch run type
npm run type

version:
@echo $(VERSION)

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"scripts": {
"build": "electron-vite build",
"dist": "electron-builder",
"check": "tsc --noEmit",
"coverage": "sensible-browser coverage/index.html",
"format": "prettier --write \"client/**/*.ts*\" && eslint --fix \"client/**/*.ts*\"",
"lint": "prettier --check \"client/**/*.ts*\" && eslint \"client/**/*.ts*\"",
"prepare": "husky install",
"preview": "electron-vite dev",
"start": "vite --open --port 8080",
"spec": "vitest run",
"test": "npm run lint && npm run check && npm run spec",
"test": "npm run lint && npm run type && npm run spec",
"type": "tsc --noEmit",
"update": "ncu -u"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ dependencies = [
build = [
"python -m build",
]
check = [
"pyright server",
]
format = [
"ruff format server",
]
Expand All @@ -81,9 +78,12 @@ start = [
]
test = [
"hatch run lint",
"hatch run check",
"hatch run type",
"hatch run pytest",
]
type = [
"pyright server",
]

[tool.ruff]
line-length = 90
Expand Down

0 comments on commit deca91b

Please sign in to comment.