-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (123 loc) · 3.38 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (123 loc) · 3.38 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[build-system]
requires = ["uv_build>=0.9.13,<0.10.0"]
build-backend = "uv_build"
[project]
name = "softverse"
version = "2.0.0"
description = "Measure which software social science replication code loads"
authors = [{name = "Gaurav Sood", email = "gsood07@gmail.com"}]
readme = "readme.md"
license = "MIT"
license-files = ["LICENSE"]
keywords = ["research", "software", "citations", "replication", "dataverse", "zenodo"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"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 :: Information Analysis",
]
requires-python = ">=3.11"
dependencies = [
"pyarrow>=18.0.0",
"duckdb>=1.1.0",
"pandas>=2.2.0",
"httpx>=0.28.0",
"tree-sitter>=0.25.0",
"tree-sitter-language-pack>=1.14.0",
"charset-normalizer>=3.4.0",
"python-dotenv>=1.0.0",
"stamina>=26.1.0",
"pyrate-limiter>=4.4.0",
"py7zr>=1.1.3",
"rarfile>=4.5",
"packaging>=24.0",
]
# A PEP 621 table. The bare `homepage`/`repository`/`documentation` keys that
# used to sit under [project] are not part of the standard, so the backend
# dropped them and the built wheel carried no Project-URL at all: the PyPI
# page linked to nothing.
[project.urls]
Homepage = "https://github.com/recite/softverse"
Documentation = "https://recite.github.io/softverse/"
Repository = "https://github.com/recite/softverse"
Issues = "https://github.com/recite/softverse/issues"
Data = "https://recite.github.io/softverse/data/"
[project.optional-dependencies]
dev = [
"ruff>=0.14.6",
"pytest>=7.0.0",
"pytest-cov>=3.0.0",
"pre-commit>=2.20.0",
"sphinx>=5.0.0",
"furo>=2022.6.21",
"myst-parser>=4.0.0",
]
[dependency-groups]
dev = [
"ruff>=0.14.6",
"pytest>=7.0.0",
"pytest-cov>=3.0.0",
"pre-commit>=2.20.0",
"sphinx>=5.0.0",
"furo>=2022.6.21",
"myst-parser>=4.0.0",
"twine>=6.2.0",
"matplotlib>=3.11.1",
]
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [
".eggs",
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
"archive/",
"temp/",
"logs/",
"debug_*.py",
"monitor_*.py",
"test_icpsr_download.py"
]
[tool.ruff.lint]
# Enable flake8 equivalents + additional rules
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E203", # whitespace before ':' (conflicts with black)
"E501", # line too long (handled by black)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
["F401"] # imported but unused
"softverse/analyzers/import_analyzer.py" = ["E501"] # long lines in R code templates
[tool.ruff.lint.isort]
known-first-party = ["softverse"]
split-on-trailing-comma = true
[tool.uv.build-backend]
module-name = "softverse"
module-root = ""
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--cov=softverse --cov-report=term-missing -q"