-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (111 loc) · 2.53 KB
/
pyproject.toml
File metadata and controls
124 lines (111 loc) · 2.53 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pymetrics"
version = "0.1.0"
description = "Scripts to extract metrics about python project downloads."
readme = "README.md"
authors = [
{ name = "DataCebo", email = "info@datacebo.com" }
]
requires-python = ">=3.13"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.13',
"Topic :: Scientific/Engineering",
]
dependencies = [
"pandas>=2.2.3,<3.0",
"tqdm",
"openpyxl",
"xlsxwriter",
"requests",
"python-benedict",
"PyYAML",
"PyDrive",
"google-cloud-bigquery",
"google-cloud-bigquery-storage",
"db-dtypes",
"httplib2==0.15.0", # https://stackoverflow.com/questions/59815620/gcloud-upload-httplib2-redirectmissinglocation-redirected-but-the-response-is-m
'pyarrow',
's3fs',
'boto3',
"tqdm",
]
[project.urls]
Homepage = "https://github.com/sdv-dev/pymetrics"
[project.scripts]
pymetrics = "pymetrics.__main__:main"
[tool.setuptools.packages.find]
include = ['pymetrics', 'pymetrics.*']
[project.optional-dependencies]
dev = [
"ruff>=0.9.8",
"invoke",
]
test = [
'pytest >= 8.1.1',
]
[tool.ruff]
preview = true
line-length = 100
indent-width = 4
src = ["pymetrics"]
target-version = "py313"
exclude = [
"docs",
".tox",
".git",
"__pycache__",
"*.ipynb",
".ipynb_checkpoints",
]
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# pydocstyle
"D",
# isort
"I001",
# print statements
"T201",
# pandas-vet
"PD",
# numpy 2.0
"NPY201"
]
ignore = [
# pydocstyle
"D107", # Missing docstring in __init__
"D417", # Missing argument descriptions in the docstring, this is a bug from pydocstyle: https://github.com/PyCQA/pydocstyle/issues/449
"PD901",
"PD101",
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
preview = true
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint.isort]
known-first-party = ["pymetrics"]
lines-between-types = 0
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402", "F403", "F405", "E501", "I001"]
"errors.py" = ["D105"]
"tests/**.py" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
max-line-length = 100