Skip to content

Commit

Permalink
dev: fix yaml linter warnings
Browse files Browse the repository at this point in the history
Fix various linter warnings in preparation for updating
eslint-config-wikimedia to a version with YAML coverage.

Change-Id: I805afa1dd3fdf7b859eb1218bb4110067450f6d5
  • Loading branch information
bd808 committed Mar 4, 2022
1 parent a3d9528 commit 230e595
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 31 deletions.
12 changes: 6 additions & 6 deletions contrib/demo-server/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ services:
- /bin/bash
- -c
- >-
poetry run python3 manage.py migrate
&& poetry run python3 manage.py createinitialrevisions
&& poetry run python3 manage.py search_index --rebuild -f
&& poetry run python3 manage.py runserver --noreload --nostatic 0.0.0.0:8000
poetry run python3 manage.py migrate
&& poetry run python3 manage.py createinitialrevisions
&& poetry run python3 manage.py search_index --rebuild -f
&& poetry run python3 manage.py runserver --noreload --nostatic 0.0.0.0:8000
environment:
- DJANGO_SECRET_KEY
- DJANGO_DEBUG
Expand Down Expand Up @@ -50,8 +50,8 @@ services:
image: mariadb:10.4
restart: always
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
Expand Down
8 changes: 4 additions & 4 deletions contrib/prometheus/docker-compose.prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ services:
target: /prometheus
consistency: cached
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/etc/prometheus/consoles
ports:
- "${TOOLHUB_PROMETHEUS_PORT:-9090}:9090"
depends_on:
Expand Down
10 changes: 5 additions & 5 deletions contrib/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ global:
monitor: django-monitor

rule_files:
- 'toolhub.rules'
- toolhub.rules

scrape_configs:
- job_name: 'prometheus'
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
- job_name: 'toolhub'
- targets: [ "localhost:9090" ]
- job_name: toolhub
static_configs:
- targets: ['web:8000']
- targets: [ "web:8000" ]
21 changes: 10 additions & 11 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ services:
- bash
- -c
- >-
mkdir -p /tmp/runtime-home &&
export HOME=/tmp/runtime-home &&
/srv/dockerize/bin/dockerize -wait tcp://db:3306
poetry run
python3 manage.py runserver --nostatic 0.0.0.0:8000
mkdir -p /tmp/runtime-home
&& export HOME=/tmp/runtime-home
&& /srv/dockerize/bin/dockerize -wait tcp://db:3306
poetry run python3 manage.py runserver --nostatic 0.0.0.0:8000
environment:
- DJANGO_SECRET_KEY
- DJANGO_DEBUG
Expand Down Expand Up @@ -60,8 +59,8 @@ services:
image: mariadb:10.4
restart: always
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
Expand All @@ -87,10 +86,10 @@ services:
- bash
- -c
- >-
mkdir -p /tmp/runtime-home &&
export HOME=/tmp/runtime-home &&
npm install &&
npm run serve:vue
mkdir -p /tmp/runtime-home
&& export HOME=/tmp/runtime-home
&& npm install
&& npm run serve:vue
volumes:
- type: bind
source: .
Expand Down
10 changes: 5 additions & 5 deletions jsonschema/toolinfo/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ definitions:
$ref: "#/definitions/url"
additionalProperties: false
url_multilingual_or_array:
oneOf:
- type: array
items:
$ref: "#/definitions/url_multilingual"
- $ref: "#/definitions/url"
oneOf:
- type: array
items:
$ref: "#/definitions/url_multilingual"
- $ref: "#/definitions/url"
string_or_string_array:
oneOf:
- type: string
Expand Down

0 comments on commit 230e595

Please sign in to comment.