Skip to content

Commit

Permalink
EditorConfig support
Browse files Browse the repository at this point in the history
Add an EditorConfig configuration file to easy configure some code style
parameters.

+info: https://editorconfig.org/
  • Loading branch information
edubxb authored and philpep committed Oct 31, 2019
1 parent a3089e3 commit 2cca1c9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.py]
max_line_length = 79

[*.yml]
indent_size = 2
max_line_length = 79

[doc/**.rst]
max_line_length = 79

[Dockerfile]
indent_size = 2

[Makefile]
indent_style = tab
max_line_length = 79
5 changes: 3 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
recursive-include testinfra *.py
recursive-include testinfra *.py
recursive-include test *.py ssh_key
recursive-include images Dockerfile
recursive-include doc *.py *.rst *.svg
include doc/source/_templates/piwik.html
include doc/Makefile
include tox.ini
include tox.ini
include Makefile
include README.rst CONTRIBUTING.rst CHANGELOG.rst
include pylintrc
Expand All @@ -13,3 +13,4 @@ include ansible.cfg
include dev-requirements.txt
include test-requirements.txt
include LICENSE
prune .editorconfig

0 comments on commit 2cca1c9

Please sign in to comment.