-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (67 loc) · 2.16 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
[tool.poetry]
name = "papas-lamp"
version = "0.1.0"
description = ""
authors = ["Meermiri <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11.9"
cadquery = "^2.4.0"
ocp-vscode = "^2.6.1"
cadquery-ocp = "^7.7.0"
build123d = "^0.7.0"
build123d-ease="^0.1.2"
[tool.poetry.scripts]
papas-lamp = 'papas-lamp:main'
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.poetry.group.linting.dependencies]
autoflake = "^2.2.1"
bandit = "^1.7.6"
mypy = "^1.8.0"
poetry-plugin-export = "^1.6.0"
conventional-pre-commit = "^3.1.0"
[tool.mypy]
no_implicit_optional = false
ignore_missing_imports = true
[tool.bandit]
recursive = true
skips = [
"B104", #hardcoded_bind_all_interfaces
"B108", #hardcoded_tmp_directory
]
exclude_dirs = ["test/", "local/"]
[tool.pytest.ini_options]
testpaths = "test"
pythonpath = "papas-lamp"
markers = [
"integration: marks tests as an integration test (enabled with '-m \"integration\"')",
]
addopts = "-m 'not integration' --durations=5"
asyncio_mode = "auto"
[tool.ruff]
target-version = "py311"
src = ["src", "test", "db-migrations", "deployment", "lambdas"]
[tool.ruff.lint]
select = ["ALL", "D"]
ignore = [
"ANN102",
"D103",
"ANN101",
"COM812",
"D100", # Missing docstring in public module - Google doesn't require docstrings for every module
"D101", # Missing docstring in public class - Google doesn't require docstrings for every class
"D102", # Missing docstring in public method - Google doesn't require docstrings for every method
"D103", # Missing docstring in public function - Google doesn't require docstrings for every function
"D107", # Missing docstring in __init__ - Google doesn't require docstrings for __init__ methods
"D203", # 1 blank line required before class docstring - Google style doesn't require this
"D213", # Multi-line docstring summary should start at the second line - Google prefers docstrings to start on the first line
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"test/*" = ["SLF001", "S101"]
"*/__init__.py" = ["D104"]
[tool.ruff.lint.pydocstyle]
convention = "google"