Skip to content

Commit ce068a2

Browse files
committed
Add .editorconfig file
This adds settings based on some common-sense values and the TensorFlow Quantum project's current conventions, such as line length and use of spaces instead of tabs. The settings match the corresponding ones in `.pylintrc`.
1 parent 7a83907 commit ce068a2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Summary: coding style configuration for editors that read .editorconfig.
2+
#
3+
# EditorConfig defines a file format for specifying some common coding style
4+
# parameters. Many editors recognize .editorconfig files automatically, and
5+
# there exist plugins for other editors. See https://spec.editorconfig.org/.
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
spelling_language = en-US
14+
trim_trailing_whitespace = true
15+
16+
[*.py]
17+
indent_size = 4
18+
indent_style = space
19+
max_line_length = 80
20+
21+
[*.sh]
22+
indent_size = 4
23+
indent_style = space
24+
max_line_length = 80
25+
26+
[*.yml,*.yaml]
27+
indent_size = 2

0 commit comments

Comments
 (0)