Skip to content

Commit 64db18a

Browse files
authored
Add basic editor configs (#75)
These are helpful for persisting style preferences across IDEs & tools. e.g. by default PyCharm likes to follow PEP8, so dumps a *heap* of errors. Also ignore idea project files.
1 parent 2a33920 commit 64db18a

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
# Unix-style newlines with a newline ending every file
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
8+
# 4 space indentation
9+
[*.py]
10+
charset = utf-8
11+
indent_style = space
12+
indent_size = 4
13+
max_line_length = 100

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
*.egg-info
88
.DS_Store
99
__pycache__
10+
*.iml

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[tool.pytype]
2-
inputs = ['google', 'tests']
2+
inputs = ['google', 'tests']
3+
4+
[tool.black]
5+
line-length = 100

0 commit comments

Comments
 (0)