File: pyproject.toml

package info (click to toggle)
ollama-python 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: python: 3,056; makefile: 5
file content (67 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download
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
[project]
name = 'ollama'
description = 'The official Python client for Ollama.'
authors = [
    { email = 'hello@ollama.com' },
]
readme = 'README.md'
requires-python = '>=3.8'
dependencies = [
    'httpx>=0.27',
    'pydantic>=2.9',
]
dynamic = [ 'version' ]
license = "MIT"

[project.urls]
homepage = 'https://ollama.com'
repository = 'https://github.com/ollama/ollama-python'
issues = 'https://github.com/ollama/ollama-python/issues'

[build-system]
requires = [ 'hatchling', 'hatch-vcs' ]
build-backend = 'hatchling.build'

[tool.hatch.version]
source = 'vcs'

[tool.hatch.envs.hatch-test]
default-args = ['ollama', 'tests']
extra-dependencies = [
    'pytest-anyio',
    'pytest-httpserver',
]

[tool.hatch.envs.hatch-static-analysis]
dependencies = [ 'ruff>=0.9.1' ]
config-path = 'none'

[tool.ruff]
line-length = 999
indent-width = 2

[tool.ruff.format]
quote-style = 'single'
indent-style = 'space'
docstring-code-format = false

[tool.ruff.lint]
select = [
    'F', # pyflakes
    'E', # pycodestyle errors
    'W', # pycodestyle warnings
    'I', # sort imports
    'N', # pep8-naming
    'ASYNC', # flake8-async
    'FBT', # flake8-boolean-trap
    'B', # flake8-bugbear
    'C4', # flake8-comprehensions
    'PIE', # flake8-pie
    'SIM', # flake8-simplify
    'FLY', # flynt
    'RUF', # ruff-specific rules
]
ignore = ['FBT001'] # Boolean-typed positional argument in function definition

[tool.pytest.ini_options]
addopts = ['--doctest-modules']