-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (54 loc) · 1.74 KB
/
pyproject.toml
File metadata and controls
69 lines (54 loc) · 1.74 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
[tool.poetry]
name = "experimental"
version = "0.1.0"
description = "Monorepo"
authors = ["Jaehyun Yeom <jae.yeom@gmail.com>"]
readme = "README.org"
[tool.poetry.dependencies]
python = "^3.10"
beautifulsoup4 = "^4.12.3"
cssutils = "^2.11.1"
buf = {version = "*", markers = "sys_platform == 'linux-android'"}
protovalidate = "^0.6.0"
grpcio = {version = "*", markers = "sys_platform == 'linux-android'"}
requests = ">=2.33.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
extend-exclude = [
"*_pb2.py", # Generated protobuf
"*_pb2_grpc.py", # Generated gRPC
"bazel-*", # Bazel
]
# PEP 8 recommends line-length 79
line-length = 79
indent-width = 4
fix = true
[tool.ruff.lint]
extend-select = ["UP", "D"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "preserve"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
docstring-code-format = true
# Set the line length limit used when formatting code snippets in
# docstrings.
docstring-code-line-length = "dynamic"
[tool.ruff.lint.pydocstyle]
# My default choice is Google style because the docstring is concise yet
# visually easy to understand.
convention = "google"