-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (100 loc) · 3.8 KB
/
pyproject.toml
File metadata and controls
111 lines (100 loc) · 3.8 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
[project]
name = "quinn"
version = "0.1.0"
description = "AI-powered email rubber duck for guided problem-solving"
requires-python = ">=3.13"
dependencies = [
"pydantic",
"pydantic-ai>=0.0.14",
"python-fasthtml>=0.7.0",
"click>=8.0.0",
"rich>=13.0.0",
"prompt-toolkit>=3.0.0",
"httpx>=0.25.0",
"jinja2>=3.1.0",
"toml>=0.10.0",
"loguru>=0.7.0",
"plotly>=5.0.0",
"streamlit>=1.0.0",
"pytest-asyncio>=1.0.0",
]
[project.scripts]
quinn = "quinn.cli:main"
[tool.setuptools.packages.find]
include = ["quinn*"]
exclude = ["llms*"]
[tool.uv]
dev-dependencies = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.11.6",
"ty>=0.0.1a14",
]
[tool.ruff]
exclude = [".venv", "**/*_test.py"]
[tool.ruff.lint]
extend-select = [
"A", # flake8-builtins - prevent shadowing of built-in names
"ANN", # flake8-annotations - enforce type annotations
"ARG", # flake8-unused-arguments - detect unused function arguments
"B", # flake8-bugbear - find likely bugs and design problems
"COM", # flake8-commas - enforce trailing commas
"C4", # flake8-comprehensions - improve list/dict/set comprehensions
"C90", # mccabe - cyclomatic complexity checks
"DTZ", # flake8-datetimez - prevent naive datetime usage
"E", # pycodestyle errors - PEP 8 error violations
"EM", # flake8-errmsg - enforce error message best practices
"F", # pyflakes - detect various Python errors
"FBT", # flake8-boolean-trap - prevent boolean trap anti-pattern
"FURB", # refurb - modernize Python code
"I", # isort - import sorting and organization
"ISC", # flake8-implicit-str-concat - prevent implicit string concatenation
"LOG", # flake8-logging - logging best practices
"G", # flake8-logging-format - logging format string issues
"N", # pep8-naming - enforce PEP 8 naming conventions
"NPY", # numpy-specific rules - NumPy best practices
"PD", # pandas-vet - pandas best practices
"PERF", # perflint - performance anti-patterns
"PIE", # flake8-pie - miscellaneous improvements
"PL", # pylint - comprehensive Python linting
"PT", # flake8-pytest-style - pytest best practices
"PTH", # flake8-use-pathlib - prefer pathlib over os.path
"Q", # flake8-quotes - enforce quote style consistency
"RET", # flake8-return - improve return statement usage
"RUF", # ruff-specific rules - ruff's own additional checks
"SIM", # flake8-simplify - simplify code constructs
"SLF", # flake8-self - private member access checks
"SLOT", # flake8-slots - enforce __slots__ usage
"TID", # flake8-tidy-imports - tidy import organization
"TC", # flake8-type-checking - optimize type checking imports
"UP", # pyupgrade - upgrade syntax for newer Python versions
"W", # pycodestyle warnings - PEP 8 warning violations
]
extend-ignore = [
"COM812", # flake8-commas - allow trailing commas in function calls
"EM102", # flake8-errmsg - allow exception message in f-string
"E501", # pycodestyle - ignore line too long (let formatter handle it)
"E501", # pycodestyle - ignore line too long (duplicate entry)
"PLR0913", # pylint - allow more than 5 function arguments
"TRY003", # tryceratops - allow long exception messages
"W293", # pycodestyle - allow blank line with whitespace
]
[tool.ruff.lint.mccabe]
max-complexity = 5
[tool.pytest.ini_options]
testpaths = ["quinn", "tests"]
python_files = ["*_test.py"]
addopts = "-vv --tb=short"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
source = ["src"]
omit = ["*_test.py", "*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
]