generated from dongminlee94/python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
98 lines (86 loc) · 2.1 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[project]
name = "simple-data-flow"
version = "0.0.0"
description = "Simple Data Flow"
authors = [
{name = "dongminlee94", email = "[email protected]"},
{name = "Kimdongui", email = "[email protected]"},
{name = "Haeun-Oh", email = "[email protected]"},
{name = "taeukkkim", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
"delta-spark==2.2.0",
"boto3==1.28.57",
]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"black>=23.3.0",
"mypy>=1.4.1",
"ruff>=0.0.261",
"pre-commit>=3.2.2",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.black]
line-length = 110
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep-naming
"B", # flakes-bugbear
"ANN",# flakes-annotations
"A", # flakes-builtins
"COM",# flakes-commas
"T10",# flakes-debugger
"SIM",# flakes-simplify
"ARG",# flakes-unused-arguments
"PLC",# pylint-convention
"PLE",# pylint-errors
"UP", # pyupgrade
"PL" # pylint
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["I", "D", "COM", "PLC", "UP", "W292"]
ignore = ["D104", "D406", "D407", "D408", "D409", "D415", "D203", "D213", "D417", "B905", "ANN002", "ANN003", "ANN101", "ANN102", "ANN401", "ANN204", "COM812", "D107", "N812", "A003", "B008"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
# Assume target Python version.
target-version = "py310"
# Same as Black.
line-length = 110
show-source = true
# Same as Pylint.
pylint = {"max-args"=12, "max-statements"=60}
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
ignore_errors = true