-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (88 loc) · 2.24 KB
/
pyproject.toml
File metadata and controls
100 lines (88 loc) · 2.24 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
[project]
name = "github-etl"
version = "0.1.0"
description = "ETL script to extract data from Mozilla Organization Firefox repositories on GitHub and load them into BigQuery"
readme = "README.md"
requires-python = ">=3.14"
license = {text = "MPL-2.0"}
authors = [
{name = "Mozilla", email = "conduit-team@mozilla.org"}
]
keywords = ["etl", "github", "bigquery", "mozilla"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL-2.0)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"requests>=2.25.0",
"google-cloud-bigquery==3.25.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-mock>=3.10.0",
"ruff>=0.14.14",
"black>=24.0.0",
]
[project.scripts]
github-etl = "main:main"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
py-modules = ["main"]
# Ruff configuration
[tool.ruff]
line-length = 88
exclude = [
".cache",
".git",
".hg",
"__pycache__",
]
[tool.ruff.lint]
select = ["C", "E", "F", "W", "B", "B9", "I", "ANN"]
ignore = [
"B006",
"B904",
"C901",
"E203",
"E501",
"ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs
"ANN202", # Missing return type annotation for protected function
]
[tool.ruff.lint.isort]
split-on-trailing-comma = true
[tool.ruff.lint.flake8-annotations]
suppress-none-returning = true
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["ANN"]
"**/conftest.py" = ["ANN"]
# Black configuration
[tool.black]
line-length = 88
target-version = ['py314']
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"unit: Unit tests for individual functions",
"integration: Integration tests that test multiple components",
"slow: Tests that take longer to run",
]
log_cli = false
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"