Skip to content

Commit

Permalink
Merge pull request jgonggrijp#110 from realshouzy/add-line-length-gui…
Browse files Browse the repository at this point in the history
…deline

Configs And Docs: Add ``.editorconfig`` and update guidelines in ``CONTRIBUTING.md``
  • Loading branch information
jgonggrijp authored Aug 30, 2023
2 parents 659da2c + 472e40c commit 6f9779c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://editorconfig.org/
root = true

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

[*.py]
indent_size = 4
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ Any kind of contribution is welcome; nothing is "off limits". However, for those

This repo ([jgonggrijp/pip-review](https://github.com/jgonggrijp/pip-review)) uses [gitflow](https://github.com/nvie/gitflow). Please submit pull requests to the `develop` branch.

The Python files use 4-space soft tabs. The other files use 2-space soft tabs.
To maintain consistent coding style and formatting across the project, an [``EditorConfig`` file](/.editorconfig) has been set up, in order to guarantee that all contributors use the same settings for indentation, character encoding, line endings etc.

Additionally, please ensure that lines of code do not exceed a **maximum length of 79 characters** to further enhance readability and consistency of the project.

0 comments on commit 6f9779c

Please sign in to comment.