-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (100 loc) · 3.39 KB
/
pyproject.toml
File metadata and controls
121 lines (100 loc) · 3.39 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
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
[build-system]
requires = ["setuptools>=80", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "CMR-notifier"
dynamic = ["version"]
maintainers = [
{name="ASF SciDev Team", email="uaf-asf-scidev@alaska.edu"},
]
license = {text = "BSD-3-Clause"}
readme = "README.md"
requires-python = "==3.13.*"
dependencies = [
'requests==2.32.5',
'boto3==1.40.69',
]
[project.optional-dependencies]
develop = [
'cfn-lint==1.40.4',
'mypy==1.18.2',
'pytest==9.0.0',
'pytest-env==1.2.0',
'responses==0.25.8',
'ruff==0.14.4',
'setuptools_scm>=8',
'types-requests',
'types-PySocks',
'types-PyYAML',
'types-Pygments',
'types-pexpect',
]
[project.urls]
Homepage = "https://github.com/ASFHyP3/CMR-notifier"
"Bug Tracker" ="https://github.com/ASFHyP3/CMR-notifier/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
[tool.ruff]
line-length = 120
# The directories to consider when resolving first- vs. third-party imports.
# See: https://docs.astral.sh/ruff/settings/#src
src = ["**/src", "tests"]
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.ruff.lint]
extend-select = [
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
"UP", # pyupgrade: https://docs.astral.sh/ruff/rules/#pyupgrade-up
"D", # pydocstyle: https://docs.astral.sh/ruff/rules/#pydocstyle-d
"ANN", # annotations: https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"PTH", # use-pathlib-pth: https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2
[tool.ruff.lint.flake8-annotations]
suppress-dummy-args = true
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D1", "ANN"]
"src/*" = ["D103", "D100"]
[tool.mypy]
python_version = "3.13"
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
strict_equality = true
check_untyped_defs = true
install_types = true
non_interactive = true
pretty = true
disable_error_code = ["import-untyped"]
[tool.pytest_env]
AWS_SECRET_KEY_ID = {value = "foo", skip_if_set = true}
AWS_SECRET_ACCESS_KEY = {value = "bar", skip_if_set = true}
AWS_DEFAULT_REGION = {value = "us-west-2", skip_if_set = true}
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-64", "osx-arm64"]
[tool.pixi.dependencies]
# For PyCharm IDE integration
pixi-pycharm = ">=0.0.8"
uv = "*"
# FIXME: this adds the editable install to the pixi lock file, but because we use setuptools_scm, the version
# number expected by pixi includes the commit hash and so the lockfile is almost never up to date. Need to
# figure out how to do both. See: https://github.com/prefix-dev/pixi/issues/2512
#[tool.pixi.pypi-dependencies]
#cmr_notifier = { path = ".", editable = true }
[tool.pixi.environments]
default = { features = ["develop"], solve-group = "default" }
[tool.pixi.tasks]
lint-cf = "cfn-lint --template $(find . -name cloudformation.yml -o -name '*-cf.yml') --info"
lint-py = "ruff check"
format-py = "ruff format"
type-py = {cmd = "mypy --exclude {{ mypy_excludes }} .", args = [{"arg" = "mypy_excludes", "default" = "_test"}]}
static = [{task = "lint-cf"}, {task = "lint-py"}, {task = "format-py"}, {task = "type-py"}]
dev-install = "uv pip install --no-deps -e ."
tests = {cmd = 'pytest', depends-on = ["dev-install"]}