-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (110 loc) · 3.08 KB
/
pyproject.toml
File metadata and controls
123 lines (110 loc) · 3.08 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[project]
name = "playfile"
version = "0.1.0"
description = "AI-powered development workflows defined in YAML"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Sofiane Djerbi", email = "sofiane.djerbi38@gmail.com" }
]
keywords = ["AI", "DevOps", "declarative", "Pipeline", "Workflow"]
requires-python = ">=3.11"
dependencies = [
"typer>=0.12.0",
"rich>=13.0.0",
"playfile-core",
"playfile-utils",
"playfile-cli",
"rich-click>=1.9.4",
]
[project.urls]
Homepage = "https://github.com/sofianedjerbi/playfile"
Repository = "https://github.com/sofianedjerbi/playfile"
Issues = "https://github.com/sofianedjerbi/playfile/issues"
[project.scripts]
pf = "playfile_cli.main:cli"
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
playfile-core = { workspace = true }
playfile-utils = { workspace = true }
playfile-cli = { workspace = true }
[dependency-groups]
dev = [
"pytest>=8.0.0",
"ruff>=0.8.0",
"pyright>=1.1.390",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"SIM", # simplify
"C4", # comprehensions
"N", # naming
"ANN", # annotations
"ASYNC", # async
"BLE", # blind except
"A", # builtins
"T10", # debugger
"PIE", # pie
"T20", # print
"PT", # pytest
"Q", # quotes
"RSE", # raise
"ARG", # unused arguments
"PTH", # pathlib
"FLY", # flynt
"PERF", # performance
"FURB", # refurb
"RUF", # ruff
"PGH", # pygrep
"DTZ", # datetimez
"EM", # errmsg
"FA", # future annotations
"ICN", # import conventions
"G", # logging format
"LOG", # logging
"INP", # no pep420
"TID", # tidy imports
"ERA", # eradicate
"PLC", # pylint convention
"PLE", # pylint error
"PLW", # pylint warning
]
ignore = [
# Formatter conflicts
"COM812", # trailing comma missing
"COM819", # trailing comma prohibited
"ISC001", # implicit string concatenation
# Docstring style
"D203", # blank line before class docstring
"D213", # multi-line summary second line
# Too strict
"C901", # too complex
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"PLR2004", # magic value comparison
# Opinionated
"RET505", # unnecessary else after return
"FBT001", # boolean positional arg
"FBT002", # boolean default arg
"SLF001", # private member access
"SIM300", # yoda conditions
"C408", # unnecessary dict call
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports (re-exports)
"tests/**/*.py" = ["ANN", "T20", "ARG"] # no type hints, allow print, allow unused args
[tool.pyright]
typeCheckingMode = "strict"