Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 6ccef4e

Browse files
djdsSamuel Hassine
andauthored
[ci] Add yamllint config; lint YAML (#169)
* [client] Add black-compatible isort config * https://pycqa.github.io/isort/ * https://black.readthedocs.io/en/stable/compatible_configs.html#isort * [client] Sort all imports with isort * [client] Add isort to pre-commit hooks * [ci] Add yamllint config; lint YAML Co-authored-by: Samuel Hassine <[email protected]>
1 parent 5e38b45 commit 6ccef4e

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2.1
23

34
jobs:

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
---
12
open_collective: opencti

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ repos:
88
rev: 20.8b1
99
hooks:
1010
- id: black
11+
- repo: https://github.com/adrienverge/yamllint
12+
rev: v1.26.1
13+
hooks:
14+
- id: yamllint
1115
- repo: https://github.com/pre-commit/pre-commit-hooks
1216
rev: v3.3.0
1317
hooks:

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# .readthedocs.yml
23
# Read the Docs configuration file
34
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

.yamllint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
extends: default
3+
rules:
4+
indentation:
5+
spaces: 2
6+
indent-sequences: consistent
7+
line-length:
8+
level: warning

0 commit comments

Comments
 (0)