-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (74 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
85 lines (74 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "ecodata"
dynamic = ["version", "dependencies", "optional-dependencies"]
description = ""
classifiers = [
"Programming Language :: Python :: 3"
]
[tool.setuptools.packages.find]
where = ["."]
include = ["ecodata*"]
[tool.setuptools_scm]
write_to = "ecodata/__version__.py"
[tool.setuptools.package-data]
"ecodata.datasets" = [
"small_datasets/*.csv",
"small_datasets/*.gdb/*",
"small_datasets/*.shp",
]
"*" = [
"*.yaml",
"*.css",
"*.html"
]
[tool.isort]
profile = "black"
multi_line_output = 3
skip_glob = ["*env*/*"]
[tool.black]
line-length = 120
experimental-string-processing = true
# This is a regular expression (hence the \. is escaping the ., and not a literal \.)
exclude = '''
(
/(\.git
| \.hg
| \.mypy_cache
| \.tox
| .*env.*
| _build
| buck-out
| build
| dist
| docs/*
| scratch/*
)
)
'''
[tool.flakeheaven]
# 80 chars aren't enough in 21 century
max_line_length = 120
# show line of source code in output
show_source = true
exclude = [
"scratch",
".git",
"__pycache__",
"docs",
"build",
"dist",
"tests",
"venv",
".ipynb_checkpoints"
]
# list of plugins and rules for them
[tool.flakeheaven.plugins]
pyflakes = ["+*"]
# all pycodestyle except line break before binary operator because we use binary break after line break as recommended
# And ignore module level imports not at top of file because of jupyter notebook examples
pycodestyle = ["+*", "-W503", "-E402"]
[tool.jupytext]
formats = "apps/notebooks///ipynb,apps/scripts///py:percent"