Skip to content

Commit

Permalink
Add .editorconfig file
Browse files Browse the repository at this point in the history
This adds settings based on some common-sense values and the Qualtran
project's current conventions, such as line length and use of spaces
instead of tabs. The settings match the corresponding ones in
`.pylintrc`.
  • Loading branch information
mhucka committed Feb 27, 2025
1 parent 7be77d7 commit 13df1ea
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Summary: coding style configuration for editors that read .editorconfig.
#
# EditorConfig defines a file format for specifying some common coding style
# parameters. Many editors recognize .editorconfig files automatically, and
# there exist plugins for other editors. See https://spec.editorconfig.org/.

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
spelling_language = en-US
trim_trailing_whitespace = true

[*.py]
indent_size = 4
indent_style = space
max_line_length = 100

[*.sh]
indent_size = 4
indent_style = space
max_line_length = 100

[*.yml,*.yaml]
indent_size = 2

0 comments on commit 13df1ea

Please sign in to comment.