mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
ci: lint editorconfig checker
This commit is contained in:
parent
0e150382e1
commit
67c8c78426
16
.ecrc
Normal file
16
.ecrc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"Verbose": false,
|
||||||
|
"Debug": false,
|
||||||
|
"IgnoreDefaults": false,
|
||||||
|
"NoColor": false,
|
||||||
|
"Exclude": ["LICENSES", "\\.asc$"],
|
||||||
|
"SpacesAfterTabs": false,
|
||||||
|
"Disable": {
|
||||||
|
"EndOfLine": false,
|
||||||
|
"Indentation": false,
|
||||||
|
"IndentSize": false,
|
||||||
|
"InsertFinalNewline": false,
|
||||||
|
"TrimTrailingWhitespace": false,
|
||||||
|
"MaxLineLength": false
|
||||||
|
}
|
||||||
|
}
|
@ -18,3 +18,6 @@ indent_size = 8
|
|||||||
|
|
||||||
[*.{md,sh,yaml,yml,toml}]
|
[*.{md,sh,yaml,yml,toml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[.reuse/dep5]
|
||||||
|
indent_size = 1
|
||||||
|
7
.github/workflows/main.yaml
vendored
7
.github/workflows/main.yaml
vendored
@ -34,12 +34,12 @@ jobs:
|
|||||||
run: sudo apt-get -y update
|
run: sudo apt-get -y update
|
||||||
- name: Install OS packages
|
- name: Install OS packages
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: sudo apt-get install -y $(cat dev-deps-debian.txt)
|
run: sudo apt-get install -y $(cat dependencies/debian.txt)
|
||||||
- name: Remove externally managed python environment flag
|
- name: Remove externally managed python environment flag
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: sudo dpkg-divert --rename --add /usr/lib/$(py3versions -d)/EXTERNALLY-MANAGED
|
run: sudo dpkg-divert --rename --add /usr/lib/$(py3versions -d)/EXTERNALLY-MANAGED
|
||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
run: pip3 install $(cat dev-deps-pip.txt)
|
run: pip3 install $(cat dependencies/pip.txt)
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -48,6 +48,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SPEC_VENDOR: Github Actions
|
SPEC_VENDOR: Github Actions
|
||||||
SPEC_PACKAGER: Github Actions
|
SPEC_PACKAGER: Github Actions
|
||||||
|
- uses: editorconfig-checker/action-editorconfig-checker@main
|
||||||
|
- name: Run Editorconfig Checker
|
||||||
|
run: editorconfig-checker
|
||||||
- name: Lint commits
|
- name: Lint commits
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: |
|
run: |
|
||||||
|
@ -27,6 +27,10 @@ repos:
|
|||||||
entry: scripts/shell-lint.sh
|
entry: scripts/shell-lint.sh
|
||||||
language: script
|
language: script
|
||||||
pass_filenames: true
|
pass_filenames: true
|
||||||
|
# yamllint disable rule:line-length
|
||||||
|
files: (\.sh|/rc\.local\.d/.*\.rc|/bin/.*|/rpc/.*|/network-hooks\.d/.*|/qubes-firewall\.d/.*|/(lib-)?qubes-bind-dirs\.d/.*|/\.config/(sh|bash|zsh|less|x11|git/shell|git/template/hooks)/.*|/autostart-scripts/.*|/qvm-copy-dotfiles|/git-core/.*)
|
||||||
|
# yamllint disable rule:line-length
|
||||||
|
exclude: \.(policy|asc|txt|top|sls|jinja|toml|vim|py|muttrc|nft|md|spec|list|sources|repo|socket|timer|service|y(a)?ml)$
|
||||||
description: Lint Shellscripts
|
description: Lint Shellscripts
|
||||||
|
|
||||||
- id: markdown-lint
|
- id: markdown-lint
|
||||||
@ -67,6 +71,7 @@ repos:
|
|||||||
args: [test]
|
args: [test]
|
||||||
language: script
|
language: script
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
files: salt/\S+/README.md
|
||||||
description: Check if .qubesbuilder is up to date
|
description: Check if .qubesbuilder is up to date
|
||||||
|
|
||||||
- id: spec-gen
|
- id: spec-gen
|
||||||
|
@ -7,14 +7,10 @@ Files: README.md */README.md docs/* .github/*_TEMPLATE/* .github/*.md
|
|||||||
Copyright: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
Copyright: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||||
License: CC-BY-SA-4.0
|
License: CC-BY-SA-4.0
|
||||||
|
|
||||||
Files: version salt/*/version
|
Files: version salt/*/version dependencies/* .ecrc
|
||||||
Copyright: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
Copyright: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||||
License: CC0-1.0
|
License: CC0-1.0
|
||||||
|
|
||||||
Files: dependencies/*
|
|
||||||
Copyright: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
||||||
License: CC0-1.0
|
|
||||||
|
|
||||||
Files: salt/electrum/files/client/keys/*
|
Files: salt/electrum/files/client/keys/*
|
||||||
Copyright: SomberNight/ghost43 <somber.night@protonmail.com>
|
Copyright: SomberNight/ghost43 <somber.night@protonmail.com>
|
||||||
Stephan Oeste <stephan@oeste.de>
|
Stephan Oeste <stephan@oeste.de>
|
||||||
|
Loading…
Reference in New Issue
Block a user