GeezerVison is showing github.com — tools: enable strict mode for yamllint · nodejs/node@8dfdbb5
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 |
|---|
@@ -1715,15 +1715,17 @@ endif |
1715 | 1715 | # python -m pip install yamllint |
1716 | 1716 | # Try with '--system' if it fails without; the system may have set '--user' |
1717 | 1717 | lint-yaml-build: ## Build resources needed to lint YAML files. |
| 1718 | +ifeq ($(YAMLLINT), tools/pip/site-packages/bin/yamllint) |
1718 | 1719 | $(info Pip installing yamllint on $(shell $(PYTHON) --version)...) |
1719 | 1720 | $(PYTHON) -m pip install --upgrade -t tools/pip/site-packages yamllint || \ |
1720 | 1721 | $(PYTHON) -m pip install --upgrade --system -t tools/pip/site-packages yamllint |
| 1722 | +endif |
1721 | 1723 |
|
1722 | 1724 | .PHONY: lint-yaml |
1723 | 1725 | ifneq ("","$(wildcard $(YAMLLINT))") |
1724 | 1726 | lint-yaml: ## Lint the YAML files with yamllint. |
1725 | 1727 | $(info Running YAML linter...) |
1726 | | - PYTHONPATH=tools/pip $(YAMLLINT) . |
| 1728 | + PYTHONPATH=tools/pip $(YAMLLINT) --strict . |
1727 | 1729 | else |
1728 | 1730 | lint-yaml: |
1729 | 1731 | $(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 |
|