-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
67 lines (59 loc) · 2.05 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
[tool.black]
include = '\.py$'
# Don't attempt to normalize strings
# (Preserves the convention of "single quotes for data, double quotes for humans")
skip-string-normalization = true
# Tell Black that this code is specifically meant for 3.6 instead of using per-file detection.
# (without this, Black will only apply certain stylistic changes in the presence of 3.6+ syntax)
# For example, f-strings prove that code requires 3.6 and Black will format differently.
target_version = ["py36"]
[tool.coverage.run]
branch = true
source = ["lambda_functions"]
[tool.isort]
profile = "black"
[tool.pylint.'MESSAGES CONTROL']
disable = [
# Black handles all formatting
'format',
# isort handles import ordering
'wrong-import-order',
# I'm okay with leaving TODO comments
'fixme',
]
[tool.pylint.REPORTS]
reports = false
score = false
[tool.poetry]
name = "bibliophile_lambda"
version = "0.1.0"
description = "AWS lambda functions to find books at the library"
license = "GPL-3.0"
readme = "README.md"
homepage = "https://biblo.dcain.me"
repository = "https://github.com/DavidCain/bibliophile/"
authors = ["David Cain <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.6"
aws-lambda-context = "*"
bibliophile = "^1.0.0" # This is the backend package
boto3 = "*"
[tool.poetry.dev-dependencies]
black = { version = "*", allow-prereleases = true }
boto3-stubs = "*"
codecov = "*"
coverage = "*"
isort = ">= 5.0.0" # Version 5 includes Black compatibility
moto = "*"
mypy = "*"
pylint = "*"
pytest = "*"
pyyaml = "*"
# This section is required for the usePoetry setting in serverless' pythonRequirements
[build-system]
# NB: Before Poetry 1.1.1, `poetry export` would incorrectly include platform requirements.
# Error message: "markers 'platform_python_implementation == "CPython" and sys_platform == "win32"' don't match your environment"
# Command which serverless uses to generate a `requirements.txt`:
# `poetry export --without-hashes -f requirements.txt -o requirements.txt --with-credentials`
requires = ["poetry>=1.1.1"]
build-backend = "poetry.masonry.api"