Skip to content

Commit 9ad4fdc

Browse files
committed
- .editorconfig - Universal editor configuration (works with all IDEs)
- .flake8 - Flake8 configuration that PyCharm automatically reads
1 parent 13d1237 commit 9ad4fdc

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EditorConfig for Python project
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.py]
13+
indent_style = space
14+
indent_size = 4
15+
max_line_length = 127
16+
17+
[*.{yml,yaml}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.{json,md}]
22+
indent_style = space
23+
indent_size = 2

.flake8

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[flake8]
2+
max-line-length = 127
3+
max-complexity = 10
4+
ignore = C901,W503,W504
5+
exclude =
6+
.git,
7+
__pycache__,
8+
.venv,
9+
venv,
10+
env,
11+
build,
12+
dist,
13+
*.egg-info,
14+
.tox,
15+
.pytest_cache,
16+
htmlcov
17+
show-source = True
18+
show-pep8 = True
19+
count = True
20+
statistics = True
21+
per-file-ignores =
22+
__init__.py:F401,F403

0 commit comments

Comments
 (0)