-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
153 lines (127 loc) · 3.71 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
153
[project]
name = "aok"
description = "Calculating Ocean Kd from ICESat-2 (ATLAS) data"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.11"
dynamic = ["version", "dependencies"]
authors = [
{name = "AOK Development Team", email = "[email protected]"},
]
maintainers = [
{name = "AOK Development Team", 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.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"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/aok"
Issues = "https://github.com/icesat2py/aok/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 = ["_aok_version"]
##### DEPENDENCIES #####
[tool.setuptools.dynamic]
dependencies = [
"numpy",
]
[project.optional-dependencies]
dev = [
"pre-commit",
"pyright",
"pytest",
]
complete = ["aok[dev]"]
##### SETUPTOOLS #####
[tool.setuptools.packages.find]
exclude = ["*tests"]
[tool.setuptools_scm]
version_file = "_aok_version.py"
version_file_template = 'version = "{version}"'
local_scheme = "node-and-date"
fallback_version = "unknown"
##### LINTING, FORMATTING, TYPING #####
[tool.codespell]
ignore-words-list = "aok"
[tool.pyright]
pythonVersion = "3.11"
# More relaxed option: "standard"
typeCheckingMode = "strict"
include = [
"aok",
]
exclude = [
"**/__pycache__",
"icepyx/tests",
]
# ignore = [
# "icepyx/core/read.py",
# ]
[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"]
# Ignore too many leading '#' for block comment
# "*/tests/*" = ["E266"]
[tool.ruff.lint.isort]
force-sort-within-sections = true