-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (60 loc) · 1.57 KB
/
pyproject.toml
File metadata and controls
72 lines (60 loc) · 1.57 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
[tool.poetry]
name = "cdk-poetry-asset-code"
version = "0.1.0"
description = "A custom AWS CDK construct that integrates Poetry for building Python Lambda function packages."
authors = ["TCL Research Europe <tcl.research.eu@gmail.com>"]
license = "MIT"
readme = "README.md"
packages = [{include = "poetry_asset_code"}]
[tool.poetry.dependencies]
python = "^3.12"
aws-cdk-lib = "^2.130.0"
constructs = "^10.3.0"
[tool.poetry.group.code-analysis.dependencies]
pyright = "^1.1.352"
pre-commit = "^3.6.2"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
fix = true
line-length = 120
src = ["poetr_asset_code"]
target-version = "py312"
[tool.ruff.lint]
unfixable = [
"ERA", # do not autoremove commented out code
]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
[tool.black]
target-version = ['py312']
preview = true
[tool.pyright]
include = ["poetry_asset_code"]
exclude = ["**/__pycache__"]
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.12"
pythonPlatform = "Linux"
typeCheckingMode = "strict"