Sync with WeblateOrg/meta

This commit is contained in:
Michal Čihař 2022-01-25 09:27:46 +01:00
parent cfcf05988f
commit 37b8027d18
14 changed files with 372 additions and 366 deletions

View file

@ -3,58 +3,58 @@
name: Bug report name: Bug report
description: Create a report to help us improve description: Create a report to help us improve
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Thank you for reporting an issue on Weblate! This form will guide you to create a useful issue report. Thank you for reporting an issue on Weblate! This form will guide you to create a useful issue report.
- type: textarea - type: textarea
id: what-happened id: what-happened
attributes: attributes:
label: Describe the issue label: Describe the issue
description: A clear and concise description of the problem you are facing. description: A clear and concise description of the problem you are facing.
placeholder: Tell us what you see! placeholder: Tell us what you see!
validations: validations:
required: true
- type: checkboxes
id: tried
attributes:
label: I already tried
description: If you didnt try already, try to search the documentation and existing issues what you wrote above.
options:
- label: I've read and searched [the documentation](https://docs.weblate.org/).
required: true required: true
- type: checkboxes - label: I've searched for similar issues in this repository.
id: tried required: true
attributes: - type: textarea
label: I already tried id: reproducer
description: If you didnt try already, try to search the documentation and existing issues what you wrote above. attributes:
options: label: Steps to reproduce the behavior
- label: I've read and searched [the documentation](https://docs.weblate.org/). value: |
required: true 1. Go to '...'
- label: I've searched for similar issues in this repository. 2. Scroll down to '...'
required: true 3. Click on '...'
- type: textarea 4. See error
id: reproducer - type: textarea
attributes: id: expected
label: Steps to reproduce the behavior attributes:
value: | label: Expected behavior
1. Go to '...' description: A clear and concise description of what you expected to happen.
2. Scroll down to '...' - type: textarea
3. Click on '...' id: screenshots
4. See error attributes:
- type: textarea label: Screenshots
id: expected description: If applicable, add screenshots to better explain your problem.
attributes: - type: textarea
label: Expected behavior id: traceback
description: A clear and concise description of what you expected to happen. attributes:
- type: textarea label: Exception traceback
id: screenshots description: >
attributes: In case you observed server error or crash, please see
label: Screenshots [the debugging documentation](https://docs.weblate.org/en/latest/contributing/debugging.html)
description: If applicable, add screenshots to better explain your problem. for information how to obtain that.
- type: textarea render: pytb
id: traceback - type: textarea
attributes: id: additional
label: Exception traceback attributes:
description: > label: Additional context
In case you observed server error or crash, please see description: Add any other context about the problem here.
[the debugging documentation](https://docs.weblate.org/en/latest/contributing/debugging.html)
for information how to obtain that.
render: pytb
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.

View file

@ -1,15 +1,10 @@
contact_links: contact_links:
- name: Read our clear, thorough and localized Docs - name: Read our clear, thorough and localized Docs
url: https://docs.weblate.org/ url: https://docs.weblate.org/
about: about: Save your time! There is an instant solution for many issues in the docs appreciated by numerous users. And it might be in your preferred language.
Save your time! There is an instant solution for many issues in the docs - name: Get Professional support
appreciated by numerous users. And it might be in your preferred language. url: https://weblate.org/support/
- name: Get Professional support about: As a subscriber, you will always receive fast and helpful replies from our dedicated support team. More responsible and faster for your business, also makes Weblate stronger.
url: https://weblate.org/support/ - name: Ask a Question
about: url: https://github.com/WeblateOrg/weblate/discussions
As a subscriber, you will always receive fast and helpful replies from about: Want to discuss something with a community? Do it in discussions!
our dedicated support team. More responsible and faster for your business, also
makes Weblate stronger.
- name: Ask a Question
url: https://github.com/WeblateOrg/weblate/discussions
about: Want to discuss something with a community? Do it in discussions!

View file

@ -3,39 +3,39 @@
name: Feature request name: Feature request
description: Suggest an idea for this project description: Suggest an idea for this project
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Thank you for reporting an issue on Weblate! This form will guide you to create a useful issue report. Thank you for reporting an issue on Weblate! This form will guide you to create a useful issue report.
- type: textarea - type: textarea
id: describe id: describe
attributes: attributes:
label: Describe the problem label: Describe the problem
description: > description: >
Is your feature request related to a problem? If so, please provide Is your feature request related to a problem? If so, please provide
a clear and concise description of what the problem is. a clear and concise description of what the problem is.
Ex. I'm always frustrated when [...] Ex. I'm always frustrated when [...]
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: solition id: solition
attributes: attributes:
label: Describe the solution you'd like label: Describe the solution you'd like
description: A clear and concise description of what the new feature should do. description: A clear and concise description of what the new feature should do.
validations: validations:
required: true required: true
- type: textarea - type: textarea
id: alternatives id: alternatives
attributes: attributes:
label: Describe alternatives you've considered label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered. description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea - type: textarea
id: screenshots id: screenshots
attributes: attributes:
label: Screenshots label: Screenshots
description: If applicable, add screenshots to better explain your problem. description: If applicable, add screenshots to better explain your problem.
- type: textarea - type: textarea
id: additional id: additional
attributes: attributes:
label: Additional context label: Additional context
description: Add any other context about the problem here. description: Add any other context about the problem here.

View file

@ -3,62 +3,62 @@
name: Support question name: Support question
description: Help with configuration or deployment description: Help with configuration or deployment
labels: labels:
- question - question
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: |
Thank you for reporting an issue on Weblate! This form will guide you to create a useful issue report. Thank you for reporting an issue on Weblate! This form will guide you to create a useful issue report.


Want your answer quickly and guaranteed? Visit https://weblate.org/support/ to reach our dedicated support team. As a subscriber, you will always have priority and help Weblate growing. Want your answer quickly and guaranteed? Visit https://weblate.org/support/ to reach our dedicated support team. As a subscriber, you will always have priority and help Weblate growing.
- type: textarea - type: textarea
id: what-happened id: what-happened
attributes: attributes:
label: Describe the issue label: Describe the issue
description: A clear and concise description of the problem you are facing. description: A clear and concise description of the problem you are facing.
placeholder: Tell us what you see! placeholder: Tell us what you see!
validations: validations:
required: true
- type: checkboxes
id: tried
attributes:
label: I already tried
description: If you didnt try already, try to search the documentation and existing issues what you wrote above.
options:
- label: I've read and searched [the documentation](https://docs.weblate.org/).
required: true required: true
- type: checkboxes - label: I've searched for similar issues in this repository.
id: tried required: true
attributes: - type: textarea
label: I already tried id: reproducer
description: If you didnt try already, try to search the documentation and existing issues what you wrote above. attributes:
options: label: Steps to reproduce the behavior
- label: I've read and searched [the documentation](https://docs.weblate.org/). value: |
required: true 1. Go to '...'
- label: I've searched for similar issues in this repository. 2. Scroll down to '...'
required: true 3. Click on '...'
- type: textarea 4. See error
id: reproducer - type: textarea
attributes: id: expected
label: Steps to reproduce the behavior attributes:
value: | label: Expected behavior
1. Go to '...' description: A clear and concise description of what you expected to happen.
2. Scroll down to '...' - type: textarea
3. Click on '...' id: screenshots
4. See error attributes:
- type: textarea label: Screenshots
id: expected description: If applicable, add screenshots to better explain your problem.
attributes: - type: textarea
label: Expected behavior id: traceback
description: A clear and concise description of what you expected to happen. attributes:
- type: textarea label: Exception traceback
id: screenshots description: >
attributes: In case you observed server error or crash, please see
label: Screenshots [the debugging documentation](https://docs.weblate.org/en/latest/contributing/debugging.html)
description: If applicable, add screenshots to better explain your problem. for information how to obtain that.
- type: textarea render: pytb
id: traceback - type: textarea
attributes: id: additional
label: Exception traceback attributes:
description: > label: Additional context
In case you observed server error or crash, please see description: Add any other context about the problem here.
[the debugging documentation](https://docs.weblate.org/en/latest/contributing/debugging.html)
for information how to obtain that.
render: pytb
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.

View file

@ -1,19 +1,19 @@
# This file is generated in https://github.com/WeblateOrg/meta/ # This file is generated in https://github.com/WeblateOrg/meta/
version: 2 version: 2
updates: updates:
- package-ecosystem: github-actions - package-ecosystem: github-actions
directory: / directory: /
schedule: schedule:
interval: daily interval: daily
labels: labels:
- dependencies - dependencies
- automerge - automerge
open-pull-requests-limit: 10 open-pull-requests-limit: 10
- package-ecosystem: pip - package-ecosystem: pip
directory: / directory: /
schedule: schedule:
interval: daily interval: daily
labels: labels:
- dependencies - dependencies
- automerge - automerge
open-pull-requests-limit: 10 open-pull-requests-limit: 10

View file

@ -9,26 +9,26 @@ jobs:
issueClosed: issueClosed:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Add closed question comment - name: Add closed question comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ (contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'wontfix')) || join(github.event.issue.labels.*.name) == '' }} if: ${{ (contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'wontfix')) || join(github.event.issue.labels.*.name) == '' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: | body: |
The issue you have reported is now resolved. If you dont feel its right, please follow its labels to get a clue for further steps. The issue you have reported is now resolved. If you dont feel its right, please follow its labels to get a clue for further steps.


* In case you see a similar problem, please open a separate issue. * In case you see a similar problem, please open a separate issue.
* If you are happy with the outcome, dont hesitate to support Weblate by making a [donation](https://weblate.org/donate/). * If you are happy with the outcome, dont hesitate to support Weblate by making a [donation](https://weblate.org/donate/).
- name: Add closed issue comment - name: Add closed issue comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ ! contains(github.event.issue.labels.*.name, 'invalid') && ! contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'wontfix') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'undecided') && ! contains(github.event.issue.labels.*.name, 'needinfo') && join(github.event.issue.labels.*.name) != '' }} if: ${{ ! contains(github.event.issue.labels.*.name, 'invalid') && ! contains(github.event.issue.labels.*.name, 'question') && ! contains(github.event.issue.labels.*.name, 'wontfix') && ! contains(github.event.issue.labels.*.name, 'duplicate') && ! contains(github.event.issue.labels.*.name, 'undecided') && ! contains(github.event.issue.labels.*.name, 'needinfo') && join(github.event.issue.labels.*.name) != '' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: | body: |
Thank you for your report; the issue you have reported has just been fixed. Thank you for your report; the issue you have reported has just been fixed.


* In case you see a problem with the fix, please comment on this issue. * In case you see a problem with the fix, please comment on this issue.
* In case you see a similar problem, please open a separate issue. * In case you see a similar problem, please open a separate issue.
* If you are happy with the outcome, dont hesitate to support Weblate by making a [donation](https://weblate.org/donate/). * If you are happy with the outcome, dont hesitate to support Weblate by making a [donation](https://weblate.org/donate/).

View file

@ -3,19 +3,19 @@ name: Sync labels
on: on:
push: push:
branches: branches:
- main - main
paths: paths:
- .github/labels.yml - .github/labels.yml
- .github/workflows/label-sync.yml - .github/workflows/label-sync.yml
jobs: jobs:
build: build:
name: Sync labels name: Sync labels
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
- uses: micnncim/action-label-syncer@v1.3.0 - uses: micnncim/action-label-syncer@v1.3.0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }} GITHUB_REPOSITORY: ${{ github.repository }}
with: with:
manifest: .github/labels.yml manifest: .github/labels.yml

View file

@ -9,66 +9,66 @@ jobs:
issueLabeled: issueLabeled:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Add backlog comment - name: Add backlog comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.label.name == 'backlog' }} if: ${{ github.event.label.name == 'backlog' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: > body: >
This issue has been added to the backlog. It is not scheduled This issue has been added to the backlog. It is not scheduled
on the Weblate roadmap, but it eventually might be implemented. on the Weblate roadmap, but it eventually might be implemented.




In case you need this feature soon, please consider helping In case you need this feature soon, please consider helping
or push it by [funding the development](https://weblate.org/support/). or push it by [funding the development](https://weblate.org/support/).
- name: Add undecided comment - name: Add undecided comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.label.name == 'undecided' }} if: ${{ github.event.label.name == 'undecided' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: > body: >
This issue has been put aside. It is currently unclear if it will This issue has been put aside. It is currently unclear if it will
ever be implemented as it seems to cover too narrow of a use case ever be implemented as it seems to cover too narrow of a use case
or doesn't seem to fit into Weblate. or doesn't seem to fit into Weblate.




Please try to clarify the use case or consider proposing something more generic to make it useful to more users. Please try to clarify the use case or consider proposing something more generic to make it useful to more users.
- name: Add question comment - name: Add question comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.label.name == 'question' }} if: ${{ github.event.label.name == 'question' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: > body: >
This issue looks more like a support question than an This issue looks more like a support question than an
issue. We strive to answer these reasonably fast, but issue. We strive to answer these reasonably fast, but
[purchasing the support subscription](https://weblate.org/support/) [purchasing the support subscription](https://weblate.org/support/)
is not only more responsible and faster for your business but also makes Weblate stronger. is not only more responsible and faster for your business but also makes Weblate stronger.




In case your question is already answered, [making a donation](https://weblate.org/donate/) is the right way to say thank you! In case your question is already answered, [making a donation](https://weblate.org/donate/) is the right way to say thank you!
- name: Add translate-toolkit comment - name: Add translate-toolkit comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.label.name == 'translate-toolkit' }} if: ${{ github.event.label.name == 'translate-toolkit' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: > body: >
The issue you've reported needs to be addressed in the [translate-toolkit](https://github.com/translate/translate/). The issue you've reported needs to be addressed in the [translate-toolkit](https://github.com/translate/translate/).
Please file the issue there, and include links to any relevant specifications about the formats (if applicable). Please file the issue there, and include links to any relevant specifications about the formats (if applicable).
- name: Add good first issue comment - name: Add good first issue comment
uses: peter-evans/create-or-update-comment@v1.4.5 uses: peter-evans/create-or-update-comment@v1.4.5
if: ${{ github.event.label.name == 'good first issue' }} if: ${{ github.event.label.name == 'good first issue' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }} issue-number: ${{ github.event.issue.number }}
body: > body: >
This issue seems to be a good fit for newbie contributors. This issue seems to be a good fit for newbie contributors.
You are welcome to contribute to Weblate! Don't hesitate to You are welcome to contribute to Weblate! Don't hesitate to
ask any questions you would have while implementing this. ask any questions you would have while implementing this.




You can learn about how to get started in our You can learn about how to get started in our
[contributors documentation](https://docs.weblate.org/en/latest/contributing/index.html). [contributors documentation](https://docs.weblate.org/en/latest/contributing/index.html).

View file

@ -4,10 +4,10 @@ name: Pre-commit check
on: on:
push: push:
branches-ignore: branches-ignore:
- "dependabot/**" - dependabot/**
- "deepsource-fix-**" - deepsource-fix-**
- "renovate/**" - renovate/**
- weblate - weblate
pull_request: pull_request:


jobs: jobs:
@ -15,25 +15,25 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04


steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
- uses: actions/cache@v2.1.7 - uses: actions/cache@v2.1.7
with: with:
path: | path: |
~/.cache/pip ~/.cache/pip
~/.cache/pre-commit ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }} key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2.3.1 uses: actions/setup-python@v2.3.1
with: with:
python-version: "3.10" python-version: '3.10'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip wheel python -m pip install --upgrade pip wheel
pip install -r requirements-lint.txt pip install -r requirements-lint.txt
- name: Install extras - name: Install extras
run: | run: |
if [ -x .github/pre-commit-extras ] ; then if [ -x .github/pre-commit-extras ] ; then
.github/pre-commit-extras .github/pre-commit-extras
fi fi
- name: pre-commit - name: pre-commit
run: pre-commit run --all run: pre-commit run --all

View file

@ -12,6 +12,6 @@ jobs:
name: Weblate automerge name: Weblate automerge
if: ${{ github.actor == 'weblate' || github.actor == 'pre-commit-ci[bot]' }} if: ${{ github.actor == 'weblate' || github.actor == 'pre-commit-ci[bot]' }}
steps: steps:
- uses: actions-ecosystem/action-add-labels@v1.1.3 - uses: actions-ecosystem/action-add-labels@v1.1.3
with: with:
labels: automerge labels: automerge

View file

@ -1,14 +1,14 @@
# This file is maintained in https://github.com/WeblateOrg/meta/ # This file is maintained in https://github.com/WeblateOrg/meta/


name: "Close stale" name: Close stale
on: on:
schedule: schedule:
- cron: "30 1 * * *" - cron: 30 1 * * *
push: push:
branches: branches:
- main - main
paths: paths:
- .github/workflows/stale.yml - .github/workflows/stale.yml
workflow_dispatch: workflow_dispatch:


jobs: jobs:
@ -19,25 +19,25 @@ jobs:
pull-requests: write pull-requests: write


steps: steps:
- uses: actions/stale@v4 - uses: actions/stale@v4
with: with:
days-before-pr-stale: 30 days-before-pr-stale: 30
days-before-pr-close: 14 days-before-pr-close: 14
days-before-stale: 10 days-before-stale: 10
days-before-close: 4 days-before-close: 4
exempt-issue-labels: bug,enhancement,documentation,security exempt-issue-labels: bug,enhancement,documentation,security
stale-issue-label: wontfix stale-issue-label: wontfix
stale-pr-label: wontfix stale-pr-label: wontfix
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: | stale-issue-message: |
This issue has been automatically marked as stale because there wasnt any recent activity. This issue has been automatically marked as stale because there wasnt any recent activity.


It will be closed soon if no further action occurs. It will be closed soon if no further action occurs.


Thank you for your contributions! Thank you for your contributions!
stale-pr-message: | stale-pr-message: |
This pull request has been automatically marked as stale because there wasnt any recent activity. This pull request has been automatically marked as stale because there wasnt any recent activity.


It will be closed soon if no further action occurs. It will be closed soon if no further action occurs.


Thank you for your contributions! Thank you for your contributions!

View file

@ -7,34 +7,34 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04


steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
# Remove non-installable git packages. There git-svn can not be installed # Remove non-installable git packages. There git-svn can not be installed
# because the image contains newer versions which do not have matching git-svn # because the image contains newer versions which do not have matching git-svn
# in enabled repositories. # in enabled repositories.
- name: APT cleanup - name: APT cleanup
run: sudo apt-get purge git git-man run: sudo apt-get purge git git-man
- name: Exim - name: Exim
run: sudo ./configure-system run: sudo ./configure-system
- name: Bootstrap - name: Bootstrap
run: | run: |
sudo ./bootstrap <<EOT sudo ./bootstrap <<EOT
weblate.example.com weblate.example.com
CI Weblate CI Weblate
https://00000000000000000000000000000000@sentry.example.com/123 https://00000000000000000000000000000000@sentry.example.com/123


0 0
TOKEN TOKEN
EOT EOT
cat /etc/weblate-bootstrap cat /etc/weblate-bootstrap
- name: Exim - name: Exim
run: sudo ./install-exim run: sudo ./install-exim
- name: PostgreSQL - name: PostgreSQL
run: sudo ./install-posgtresql run: sudo ./install-posgtresql
- name: Weblate - name: Weblate
run: sudo ./install-weblate --nocert run: sudo ./install-weblate --nocert
- name: Munin - name: Munin
run: sudo ./install-munin run: sudo ./install-munin
- name: Upgrade - name: Upgrade
run: sudo ./upgrade-weblate --nodiff run: sudo ./upgrade-weblate --nodiff
- name: Upgrade (lazy restart) - name: Upgrade (lazy restart)
run: sudo ./upgrade-weblate --nodiff --lazy-restart run: sudo ./upgrade-weblate --nodiff --lazy-restart

View file

@ -1,29 +1,38 @@
# See https://pre-commit.com for more information # See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 rev: v4.1.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: check-merge-conflict - id: check-merge-conflict
- id: mixed-line-ending - id: mixed-line-ending
args: [--fix=lf] args: [--fix=lf]
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.26.3 rev: v1.26.3
hooks: hooks:
- id: yamllint - id: yamllint
- repo: meta - repo: meta
hooks: hooks:
- id: check-hooks-apply - id: check-hooks-apply
- id: check-useless-excludes - id: check-useless-excludes
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.5.1 rev: v2.2.0
hooks: hooks:
- id: prettier - id: pretty-format-yaml
- repo: https://github.com/shellcheck-py/shellcheck-py args: [--autofix, --indent, '2']
rev: v0.8.0.3 - repo: https://github.com/executablebooks/mdformat
hooks: rev: 0.7.13
- id: shellcheck hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-black
- mdformat-shfmt
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.3
hooks:
- id: shellcheck

View file

@ -5,3 +5,5 @@ rules:
max: 500 max: 500
level: error level: error
document-start: disable document-start: disable
indentation:
indent-sequences: false