Skip to content

Commit fe4c1cb

Browse files
committed
Add formatting configuration
1 parent c286fd6 commit fe4c1cb

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
root = true
2+
3+
[Makefile]
4+
indent_style = tab
5+
6+
[*.{html,py,js,yml}]
7+
charset = utf-8
8+
9+
[*.js]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.yml]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.html]
18+
indent_style = space
19+
indent_size = 4
20+
21+
[*.py]
22+
indent_style = space
23+
indent_size = 4
24+
line_length = 79
25+
multi_line_output = 3

pyproject.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "toggl_python"
33
version = "0.2.6"
4-
description = "Python wraper for Toggl API."
4+
description = "Python wrapper for Toggl API."
55
authors = ["Ivlev Denis <[email protected]>"]
66
readme = "README.md"
77
homepage = "https://github.com/evrone/toggl_python"
@@ -27,6 +27,28 @@ respx = "^0.16"
2727
black = "^20.8b1"
2828
ipython = "^7.19.0"
2929

30+
[tool.black]
31+
line-length = 79
32+
target-version = ['py38']
33+
include = '\.pyi?$'
34+
exclude = '''
35+
(
36+
/(
37+
\.eggs # exclude a few common directories in the
38+
| \.git # root of the project
39+
| \.hg
40+
| \.mypy_cache
41+
| \.tox
42+
| \.venv
43+
| _build
44+
| buck-out
45+
| build
46+
| dist
47+
)/
48+
| foo.py # also separately exclude a file named foo.py in
49+
# the root of the project
50+
)
51+
'''
3052

3153
[build-system]
3254
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)