GeezerVison is showing github.com — tools: enable strict mode for yamllint · nodejs/node@9dd04eb
File tree
Expand file treeCollapse file tree
Open diff view settings
test/fixtures/test426/.github/workflows
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/nix-changes.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
50 | 50 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
51 | 51 | with: |
52 | 52 | fetch-depth: 2 |
53 | | - persist-credentials: true # We need read access in case we need to fetch in `Compute requisites before change` step |
| 53 | + persist-credentials: true # We need read access in case we need to fetch in `Compute requisites before change` step |
54 | 54 | sparse-checkout: | |
55 | 55 | shell.nix |
56 | 56 | tools/nix/ |
|
Collapse file
Copy file name to clipboardExpand all lines: Makefile +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1739,15 +1739,17 @@ endif |
1739 | 1739 | # python -m pip install yamllint |
1740 | 1740 | # Try with '--system' if it fails without; the system may have set '--user' |
1741 | 1741 | lint-yaml-build: ## Build resources needed to lint YAML files. |
| 1742 | +ifeq ($(YAMLLINT), tools/pip/site-packages/bin/yamllint) |
1742 | 1743 | $(info Pip installing yamllint on $(shell $(PYTHON) --version)...) |
1743 | 1744 | $(PYTHON) -m pip install --upgrade -t tools/pip/site-packages yamllint || \ |
1744 | 1745 | $(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages yamllint |
| 1746 | +endif |
1745 | 1747 |
|
1746 | 1748 | .PHONY: lint-yaml |
1747 | 1749 | ifneq ("","$(wildcard $(YAMLLINT))") |
1748 | 1750 | lint-yaml: ## Lint the YAML files with yamllint. |
1749 | 1751 | $(info Running YAML linter...) |
1750 | | - PYTHONPATH=tools/pip $(YAMLLINT) . |
| 1752 | + PYTHONPATH=tools/pip $(YAMLLINT) --strict . |
1751 | 1753 | else |
1752 | 1754 | lint-yaml: |
1753 | 1755 | $(warning YAML linting with yamllint is not available) |
|
Collapse file
Copy file name to clipboardExpand all lines: test/fixtures/test426/.github/workflows/ci.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
45 | 45 | runs-on: ubuntu-latest |
46 | 46 | permissions: |
47 | 47 | contents: read |
48 | | - id-token: write # for npm trusted publishing |
| 48 | + id-token: write # for npm trusted publishing |
49 | 49 | concurrency: |
50 | 50 | group: npm-publish |
51 | 51 | cancel-in-progress: false |
|