Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ PY_MODULES='firebase_functions.core
firebase_functions.alerts.billing_fn
firebase_functions.alerts.crashlytics_fn
firebase_functions.alerts.performance_fn
firebase_functions.dataconnect_fn
firebase_functions.db_fn
firebase_functions.eventarc_fn
firebase_functions.firestore_fn
Expand Down
114 changes: 55 additions & 59 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ build-backend = "setuptools.build_meta"
name = "firebase_functions"
description = "Firebase Functions Python SDK"
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [
{name = "Firebase Team"}
]
license = "Apache-2.0"
authors = [{ name = "Firebase Team" }]
keywords = ["firebase", "functions", "google", "cloud"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"flask>=2.1.2",
"functions-framework>=3.0.0",
"firebase-admin>=6.0.0",
"pyyaml>=6.0",
"typing-extensions>=4.4.0",
"cloudevents>=1.2.0,<2.0.0",
"flask-cors>=3.0.10",
"pyjwt[crypto]>=2.5.0",
"google-events==0.5.0",
"google-cloud-firestore>=2.11.0",
"flask>=2.1.2",
"functions-framework>=3.0.0",
"firebase-admin>=6.0.0",
"pyyaml>=6.0",
"typing-extensions>=4.4.0",
"cloudevents>=1.2.0,<2.0.0",
"flask-cors>=3.0.10",
"pyjwt[crypto]>=2.5.0",
"google-events==0.5.0",
"google-cloud-firestore>=2.11.0",
]
dynamic = ["version"]

Expand All @@ -41,43 +41,38 @@ dynamic = ["version"]

[dependency-groups]
dev = [
"pytest>=7.1.2,<9",
"setuptools>=63.4.2",
"pytest-cov>=3.0.0",
"mypy>=1.0.0",
"sphinx>=6.1.3",
"sphinxcontrib-napoleon>=0.7",
"toml>=0.10.2",
"google-cloud-tasks>=2.13.1",
"ruff>=0.1.0",
"build>=1.0.0",
"pytest>=7.1.2,<9",
"setuptools>=63.4.2",
"pytest-cov>=3.0.0",
"mypy>=1.0.0",
"sphinx>=6.1.3",
"sphinxcontrib-napoleon>=0.7",
"toml>=0.10.2",
"google-cloud-tasks>=2.13.1",
"ruff>=0.1.0",
"build>=1.0.0",
]

[tool.setuptools]
package-dir = {"" = "src"}
packages = ["firebase_functions"]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
firebase_functions = ["py.typed"]

[tool.setuptools.dynamic]
version = {attr = "firebase_functions.__version__"}
version = { attr = "firebase_functions.__version__" }

[tool.pytest.ini_options]
pythonpath = [
".", "src/",
]
pythonpath = [".", "src/"]

[tool.coverage]
[tool.coverage.run]
omit = [
'__init__.py',
'tests/*',
'*/tests/*',
]
[tool.coverage.run]
omit = ['__init__.py', 'tests/*', '*/tests/*']

[tool.coverage.report]
skip_empty = true
[tool.coverage.report]
skip_empty = true

[tool.ruff]
target-version = "py310"
Expand All @@ -86,27 +81,28 @@ indent-width = 4

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PL", # pylint
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PL", # pylint
]
ignore = [
"PLR0913", # Too many arguments
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison
"PLW0603", # Using the global statement
"PLC0415", # Import outside toplevel
"E501", # Line too long (handled by formatter)
"PLR0913", # Too many arguments
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison
"PLW0603", # Using the global statement
"PLC0415", # Import outside toplevel
"E501", # Line too long (handled by formatter)
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
line-ending = "auto"

Loading
Loading