-
Notifications
You must be signed in to change notification settings - Fork 358
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (117 loc) · 3.04 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (117 loc) · 3.04 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
name = "flights"
version = "0.10.0"
description = "A Python wrapper for Google Flights API"
authors = [
{ name = "Punit Arani", email = "punitsai36@gmail.com" }
]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
keywords = ["flights", "google-flights", "travel", "api", "flight-search"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
]
dependencies = [
"babel>=2.17.0",
"curl-cffi>=0.7.4",
"httpx>=0.28.1",
"plotext>=5.3.2",
"pydantic>=2.10.4",
"python-dotenv>=1.0.1",
"ratelimit>=2.2.1",
"tenacity>=9.0.0",
"typer>=0.15.1",
]
[project.optional-dependencies]
mcp = [
"fastapi>=0.115.6",
"fastmcp>=3.2",
"pydantic-settings>=2.0.0",
"uvicorn>=0.34.0",
]
all = [
"flights[mcp]",
]
dev = [
"mkdocs-material[imaging]>=9.5.49",
"mkdocstrings[python]>=0.27.0",
"pytest>=8.3.4",
"pytest-asyncio>=0.25.2",
"pytest-xdist>=3.6.1",
"pytest-cov>=6.0.0",
"ruff>=0.8.4",
"twine>=6.0.0",
]
[project.scripts]
fli = "fli.cli:cli"
fli-mcp = "fli.mcp._entry:run"
fli-mcp-http = "fli.mcp._entry:run_http"
[project.urls]
Homepage = "https://github.com/punitarani/fli"
Repository = "https://github.com/punitarani/fli"
Documentation = "https://punitarani.github.io/fli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["fli"]
[tool.pytest.ini_options]
markers = [
"parallel: marks tests that can run in parallel"
]
[tool.ruff]
target-version = "py310"
line-length = 100
indent-width = 4
include = [
"fli/**/*.py",
"examples/**/*.py",
"tests/**/*.py",
"scripts/**/*.py",
]
exclude = [
"__pycache__",
".pytest_cache",
".venv",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # pydocstyle
]
ignore = ["D100", "D104", "D203", "D213"]
# Per-file ignores for examples
[tool.ruff.lint.per-file-ignores]
"examples/**/*.py" = [
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D401", # First line should be in imperative mood (examples use descriptive docstrings)
"T201", # print found (examples are meant to print output)
]
"tests/**/*.py" = [
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
]
[tool.ruff.format]
indent-style = "space"
quote-style = "double"
skip-magic-trailing-comma = false