Developer tools dump stack traces, exit codes, and jargon. Figuring out *what to do next* often means searching the same Stack Overflow answers again.
| 1 | [build-system] |
| 2 | requires = ["hatchling"] |
| 3 | build-backend = "hatchling.build" |
| 4 | |
| 5 | [project] |
| 6 | name = "why-failed" |
| 7 | version = "0.1.0" |
| 8 | description = "Turn cryptic developer errors into actionable fixes — locally, with no API keys." |
| 9 | readme = "README.md" |
| 10 | license = "MIT" |
| 11 | requires-python = ">=3.11" |
| 12 | authors = [ |
| 13 | { name = "why-failed contributors" }, |
| 14 | ] |
| 15 | keywords = [ |
| 16 | "cli", |
| 17 | "errors", |
| 18 | "debugging", |
| 19 | "developer-tools", |
| 20 | "git", |
| 21 | "npm", |
| 22 | "docker", |
| 23 | ] |
| 24 | classifiers = [ |
| 25 | "Development Status :: 4 - Beta", |
| 26 | "Environment :: Console", |
| 27 | "Intended Audience :: Developers", |
| 28 | "License :: OSI Approved :: MIT License", |
| 29 | "Operating System :: OS Independent", |
| 30 | "Programming Language :: Python :: 3", |
| 31 | "Programming Language :: Python :: 3.11", |
| 32 | "Programming Language :: Python :: 3.12", |
| 33 | "Programming Language :: Python :: 3.13", |
| 34 | "Topic :: Software Development :: Debuggers", |
| 35 | "Typing :: Typed", |
| 36 | ] |
| 37 | dependencies = [ |
| 38 | "typer>=0.12.0", |
| 39 | "rich>=13.0.0", |
| 40 | ] |
| 41 | |
| 42 | [project.optional-dependencies] |
| 43 | dev = [ |
| 44 | "pytest>=8.0.0", |
| 45 | "pytest-cov>=5.0.0", |
| 46 | "ruff>=0.6.0", |
| 47 | "mypy>=1.11.0", |
| 48 | ] |
| 49 | |
| 50 | [project.scripts] |
| 51 | why-failed = "why_failed.cli:main" |
| 52 | |
| 53 | [tool.hatch.build.targets.wheel] |
| 54 | packages = ["src/why_failed"] |
| 55 | |
| 56 | [tool.hatch.build.targets.sdist] |
| 57 | include = [ |
| 58 | "/src", |
| 59 | "/tests", |
| 60 | "/examples", |
| 61 | "/README.md", |
| 62 | "/LICENSE", |
| 63 | "/CONTRIBUTING.md", |
| 64 | ] |
| 65 | |
| 66 | [tool.pytest.ini_options] |
| 67 | testpaths = ["tests"] |
| 68 | pythonpath = ["src"] |
| 69 | |
| 70 | [tool.coverage.run] |
| 71 | source = ["why_failed"] |
| 72 | branch = true |
| 73 | |
| 74 | [tool.coverage.report] |
| 75 | show_missing = true |
| 76 | fail_under = 90 |
| 77 | exclude_lines = [ |
| 78 | "pragma: no cover", |
| 79 | "if TYPE_CHECKING:", |
| 80 | ] |
| 81 | |
| 82 | [tool.ruff] |
| 83 | target-version = "py311" |
| 84 | line-length = 100 |
| 85 | src = ["src", "tests"] |
| 86 | |
| 87 | [tool.ruff.lint] |
| 88 | select = [ |
| 89 | "E", |
| 90 | "F", |
| 91 | "I", |
| 92 | "UP", |
| 93 | "B", |
| 94 | "SIM", |
| 95 | "RUF", |
| 96 | ] |
| 97 | ignore = [ |
| 98 | "B008", # Typer Argument/Option defaults are intentional |
| 99 | "E501", # Long rule/test strings are clearer unbroken |
| 100 | ] |
| 101 | |
| 102 | [tool.ruff.lint.per-file-ignores] |
| 103 | "tests/**" = ["SIM300"] |
| 104 | |
| 105 | |
| 106 | [tool.mypy] |
| 107 | python_version = "3.11" |
| 108 | strict = true |
| 109 | warn_return_any = true |
| 110 | warn_unused_configs = true |
| 111 | mypy_path = "src" |
| 112 | packages = ["why_failed"] |