mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-15 23:06:40 +00:00
add prettier
This commit is contained in:
parent
57967cde47
commit
769290528d
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user