Skip to content

Commit 674f89c

Browse files
committed
Add yamllint
1 parent 8fd37f2 commit 674f89c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.yamllint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# yamllint configuration file: https://yamllint.readthedocs.io/
2+
extends: relaxed
3+
4+
rules:
5+
line-length: disable
6+

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Directories
22
SRC_PATHS := project_name/ test/ # TODO
3+
YAML_PATHS := .github/
34

45
# Targets
56
.PHONY: help
@@ -9,6 +10,7 @@ help:
910
@echo " format : Format code using Ruff format"
1011
@echo " check_format : Check code formatting with Ruff format"
1112
@echo " ruff : Run Ruff linter"
13+
@echo " yamllint : Run yamllint linter"
1214
@echo " pylint : Run Pylint linter"
1315
@echo " mypy : Run MyPy static type checker"
1416
@echo " lint : Run linters (Ruff, Pylint and Mypy)"
@@ -36,6 +38,11 @@ ruff:
3638
@echo "=====> Running Ruff..."
3739
@poetry run ruff check $(SRC_PATHS)
3840

41+
.PHONY: yamllint
42+
yamllint:
43+
@echo "=====> Running yamllint..."
44+
@poetry run yamllint $(YAML_PATHS)
45+
3946
.PHONY: pylint
4047
pylint:
4148
@echo "=====> Running Pylint..."
@@ -47,7 +54,7 @@ mypy:
4754
@poetry run mypy $(SRC_PATHS)
4855

4956
.PHONY: lint
50-
lint: ruff pylint mypy
57+
lint: ruff yamllint pylint mypy
5158

5259
.PHONY: test
5360
test:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ pytest = "*"
1313

1414
[tool.poetry.group.dev.dependencies]
1515
mypy = "*"
16-
ruff = "*"
1716
pylint = "*"
17+
ruff = "*"
18+
yamllint = "*"
1819

1920
[tool.ruff]
2021
line-length = 100

0 commit comments

Comments
 (0)