Skip to content

Commit

Permalink
Update QA configs (#5)
Browse files Browse the repository at this point in the history
* Update QA configs

* make ts-node a dev dep

* move tox to server
  • Loading branch information
IndrajeetPatil authored Oct 13, 2024
1 parent 087f975 commit e2784ea
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 79 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ OPENAPI_SCHEMA=chatgptserver/manage.py spectacular --color --validate --file sch
# Frontend tools
ESLINT=npm run lint:fix
PRETTIER=npm run format
TSC=npm run build
TSC=npm run check-types
JEST=npm run test
NEXT_START=npm run start
PLAYWRIGHT=npm run test:e2e
Expand Down
6 changes: 4 additions & 2 deletions frontend/.prettierrc → frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"endOfLine": "lf",
"printWidth": 80,
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"tabWidth": 2,
"semi": true
"trailingComma": "es5",
"useTabs": false
}
6 changes: 1 addition & 5 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked
);
export default tseslint.config(eslint.configs.all, ...tseslint.configs.all);
113 changes: 45 additions & 68 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "next dev",
"build": "rm -rf .next && next build",
"start": "next start",
"check-types": "tsc --noemit",
"lint": "next lint --dir .",
"lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint --fix --ext=.js,.jsx,.tsx .",
"format": "prettier --write .",
Expand Down Expand Up @@ -53,6 +54,7 @@
"markdownlint": "^0.35.0",
"react-test-renderer": "^18.3.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5"
}
}
3 changes: 0 additions & 3 deletions frontend/tests/chat-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { getModelDisplay, getTemperatureDisplay } from "@/client/helpers";
import { AssistantModel, AssistantTemperature } from "@/client/types/assistant";
import { expect, test } from "@playwright/test";

const models = [AssistantModel.MINI, AssistantModel.FULL];
const temperatures = [AssistantTemperature.DETERMINISTIC];

test.describe("Chat Page Model and Temperature Combinations", () => {
test("should return correct response for selected model and temperature", async ({
page,
Expand Down
File renamed without changes.

0 comments on commit e2784ea

Please sign in to comment.