mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
0dcc4c4b4c
* Add more hooks from pre-commit-hooks repo * Add pre-commit hook for prettier * Format with prettier * Remove check-docstring-first hook * Run prettier in the template * Tweak formatting of dependabot file * Fix formatting of GitHub files for prettier * More format fixes of ci.yml
108 lines
3.3 KiB
YAML
108 lines
3.3 KiB
YAML
# Config for Dependabot updates. See Documentation here:
|
|
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
|
|
version: 2
|
|
updates:
|
|
# Update GitHub actions in workflows
|
|
- package-ecosystem: 'github-actions'
|
|
directory: '/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
{%- if cookiecutter.use_docker == 'y' %}
|
|
|
|
# Enable version updates for Docker
|
|
# 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:
|
|
# https://github.com/dependabot/dependabot-core/issues/2178
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/local/django` directory
|
|
directory: 'compose/local/django/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
# Ignore minor version updates (3.10 -> 3.11) but update patch versions
|
|
ignore:
|
|
- dependency-name: '*'
|
|
update-types:
|
|
- 'version-update:semver-major'
|
|
- 'version-update:semver-minor'
|
|
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/local/docs` directory
|
|
directory: 'compose/local/docs/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
# Ignore minor version updates (3.10 -> 3.11) but update patch versions
|
|
ignore:
|
|
- dependency-name: '*'
|
|
update-types:
|
|
- 'version-update:semver-major'
|
|
- 'version-update:semver-minor'
|
|
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/local/node` directory
|
|
directory: 'compose/local/node/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/production/aws` directory
|
|
directory: 'compose/production/aws/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/production/django` directory
|
|
directory: 'compose/production/django/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
# Ignore minor version updates (3.10 -> 3.11) but update patch versions
|
|
ignore:
|
|
- dependency-name: '*'
|
|
update-types:
|
|
- 'version-update:semver-major'
|
|
- 'version-update:semver-minor'
|
|
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/production/postgres` directory
|
|
directory: 'compose/production/postgres/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
- package-ecosystem: 'docker'
|
|
# Look for a `Dockerfile` in the `compose/production/traefik` directory
|
|
directory: 'compose/production/traefik/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
{%- endif %}
|
|
|
|
# Enable version updates for Python/Pip - Production
|
|
- package-ecosystem: 'pip'
|
|
# Look for a `requirements.txt` in the `root` directory
|
|
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt'
|
|
directory: '/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
{%- if cookiecutter.frontend_pipeline == 'Gulp' %}
|
|
|
|
# Enable version updates for javascript/npm
|
|
- package-ecosystem: 'npm'
|
|
# Look for a `packages.json` in the `root` directory
|
|
directory: '/'
|
|
# Every weekday
|
|
schedule:
|
|
interval: 'daily'
|
|
|
|
{%- endif %}
|