1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 07:16:40 +00:00

add prettier

This commit is contained in:
Anson 2023-10-15 22:58:15 +00:00
parent 57967cde47
commit 769290528d
2 changed files with 10 additions and 3 deletions

View File

@ -5,7 +5,8 @@
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// "image": "mcr.microsoft.com/devcontainers/python:1-3-bookworm",
"build": {
"dockerfile": "Dockerfile"
"dockerfile": "Dockerfile",
"context": ".."
},
"features": {
"ghcr.io/devcontainers-contrib/features/black:2": {},
@ -26,7 +27,7 @@
]
}
},
"postCreateCommand": "pip3 install --user -r dev-reqs.txt"
"postCreateCommand": "pip3 install --user -r dev-reqs.txt && apt-get update && apt-get install -y nodejs npm && npm install"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.

View File

@ -13,11 +13,17 @@ black:
ruff:
stage: lint
# image: registry.gitlab.com/pipeline-components/ruff:latest
image: python:3.11-slim
script:
- pip3 install ruff
- ruff --output-format gitlab .
prettier:
stage: lint
image: node:16-slim # Use Node.js image since prettier is a Node.js tool
script:
- npm install prettier
- npx prettier --check . # Adjust the path as needed
include:
- local: /site/.gitlab-ci.yml