Skip to content

Commit

Permalink
Add editorconfig and editorconfig-checker
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
yubiuser committed Jan 14, 2023
1 parent 5b53fe3 commit 073fe70
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig is awesome: https://editorconfig.org/

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
insert_final_newline = true
indent_style = space
indent_size = tab
tab_width = 4
charset = utf-8
trim_trailing_whitespace = true

[*.yml]
tab_width = 2

[*.md]
tab_width = 2

[*.json]
indent_size = 2
14 changes: 14 additions & 0 deletions .github/workflows/editorconfig-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: editorconfig-checker

on:
pull_request:
push:

jobs:
build:
name: editorconfig-checker
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ site_name: 'Pi-hole documentation'
site_url: 'https://docs.pi-hole.net/'
repo_url: 'https://github.com/pi-hole/pi-hole'
edit_uri: '../docs/blob/master/docs/'
copyright:
copyright:
remote_branch: gh-pages
theme:
name: 'material'
Expand Down
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8
3.8

0 comments on commit 073fe70

Please sign in to comment.