-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (69 loc) · 2.34 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (69 loc) · 2.34 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
[project]
# The DISTRIBUTION is `taskops-cli` (bare `taskops` on PyPI is somebody else's);
# the import package and the console script are both still `taskops`.
name = "taskops-cli"
description = "A shared work board for teams of coding agents, with a human who decides."
readme = "README.md"
license = "MIT"
requires-python = ">= 3.11"
dynamic = ["version"]
# Zero runtime dependencies, on purpose: this package gets installed into
# every agent's environment. stdlib carries the whole thing (v1 proved it).
dependencies = []
classifiers = [
"Typing :: Typed",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Repository = "https://github.com/bernatch22/taskops"
[project.scripts]
taskops = "taskops.cli:main"
[dependency-groups]
dev = ["pytest", "ruff", "pyright"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/taskops/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/taskops"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "."]
addopts = "-q --tb=short"
xfail_strict = true # an xfail that passes is a FAILURE
filterwarnings = ["error"] # any warning fails the suite, from day 1
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"I", # isort
"F", # pyflakes
"B", # bugbear
"E4", "E7", "E9",
"FA102", # missing `from __future__ import annotations`
"E722", # bare except
"T201", "T203", # print / pprint outside the CLI
"TID251", # banned APIs
]
extend-safe-fixes = ["FA102"]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"time.time".msg = "Only taskops._clock reads the clock — use _clock.now()"
"time.monotonic".msg = "Only taskops._clock reads the clock"
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = ["T201", "T203"]
"src/taskops/_clock.py" = ["TID251"] # the one sanctioned clock reader
"src/taskops/cli/*.py" = ["T201"] # the CLI prints, that is its job
[tool.ruff.lint.isort]
length-sort = true
combine-as-imports = true
known-first-party = ["taskops", "tests"]
[tool.pyright]
typeCheckingMode = "strict"
pythonVersion = "3.11"
include = ["src"]
reportImplicitOverride = false # no class hierarchies deep enough to earn it yet
reportPrivateUsage = false # our own _internals