forked from lonelywolflee/lw-template-python-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (79 loc) · 2.75 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (79 loc) · 2.75 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[project]
name = "template-python-project"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
[tool.black]
line-length = 88
target-version = ['py313']
skip-string-normalization = false
skip-magic-trailing-comma = false
[tool.ruff]
line-length = 88
target-version = "py313"
show-fixes = true
unsafe-fixes = false
lint.select = [
"B", # bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"W", # pycodestyle
"I", # isort
"RUF", # ruff
"UP", # pyupgrade
"C90", # mccabe
]
lint.ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood
"E501", # Line too long ({width} > {limit})
"RUF012", # mutable default values in class attributes
]
[tool.mypy]
python_version = "3.13"
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
[tool.pylint.messages_control]
disable = [
"C0114", # 모듈 docstring 없음 경고 무시
"C0115", # 클래스 docstring 없음 경고 무시
"C0116", # 함수 docstring 없음 경고 무시
"C0301", # line 이 너무 김
"R0903", # 너무 적은 public 메서드 경고 무시
]
enable = [
"E", # Error
"W", # Warning
"R", # Refactoring
]
[tool.pylint.format]
max-line-length = 88 # 최대 줄 길이
indent-string = " " # 4칸 공백 사용
[tool.pylint.design]
max-args = 5 # 함수의 최대 인자 개수
max-attributes = 10 # 클래스의 최대 속성 개수
max-locals = 15 # 지역 변수 개수 제한
max-returns = 6 # 함수에서 `return` 개수 제한
max-statements = 50 # 함수 내 최대 코드 줄 수 제한
min-public-methods = 0 # class 내의 public method 숫자가 무시. R0903 제외가 안먹어서 1로 줄임
[tool.pylint.similarities]
min-similarity-lines = 10 # 중복 코드 감지 기준 (10줄 이상)
ignore-comments = true # 주석 제외
[tool.pylint.reports]
output-format = "colorized" # 색상이 있는 출력 사용