-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
83 lines (75 loc) · 2.13 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
83
[tool.poetry]
name = "python-template-based-on-docker"
version = "0.1.0"
description = "python template based on docker"
authors = ["your_name"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
pyyaml = "^6.0"
# v2 ref: https://docs.pydantic.dev/latest/migration/
pydantic = "^2.1.1"
pydantic-settings = "^2.0.2"
python-json-logger = "^2.0.7"
sentry-sdk = "^1.29.0"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
pytest = "^7.3.1"
pytest-cov = "^4.0.0"
pytest-mock = "^3.10.0"
mypy = "^1.2.0"
ruff = "^0.0.265"
pytest-env = "^0.8.1"
poethepoet = "^0.21.1"
[tool.poe.tasks]
test = "pytest $1 --cov=/app --cov-report term-missing"
[tool.ruff]
# Same as Black.
select = ["ALL"]
ignore = [
"G004", # `logging-f-string`
"PLC1901", # compare-to-empty-string
"PLR2004", # magic-value-comparison
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"ANN002", # missing-type-args
"ANN003", # missing-type-kwargs
"ANN401", # any-type
"ERA", # commented-out-code
"ARG002", # unused-method-argument
"INP001", # implicit-namespace-package
"PGH004", # blanket-noqa
"B008", # Dependsで使用するため
"A002", # builtin-argument-shadowing
"A003", # builtin-attribute-shadowing
"PLR0913", # too-many-arguments
"RSE", # flake8-raise
"D", # pydocstyle
"C90", # mccabe
"T20", # flake8-print
"SLF", # flake8-self
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"TRY", # tryceratops
"COM", # flake8-commas
"S", # flake8-bandit
"EM",#flake8-errmsg
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"RET",#flake8-return
"SIM",#flake8-simplify
"TCH", # flake8-type-checking
"PTH", #pathlibを使わないコードが多いので、除外する
"ISC", #flake8-implicit-str-concat
"N", # pep8-naming
"PT", # flake8-pytest-style
"PGH003"
]
line-length = 115
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"