-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (65 loc) · 1.9 KB
/
pyproject.toml
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
[project]
name = "rephrase"
version = "0.1.1"
description = "A command-line tool to rephrase text in different styles using OpenAI's API."
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["openai>=1.64.0", "typer>=0.15.1"]
authors = [{ name = "Jayson Panganiban", email = "[email protected]" }]
license = { text = "MIT License" }
[project.scripts]
rephrase = "rephrase.main:app"
[project.urls]
"Homepage" = "https://github.com/jayson-panganiban/rephrase"
"Source" = "https://github.com/jayson-panganiban/rephrase"
[dependency-groups]
dev = [
"hatchling>=1.27.0",
"mypy>=1.15.0",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.1",
"ruff>=0.9.7",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "--cov=rephrase --cov-report=term-missing -v"
[tool.pytest.ini_options]
markers = [
"integration: marks tests as integration tests (requires API key)",
]
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["rephrase", "tests"]
exclude = [".venv", "__pycache__", "dist", "build"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # Line length, let Ruff format handle it
"B008", # Function call in defaults, fine for Typer/CLI stuff
"C901", # Too complex
]
[tool.mypy]
python_version = "3.11"
strict = true
disallow_untyped_defs = false # Allows functions without return type, pero type pa rin elsewhere
exclude = [".venv", "dist", "build"]
[[tool.mypy.overrides]]
module = ["pytest", "openai.*", "typer.*", "pytest_mock.*"]
ignore_missing_imports = true # Okay lang kung walang stubs, minsan