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:
parent
57967cde47
commit
769290528d
@ -5,7 +5,8 @@
|
|||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
// "image": "mcr.microsoft.com/devcontainers/python:1-3-bookworm",
|
// "image": "mcr.microsoft.com/devcontainers/python:1-3-bookworm",
|
||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile",
|
||||||
|
"context": ".."
|
||||||
},
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers-contrib/features/black:2": {},
|
"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 to add to the dev container. More info: https://containers.dev/features.
|
||||||
// "features": {},
|
// "features": {},
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
@ -13,11 +13,17 @@ black:
|
|||||||
|
|
||||||
ruff:
|
ruff:
|
||||||
stage: lint
|
stage: lint
|
||||||
# image: registry.gitlab.com/pipeline-components/ruff:latest
|
|
||||||
image: python:3.11-slim
|
image: python:3.11-slim
|
||||||
script:
|
script:
|
||||||
- pip3 install ruff
|
- pip3 install ruff
|
||||||
- ruff --output-format gitlab .
|
- 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:
|
include:
|
||||||
- local: /site/.gitlab-ci.yml
|
- local: /site/.gitlab-ci.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user