-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathpyproject.toml
More file actions
43 lines (38 loc) · 1.1 KB
/
Copy pathpyproject.toml
File metadata and controls
43 lines (38 loc) · 1.1 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
[project]
name = "python-workers-examples"
version = "0.1.0"
description = "A collection of examples for writing Cloudflare Workers in Python"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pytest>=8.4.1",
"requests>=2.32.5",
"ruff>=0.12.10",
]
[tool.ruff]
target-version = "py312"
extend-exclude = ["**/python_modules", "**/.venv-workers"]
[tool.ruff.lint]
select = [
"B0", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"UP", # pyupgrade
"W", # pycodestyle warnings
]
ignore = [
"E501", # line length is handled by the formatter
]
[tool.ruff.lint.isort]
# Supplied by the Workers runtime rather than PyPI, so ruff cannot resolve them
# and would otherwise infer their section from whatever happens to be on disk.
known-third-party = ["asgi", "js", "pyodide", "workers"]
[tool.ruff.lint.per-file-ignores]
# `js` and `pyodide` imports resolve only at runtime inside Pyodide.
"*/src/*.py" = ["E402"]