Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (89 loc) · 3.17 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (89 loc) · 3.17 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "flow"
version = "0.2.0"
description = "Local AI Workflow System — Amor Fati Labs"
readme = "README.md"
requires-python = ">=3.14"
license = { text = "MIT" }
authors = [{ name = "Qompass AI", email = "matt@aflabs.io" }]
dependencies = [
"httpx>=0.27",
"rich>=13.0",
"prompt_toolkit>=3.0",
]
[project.optional-dependencies]
editor = ["pynvim>=0.5,<0.7"]
dev = ["pytest>=8", "ruff>=0.9", "build>=1", "hatchling>=1.25"]
[project.scripts]
flow = "flow.main:main"
[tool.hatch.build.targets.wheel]
packages = ["flow"]
# -----------------------------------------------------------------------
# ruff — linter and formatter
# https://docs.astral.sh/ruff/
# -----------------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py314"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "C4", "N", "W"]
ignore = ["E4", "E7"]
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.basedpyright]
pythonVersion = "3.14"
typeCheckingMode = "standard"
include = ["flow"]
exclude = ["**/__pycache__", "**/.venv", "build", "dist"]
useLibraryCodeForTypes = true
reportMissingTypeStubs = "warning"
[[tool.basedpyright.executionEnvironments]]
root = "tests"
reportUnknownParameterType = "none"
reportMissingParameterType = "none"
reportUnknownArgumentType = "none"
reportUnusedCallResult = "none"
[[tool.basedpyright.executionEnvironments]]
root = "flow"
# -----------------------------------------------------------------------
# ty — type checker
# https://docs.astral.sh/ty/reference/configuration/
# -----------------------------------------------------------------------
[tool.ty.environment]
# ty auto-detects a `.venv` or falls back to `python3`/`python` on PATH,
# so this is only needed if that auto-detection misbehaves on a given
# machine. Pinned here since this exact fallback was the root cause of
# the "Cannot resolve imported module `pytest`" errors on this box —
# adjust or remove this line per-platform if it stops being necessary,
# since it is not portable across Arch/Termux/Windows as a hardcoded path.
python = "/usr/bin/python3"
[tool.ty.src]
include = ["flow", "tests"]
exclude = ["build", "dist"]
[tool.ty.rules]
possibly-unresolved-reference = "warn"
[[tool.ty.overrides]]
include = ["tests/**"]
[tool.ty.overrides.rules]
possibly-unresolved-reference = "warn"
# -----------------------------------------------------------------------
# pyrefly — type checker
# https://pyrefly.org/en/docs/configuration/
# -----------------------------------------------------------------------
[tool.pyrefly]
project-includes = ["flow", "tests"]
project-excludes = ["build", "dist"]
python-platform = "linux"
# Left unset intentionally: pyrefly's own default already resolves
# `$(which python3)` then `$(which python)`, which is the portable
# behavior across Arch/Termux/Windows. Uncomment only if that default
# resolution proves wrong on a specific machine:
# python-interpreter-path = "/usr/bin/python3"
[tool.pyrefly.errors]
# example: disable a specific error kind project-wide
#bad-assignment = false