Skip to content

Comments

WIP: fix: parameters for double space indent#51

Draft
mihaigalos wants to merge 1 commit intojumanjihouse:masterfrom
mihaigalos:fix/offset-parameters
Draft

WIP: fix: parameters for double space indent#51
mihaigalos wants to merge 1 commit intojumanjihouse:masterfrom
mihaigalos:fix/offset-parameters

Conversation

@mihaigalos
Copy link

@mihaigalos mihaigalos commented May 26, 2023

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

@mihaigalos mihaigalos force-pushed the fix/offset-parameters branch from 1d76318 to d620e71 Compare May 26, 2023 17:58
@mihaigalos mihaigalos changed the title Docs: Improve docs: Improve May 26, 2023
@mihaigalos mihaigalos force-pushed the fix/offset-parameters branch from d620e71 to fcc7e94 Compare May 26, 2023 18:04
@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