-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (100 loc) · 2.43 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tiktok_research_api_helper"
version = "0.1.3"
authors = [
{ name="Bruno Coelho", email="[email protected]" },
]
dependencies = [
"pyyaml",
"requests",
# https://urllib3.readthedocs.io/en/1.26.x/user-guide.html#ssl
"certifi",
"pandas",
"numpy",
"attrs",
"sqlalchemy>=2.0.0",
"rich",
"typer",
"tenacity",
"pause",
"pendulum",
"psycopg2-binary"
]
description = "A small package to interface with the TikTok Research API"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
[project.urls]
Homepage = "https://github.com/CybersecurityForDemocracy/tiktok-library"
Issues = "https://github.com/CybersecurityForDemocracy/tiktok-library/issues"
[project.scripts]
tiktok-lib = "tiktok_research_api_helper.cli.main:APP"
#TODO: Add Sphinx documentation auto-generation
# Libs: sphinx, sphinx-autoapi
[tool.hatch.envs.test]
extra-dependencies = [
"pytest",
"responses",
]
# This is the default env for command 'hatch test'
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"responses",
]
[tool.hatch.envs.alembic]
extra-dependencies = [
"alembic"
]
[tool.hatch.envs.test.scripts]
run = "pytest tests/ -vv"
postgres-integration-test-docker-as-sudo = [
"sudo docker compose --file=docker-compose-postgres-integration-test.yml build",
"- sudo docker compose --file=docker-compose-postgres-integration-test.yml run postgres-integration-test",
"sudo docker compose --file=docker-compose-postgres-integration-test.yml down --remove-orphans"
]
[tool.hatch.envs.jupyter]
extra-dependencies = [
"notebook"
]
[tool.hatch.envs.jupyter.scripts]
notebook = "jupyter-notebook"
# Hatch uses ruff for linting and formatting (hatch fmt ...)
[tool.ruff]
line-length=100
exclude = ["./alembic"]
[tool.ruff.lint]
select = [
# pycodestyle
"E", "W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore=[
# Do not suggest ternary operator
"SIM108",
# Allow use of Optional[...] style type annotation, since Typer relies on it
"UP007",
]
[tool.hatch.build.targets.sdist]
include = [
"/alembic/",
"/src/",
"/tests/",
]
[tool.hatch.build.targets.wheel]
packages = ["src/tiktok_research_api_helper"]