Skip to content

Commit a6e0e9c

Browse files
committed
Set up editorconfig-checker
1 parent b180337 commit a6e0e9c

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
trim_trailing_whitespace = true
9+
10+
[*.bat]
11+
end_of_line = crlf
12+
13+
[*.hex]
14+
end_of_line = crlf

.gitlab-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ include: https://gitlab.sensirion.lokal/Sensirion/Python/ci-config-python/raw/ma
33
check_rst_syntax:
44
extends: .check_rst_syntax_v2
55

6+
check_editorconfig:
7+
extends: .check_editorconfig_v2
8+
69

710
py2p7_linux_build:
811
extends: .py2p7_linux_build_v2

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ pip install -e .[test] # Install requirements
2727
flake8 # Run style check
2828
```
2929

30+
In addition, we check the formatting of files with
31+
[`editorconfig-checker`](https://editorconfig-checker.github.io/):
32+
33+
```bash
34+
pip install editorconfig-checker==2.0.3 # Install requirements
35+
editorconfig-checker # Run check
36+
```
37+
3038
### Run tests
3139

3240
Unit tests can be run with [`pytest`](https://pytest.org/):

0 commit comments

Comments
 (0)