-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
119 lines (99 loc) · 2.62 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
# ... other project metadata fields as specified in:
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[build-system]
requires = [
"setuptools>=64",
"setuptools-scm>=8",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "fire2a-lib"
authors = [
{name = "Fernando Badilla", email = "[email protected]"},
]
description = "Algorithms and tools python package for Forest Fire Research, Management and Analytics"
readme = "README.md"
requires-python = ">=3.9"
keywords = ["fire", "wildfires", "forest fires", "fire management", "fire analytics", "fire research", "fire modeling"]
license = "GPL-3.0-or-later"
classifiers = [
"Programming Language :: Python :: 3",
]
dynamic = ["version"]
dependencies = [
"matplotlib",
"networkx>=2.7",
"numpy<2; python_version < '3.11'",
"numpy; python_version >= '3.11'",
"pandas",
"pyomo",
"scikit-learn",
"scipy",
"toml"
]
[tool.setuptools_scm]
version_file = "src/fire2a/_version.py"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"-ra",
"--import-mode=importlib",
]
pythonpath = [
"src"
]
[project.urls]
homepage = "https://www.fire2a.com"
documentation = "https://fire2a.github.io/fire2a-lib"
repository = "https://github.com/fire2a/fire2a-lib"
# changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"
# true by default
# [tool.setuptools]
# include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
# equivalent to MANIFEST.in
# [tool.setuptools.package-data]
# "fire2a" = ["src/fire2a/DB_DMC/*.csv"]
[project.scripts]
gdal_calc_norm = "fire2a.raster.gdal_calc_norm:main"
gdal_calc_sum = "fire2a.raster.gdal_calc_sum:main"
# FIXME What about using an extension ? gdal_calc_sum.py !
# my-script = "mypkg.my_module:main"
# [project.gui-scripts]
# spam-gui = "spam:main_gui"
# [project.entry-points."spam.magical"]
# tomatoes = "spam:main_tomatoes"
# [project.optional-dependencies]
# pdf = ["ReportLab>=1.2", "RXP"]
# rest = ["docutils>=0.3", "pack ==1.1, ==1.3"]
# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html
[tool.black]
enabled = true
line-length = 120
preview = true
[tool.isort]
line_length = 120
[tool.pylint.BASIC]
good-names = ["i",
"j",
"k",
"H",
"W",
"df",
"dt",
"dx",
"dy",
"ok",
"_",
]
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylsp-mypy]
enabled = true
[tool.ruff]
line-length = 120
# Disable fix for unused imports (`F401`).
[tool.ruff.lint]
unfixable = ["F401"]