Fix formatting of GitHub files for prettier

This commit is contained in:
Bruno Alla 2023-04-15 12:02:47 +01:00
parent 8147aaf928
commit b5235dbefa
No known key found for this signature in database
2 changed files with 52 additions and 52 deletions

View File

@ -4,11 +4,11 @@
version: 2 version: 2
updates: updates:
# Update GitHub actions in workflows # Update GitHub actions in workflows
- package-ecosystem: "github-actions" - package-ecosystem: 'github-actions'
directory: "/" directory: '/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
{%- if cookiecutter.use_docker == 'y' %} {%- if cookiecutter.use_docker == 'y' %}
@ -16,92 +16,92 @@ updates:
# We need to specify each Dockerfile in a separate entry because Dependabot doesn't # We need to specify each Dockerfile in a separate entry because Dependabot doesn't
# support wildcards or recursively checking subdirectories. Check this issue for updates: # support wildcards or recursively checking subdirectories. Check this issue for updates:
# https://github.com/dependabot/dependabot-core/issues/2178 # https://github.com/dependabot/dependabot-core/issues/2178
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/local/django` directory # Look for a `Dockerfile` in the `compose/local/django` directory
directory: "compose/local/django/" directory: 'compose/local/django/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
# Ignore minor version updates (3.10 -> 3.11) but update patch versions # Ignore minor version updates (3.10 -> 3.11) but update patch versions
ignore: ignore:
- dependency-name: "*" - dependency-name: '*'
update-types: update-types:
- "version-update:semver-major" - 'version-update:semver-major'
- "version-update:semver-minor" - 'version-update:semver-minor'
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/local/docs` directory # Look for a `Dockerfile` in the `compose/local/docs` directory
directory: "compose/local/docs/" directory: 'compose/local/docs/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
# Ignore minor version updates (3.10 -> 3.11) but update patch versions # Ignore minor version updates (3.10 -> 3.11) but update patch versions
ignore: ignore:
- dependency-name: "*" - dependency-name: '*'
update-types: update-types:
- "version-update:semver-major" - 'version-update:semver-major'
- "version-update:semver-minor" - 'version-update:semver-minor'
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/local/node` directory # Look for a `Dockerfile` in the `compose/local/node` directory
directory: "compose/local/node/" directory: 'compose/local/node/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/production/aws` directory # Look for a `Dockerfile` in the `compose/production/aws` directory
directory: "compose/production/aws/" directory: 'compose/production/aws/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/production/django` directory # Look for a `Dockerfile` in the `compose/production/django` directory
directory: "compose/production/django/" directory: 'compose/production/django/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
# Ignore minor version updates (3.10 -> 3.11) but update patch versions # Ignore minor version updates (3.10 -> 3.11) but update patch versions
ignore: ignore:
- dependency-name: "*" - dependency-name: '*'
update-types: update-types:
- "version-update:semver-major" - 'version-update:semver-major'
- "version-update:semver-minor" - 'version-update:semver-minor'
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/production/postgres` directory # Look for a `Dockerfile` in the `compose/production/postgres` directory
directory: "compose/production/postgres/" directory: 'compose/production/postgres/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
- package-ecosystem: "docker" - package-ecosystem: 'docker'
# Look for a `Dockerfile` in the `compose/production/traefik` directory # Look for a `Dockerfile` in the `compose/production/traefik` directory
directory: "compose/production/traefik/" directory: 'compose/production/traefik/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
{%- endif %} {%- endif %}
# Enable version updates for Python/Pip - Production # Enable version updates for Python/Pip - Production
- package-ecosystem: "pip" - package-ecosystem: 'pip'
# Look for a `requirements.txt` in the `root` directory # Look for a `requirements.txt` in the `root` directory
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt' # also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt'
directory: "/" directory: '/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
{%- if cookiecutter.frontend_pipeline == 'Gulp' %} {%- if cookiecutter.frontend_pipeline == 'Gulp' %}
# Enable version updates for javascript/npm # Enable version updates for javascript/npm
- package-ecosystem: "npm" - package-ecosystem: 'npm'
# Look for a `packages.json` in the `root` directory # Look for a `packages.json` in the `root` directory
directory: "/" directory: '/'
# Every weekday # Every weekday
schedule: schedule:
interval: "daily" interval: 'daily'
{%- endif %} {%- endif %}

View File

@ -7,12 +7,12 @@ env:
on: on:
pull_request: pull_request:
branches: [ "master", "main" ] branches: [ 'master', 'main' ]
paths-ignore: [ "docs/**" ] paths-ignore: [ 'docs/**' ]
push: push:
branches: [ "master", "main" ] branches: [ 'master', 'main' ]
paths-ignore: [ "docs/**" ] paths-ignore: [ 'docs/**' ]
concurrency: concurrency:
group: {% raw %}${{ github.head_ref || github.run_id }}{% endraw %} group: {% raw %}${{ github.head_ref || github.run_id }}{% endraw %}
@ -29,7 +29,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.11" python-version: '3.11'
{%- if cookiecutter.open_source_license != 'Not open source' %} {%- if cookiecutter.open_source_license != 'Not open source' %}
# Consider using pre-commit.ci for open source project # Consider using pre-commit.ci for open source project
@ -58,10 +58,10 @@ jobs:
env: env:
{%- if cookiecutter.use_celery == 'y' %} {%- if cookiecutter.use_celery == 'y' %}
CELERY_BROKER_URL: "redis://localhost:6379/0" CELERY_BROKER_URL: 'redis://localhost:6379/0'
{%- endif %} {%- endif %}
# postgres://user:password@host:port/database # postgres://user:password@host:port/database
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/postgres" DATABASE_URL: 'postgres://postgres:postgres@localhost:5432/postgres'
{%- endif %} {%- endif %}
steps: steps:
@ -71,22 +71,22 @@ jobs:
{%- if cookiecutter.use_docker == 'y' %} {%- if cookiecutter.use_docker == 'y' %}
- name: Build the Stack - name: Build the Stack
run: docker-compose -f local.yml build run: docker-compose -f local.yml build
- name: Run DB Migrations - name: Run DB Migrations
run: docker-compose -f local.yml run --rm django python manage.py migrate run: docker-compose -f local.yml run --rm django python manage.py migrate
- name: Run Django Tests - name: Run Django Tests
run: docker-compose -f local.yml run django pytest run: docker-compose -f local.yml run django pytest
- name: Tear down the Stack - name: Tear down the Stack
run: docker-compose -f local.yml down run: docker-compose -f local.yml down
{%- else %} {%- else %}
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.11" python-version: '3.11'
cache: pip cache: pip
cache-dependency-path: | cache-dependency-path: |
requirements/base.txt requirements/base.txt
@ -98,5 +98,5 @@ jobs:
pip install -r requirements/local.txt pip install -r requirements/local.txt
- name: Test with pytest - name: Test with pytest
run: pytest run: pytest
{%- endif %} {%- endif %}