Skip to content

Commit

Permalink
ci: lint editorconfig checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Jul 8, 2024
1 parent 0e15038 commit 67c8c78
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -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
}
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ indent_size = 8

[*.{md,sh,yaml,yml,toml}]
indent_size = 2

[.reuse/dep5]
indent_size = 1
7 changes: 5 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
run: sudo apt-get -y update
- name: Install OS packages
# 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
# yamllint disable-line rule:line-length
run: sudo dpkg-divert --rename --add /usr/lib/$(py3versions -d)/EXTERNALLY-MANAGED
- name: Install pip packages
run: pip3 install $(cat dev-deps-pip.txt)
run: pip3 install $(cat dependencies/pip.txt)
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -48,6 +48,9 @@ jobs:
env:
SPEC_VENDOR: Github Actions
SPEC_PACKAGER: Github Actions
- uses: editorconfig-checker/action-editorconfig-checker@main
- name: Run Editorconfig Checker
run: editorconfig-checker
- name: Lint commits
# yamllint disable-line rule:line-length
run: |
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ repos:
entry: scripts/shell-lint.sh
language: script
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

- id: markdown-lint
Expand Down Expand Up @@ -67,6 +71,7 @@ repos:
args: [test]
language: script
pass_filenames: false
files: salt/\S+/README.md
description: Check if .qubesbuilder is up to date

- id: spec-gen
Expand Down
6 changes: 1 addition & 5 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ Files: README.md */README.md docs/* .github/*_TEMPLATE/* .github/*.md
Copyright: 2023 - 2024 Benjamin Grande M. S. <[email protected]>
License: CC-BY-SA-4.0

Files: version salt/*/version
Files: version salt/*/version dependencies/* .ecrc
Copyright: 2023 - 2024 Benjamin Grande M. S. <[email protected]>
License: CC0-1.0

Files: dependencies/*
Copyright: 2024 Benjamin Grande M. S. <[email protected]>
License: CC0-1.0

Files: salt/electrum/files/client/keys/*
Copyright: SomberNight/ghost43 <[email protected]>
Stephan Oeste <[email protected]>
Expand Down

0 comments on commit 67c8c78

Please sign in to comment.