-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathpyproject.toml
136 lines (122 loc) · 2.85 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
[project]
name = "s3contents"
description = "S3 Contents Manager for Jupyter"
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = [
"jupyter",
"jupyterlab",
"notebooks",
"aws",
"s3",
"gcs",
"google cloud storage",
"minio",
]
authors = [{ name = "Daniel Rodriguez", email = "[email protected]" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"nbconvert>=6.0,<8.0",
"aiobotocore[boto3]>=1.4.0",
"s3fs>=2021.11.0",
"gcsfs>=2021.11.0"
]
dynamic = ["version"]
[tool.rye]
managed = true
dev-dependencies = [
# Testing
"coverage[toml]",
"pymdown-extensions",
"pytest",
"pytest-cov",
# Linting
"black",
"flake8",
"isort",
"pip-tools",
"ruff",
# Development
"jupyterlab",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
artifacts = ["s3contents/**"]
exclude = [".github", "docs"]
[tool.hatch.version]
path = "s3contents/__about__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
testpaths = ["s3contents/tests"]
addopts = [
"-s",
"-vv",
"--strict-config",
"--strict-markers",
"--ignore=dist",
"--ignore=site-packages",
# "--strict-markers",
"--cov=s3contents",
"--cov-report=term",
"--cov-config=pyproject.toml",
]
markers = [
"pkg: package tests",
"minio: requires minio server (deselect with '-m \"not minio\"')",
"gcs: requires gcs creds (deselect with '-m \"not minio\"')",
]
xfail_strict = true
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
branch = true
parallel = true
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise NotImplementedError",
]
omit = ["s3contents/tests/*"]
[tool.coverage.paths]
source = ["s3contents", ".venv/lib/python*/site-packages/s3contents"]
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
"B", # flake8-bugbear
]
[tool.isort]
ensure_newline_before_comments = true
line_length = 79
multi_line_output = 3
include_trailing_comma = true
profile = "black"
[tool.mypy]
strict = true
[tool.pydocstyle]
add_ignore = ["D100", "D101", "D102", "D103", "D104", "D105"]
convention = "numpy"
inherit = false
match_dir = "s3contents"
[project.urls]
Documentation = "https://github.com/danielfrg/s3contents#readme"
Issues = "https://github.com/danielfrg/s3contents/issues"
Source = "https://github.com/danielfrg/s3contents"