-
Notifications
You must be signed in to change notification settings - Fork 107
/
pyproject.toml
149 lines (127 loc) · 3.93 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
[project]
name = "icepyx"
description = "Python tools for obtaining and working with ICESat-2 data"
license = {file = "LICENSE"}
readme = "README.rst"
requires-python = ">=3.9"
dynamic = ["version", "dependencies"]
authors = [
{name = "The icepyx Developers", email = "[email protected]"},
]
maintainers = [
{name = "The icepyx Developers", email = "[email protected]"},
]
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries",
]
[project.urls]
Homepage = "https://icepyx.readthedocs.io"
Documentation = "https://icepyx.readthedocs.io"
Repository = "https://github.com/icesat2py/icepyx"
Issues = "https://github.com/icesat2py/icepyx/issues"
Changelog = "https://icepyx.readthedocs.io/en/latest/user_guide/changelog/index.html"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=66", "wheel", "setuptools_scm"]
[tool.setuptools]
py-modules = ["_icepyx_version"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[project.optional-dependencies]
viz = ["geoviews >= 1.9.0", "cartopy >= 0.18.0", "scipy"]
complete = ["icepyx[viz]"]
[tool.setuptools.packages.find]
exclude = ["*tests"]
[tool.setuptools_scm]
version_file = "_icepyx_version.py"
version_file_template = 'version = "{version}"'
local_scheme = "node-and-date"
fallback_version = "unknown"
[tool.codespell]
ignore-words-list = "aas,socio-economic,toi"
[tool.ruff]
# DevGoal: Lint and format all Jupyter Notebooks, remove below.
extend-exclude = ["*.ipynb"]
# [tool.ruff.format]
# docstring-code-format = true
# docstring-code-line-length = "dynamic"
[tool.ruff.lint]
# DevGoal: Enable "ARG" and "B" rulesets ASAP!
select = [
# "ARG", # flake8-unused-arguments
# "B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
# "EM", # flake8-errmsg
"EXE", # flake8-executable
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"NPY", # NumPy specific rules
# "PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
# "PL", # pylint
# "PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
# "RET", # flake8-return
# "RUF", # Ruff-specific
"SIM", # flake8-simplify
# "T20", # flake8-print
# "UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
# Line too long
# NOTE: This is a formatting concern. Formatter handles long lines of code,
# but allows inline comments to be infinitely long (automatically formatting
# them can have unintended consequences). In our codebase, we have a lot of
# overlong comments.
# See: https://github.com/psf/black/issues/1713#issuecomment-1357045092
"E501",
"SIM105", # suppressible-exception
]
[tool.ruff.lint.per-file-ignores]
# Ignore import violations in all `__init__.py` files and doc config
"__init__.py" = ["E402", "F401"]
"doc/source/conf.py" = ["E402", "F401"]
# Ignore line length in test file containing some very long test strings
"test_granules.py" = ["E501"]
"test_spatial.py" = ["E501"]
# Ignore too many leading '#' for block comment
"*/tests/*" = ["E266"]
[tool.ruff.lint.isort]
force-sort-within-sections = true
[tool.pyright]
pythonVersion = "3.9"
# DevGoal: "strict"
typeCheckingMode = "standard"
include = [
"icepyx",
]
exclude = [
"**/__pycache__",
"icepyx/tests",
]
# DevGoal: Remove all ignores
ignore = [
"icepyx/quest/*",
"icepyx/core/auth.py",
"icepyx/core/is2ref.py",
"icepyx/core/read.py",
"icepyx/core/spatial.py",
"icepyx/core/variables.py",
"icepyx/core/visualization.py",
]