-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (94 loc) · 2.84 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (94 loc) · 2.84 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "databus-sample"
version = "1.0.0"
description = "Getting started to using Python's DataBUS"
authors = [{name = "Socorro E Dominguez Vidana", email = "dominguezvid@uwisc.edu"}]
license = "MIT"
license-files = ["LICENSE"]
requires-python = "==3.11.10"
readme = {file = "README.md", content-type = "text/markdown"}
keywords = ["neotoma", "paleoecology", "interoperability", "postgres", "SQL"]
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Topic :: Database",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Object Brokering"
]
dependencies = [
"databus",
"numpy>=1.26.0,<1.27",
"openpyxl>=3.1.5",
"pandas==2.0.2",
"mysql-connector-python>=9.2.0",
"psycopg2-binary==2.9.10",
"python-dateutil==2.8.2",
"python-dotenv==1.0.0",
"pytz==2023.3",
"pyyaml>=5.3.1",
"requests>=2.32.3",
"six==1.16.0",
"tzdata==2023.3",
"tqdm>=4.65.0",
"mkdocs>=1.6.1",
"mkdocs-material>=9.6.16",
"mkdocstrings[python-legacy]>=0.18",
]
[project.urls]
Issues = "https://github.com/NeotomaDB/DataBUS_sample/issues"
Repository = "https://github.com/NeotomaDB/DataBUS_sample.git"
[tool.setuptools]
include-package-data = true
[tool.uv]
package = false
[tool.uv.sources]
databus = { git = "https://github.com/NeotomaDB/DataBUS", rev = "dev" }
[project.optional-dependencies]
build = ["build", "twine"]
dev = ["ruff", "bumpver", "mypy", "pytest", "pytest-cov"]
[tool.ruff]
# Target Python 3.11
target-version = "py311"
line-length = 100
src = ["src"]
[tool.ruff.lint]
# Enable common rule sets
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort (import sorting)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"ARG001", # unused function argument (common in validators)
"ARG002", # unused method argument
]
[tool.ruff.lint.per-file-ignores]
# Tests can use assertions and have unused imports for fixtures
"**/tests/*" = ["S101", "ARG", "F401"]
# __init__.py files often have unused imports for re-export
"__init__.py" = ["F401"]
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
pythonpath = ["src"]