-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
152 lines (135 loc) · 3.3 KB
/
pyproject.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[tool.poetry]
name = "easier_tools"
version = "0.1.0"
description = "EASIER is our sandbox env for developing and testing all things Dweb."
authors = [
"John Solly <[email protected]>",
"Seth Docherty <[email protected]>",
"Zheng Liu <[email protected]>",
"Matthew Nanas <[email protected]>",
]
readme = "README.md"
repository = "https://github.com/easierdata/easier"
license = "MIT License"
packages = []
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
boto3 = "==1.26.160"
browser-cookie3 = "==0.19.1"
fiona = "==1.9.4.post1"
flask = "==2.3.2"
flask-cors = "==3.0.10"
folium = "==0.14.0"
geopandas = "==0.13.2"
matplotlib = "==3.7.1"
numpy = "==1.25.0"
mapclassify = "==2.5.0" # Used for geoDataFrame.explore()
pandas = "==2.0.2"
planetary-computer = "==0.5.1"
pyproj = "==3.6.0"
pystac-client = "==0.7.1"
python-dotenv = "==1.0.0" # Used for .env file
requests = "==2.31.0"
rich = "==13.4.2"
rtree = "==1.0.1"
scipy = "==1.10.1" # KDtree
shapely = "==2.0.1"
ipfs-api = "==0.2.3"
ipykernel = "^6.21.1" # Package provides the required kernal to run jupyter notebooks
ipywidgets = "^8.1.2"
beautifulsoup4 = "^4.12.3"
aiohttp = "^3.9.3"
aiofiles = "^23.2.1"
tqdm = "^4.66.2"
jupyterlab = "^4.1.5"
[tool.poetry.group.dev.dependencies]
black = "==23.3.0" # formatting
ruff = "^0.1.5"
isort = "^5.12.0"
pre-commit = "==3.3.3" # Used for pre-commit hooks
mypy = "^1.9.0"
# flake8 = "==6.0.0" # for linting
[tool.poetry.scripts]
get-gedi-details = "easier_tools.pyScripts.gather_gedi_inventory:extract_gedi_details"
update-netrc = "easier_tools.utils.update_netrc_file:update_netrc_file"
[tool.black]
line-length = 88
include = '''
(
\.pyi?$
| \.ipynb$
)
'''
exclude = '''
/(
^\.git
| ^\.mypy_cache
| __pycache__
| ^\.venv
)/
'''
[tool.ruff]
# Same as Black.
line-length = 88
# The directories to consider/allow import relative to the project root directory.
#src = ["code", "data", "output"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
# Note, if using pre-commit, ensure that ruff is placed before other formatting tool
# hooks as the autofix behavior can output code changes that require reformatting.
fix = true
# Enumerate all fixed violations and the associated violation id.
show-fixes = true
# Common file and directory settings to include/exclude.
include = ["*.py", "*.pyi", "*.ipynb"]
exclude = [
"__pycache__",
"__pypackages__",
".direnv",
".eggs",
".git-rewrite",
".git",
".mypy_cache",
".pytest_cache",
".pytype",
".ruff_cache",
".tox",
".venv",
"build",
"dist",
"venv",
]
extend-exclude = [
".vscode/*.json",
"**/Archive/*.py",
"**/Archive/*.ipynb",
"**/validate_cloud_optimized_geotiff.py",
]
[tool.ruff.lint]
# A list of rule codes or prefixes to enable
# Vist link to get more info on rules: https://beta.ruff.rs/docs/rules/
ignore = ["E501", "PTH", "C", "INT"]
select = [
"B",
"E",
"F",
"W",
"B9",
"I",
"Q",
"ISC",
"INP",
"PTH",
"FLY",
"PERF",
"RUF",
]
unfixable = []
[tool.mypy]
# Vist link to get more info on rules: https://mypy.readthedocs.io/en/stable/config_file.html
exclude = ['.venv']
pretty = true
show_column_numbers = true
show_error_context = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"