Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: fix: parameters for double space indent #51

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mihaigalos
Copy link

@mihaigalos mihaigalos commented May 26, 2023

This PR fixes the syntax to achieve 2-spaced formatting - see #43.

@mihaigalos mihaigalos changed the title Docs: Improve docs: Improve May 26, 2023
@mihaigalos mihaigalos changed the title docs: Improve fix: parameters for double space indent May 26, 2023
@mihaigalos mihaigalos changed the title fix: parameters for double space indent WIP: fix: parameters for double space indent May 26, 2023
@mihaigalos mihaigalos marked this pull request as draft May 26, 2023 20:42
@mihaigalos
Copy link
Author

Seems this works:

 ---
 repos:
-    - repo: https://github.com/pre-commit/pre-commit-hooks
-      rev: v4.4.0
-      hooks:
-          - id: check-yaml
-          - id: trailing-whitespace
-    - repo: https://github.com/mihaigalos/pre-commit-hook-yamlfmt
-      rev: 0.2.3
-      hooks:
-          - id: yamlfmt
-            args: [--mapping, '4', --sequence, '4', --offset, '2', --colons, --width, '150']
-    - repo: https://github.com/mihaigalos/pre-commit-rust
-      rev: v1.0
-      hooks:
-          - id: cargo-check
-          - id: clippy
-          - id: fmt
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.4.0
+    hooks:
+      - id: check-yaml
+      - id: trailing-whitespace
+  - repo: https://github.com/mihaigalos/pre-commit-hook-yamlfmt
+    rev: 0.2.3
+    hooks:
+      - id: yamlfmt
+        args: [--mapping, '4', --sequence, '4', --offset, '2', --colons, --width, '150']
+  - repo: https://github.com/mihaigalos/pre-commit-rust
+    rev: v1.0
+    hooks:
+      - id: cargo-check
+      - id: clippy
+      - id: fmt

But formatting on GH Actions seems broken, still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant