Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit faa39413f33651dc6c2eb246663e3d26411a6f69
Author: Christopher J. Markiewicz <[email protected]>

commit 280f083
Author: Anthony Galassi <[email protected]>

commit 2f25ff2
Author: Anthony Galassi <[email protected]>

commit db08e58
Author: Anthony Galassi <[email protected]>

commit 01ead2e
Author: Anthony Galassi <[email protected]>

commit a9177e3
Author: Anthony Galassi <[email protected]>

commit 816d415
Author: Anthony Galassi <[email protected]>

commit b80e502
Author: Anthony Galassi <[email protected]>

commit c0d082a
Author: Anthony Galassi <[email protected]>

commit 437cab4
Author: Anthony Galassi <[email protected]>
  • Loading branch information
bendhouseart authored and effigies committed Aug 19, 2022
1 parent df45cee commit 59ec7c7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.yaml]
max_line_length = 120
indent_style = space
indent_size = 2
insert_final_newline = true
quote_type = single
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-ast
- id: check-added-large-files
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-ast
- id: check-added-large-files
- id: check-case-conflict
4 changes: 3 additions & 1 deletion .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ rules:
max: 120
indentation:
# See https://github.com/yaml/pyyaml/issues/545 for why
indent-sequences: false
spaces: 2
indent-sequences: true
comments:
level: error
min-spaces-from-content: 1
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

runprettier:
prettier --write "src/schema/**/*.yaml"
python3 -m yamllint -f standard src/schema/ -c .yamllint.yml

SCHEMA_CHANGES := $(shell git diff --name-only | grep src/schema/*.yaml)

commitschema:
@echo SCHEMA_CHANGES $(SCHEMA_CHANGES)
git add src/schema/*.yaml && \
git commit -m "[git-blame-ignore-rev] prettified schema files." && \
git log --grep "\[git-blame-ignore-rev\]" --pretty=format:"# %ai - %ae - %s%n%H" >> .git-blame-ignore-revs \
|| true

formatschema: runprettier commitschema

all:

.PHONY: runprettier commitschema

0 comments on commit 59ec7c7

Please sign in to comment.