File: pyproject.toml

package info (click to toggle)
python-gios 7.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: python: 774; sh: 7; makefile: 2
file content (153 lines) | stat: -rw-r--r-- 3,593 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "gios"
version = "0.0.0"
license = "Apache-2.0"
description = "Python wrapper for getting air quality data from GIOĊš servers."
readme = "README.md"
authors = [{name = "Maciej Bieniek"}]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
    "Programming Language :: Python :: 3 :: Only",
    "Typing :: Typed",
]
requires-python = ">=3.13"
dependencies = [
  "aiohttp>=3.9.4",
  "dacite>=1.7.0",
  "yarl",
]

[project.optional-dependencies]
test = [
  "aioresponses==0.7.8",
  "coverage==7.13.0",
  "mypy==1.19.1",
  "pytest-asyncio==1.3.0",
  "pytest-cov==7.0.0",
  "pytest-error-for-skips==2.0.2",
  "pytest-timeout==2.4.0",
  "pytest==9.0.2",
  "ruff==0.14.10",
  "syrupy==5.0.0",
]
dev = [
  "pre-commit==4.5.1",
]

[project.urls]
Homepage = "https://github.com/bieniu/gios"

[tool.setuptools.packages.find]
include = ["gios*"]

[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "session"

[tool.mypy]
python_version = "3.14"
show_error_codes = true
follow_imports = "silent"
ignore_missing_imports = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_equality = true
warn_return_any = true
warn_unused_ignores = true
warn_unreachable = true

[tool.ruff]
target-version = "py314"

lint.select = ["ALL"]

lint.ignore = [
    "ANN401",   # Dynamically typed expressions (typing.Any) are disallowed
    "COM812",   # Trailing comma missing
    "D203",     # 1 blank line required before class docstring
    "D213",     # Multi-line docstring summary should start at the second line
    "FBT001",   # Boolean-typed positional argument in function definition
    "FBT002",   # Boolean default positional argument in function definition
    "PLR0912",  # Too many branches
    "TC002",    # Move third-party import into a type-checking block
    "TC003",    # Move standard library import into a type-checking block
    "TC006",    # Add quotes to type expression in `typing.cast()`
]

[tool.ruff.lint.per-file-ignores]
"tests/*" = [
    "PLR0913",  # Too many arguments in function definition
    "PLR2004",  # Magic value used in comparison
    "S101",     # Use of `assert` detected
    ]
"example.py" = [
    "T201",      # `print` found
]

[tool.ruff.lint.mccabe]
max-complexity = 25

[tool.coverage.run]
source = ["gios"]

[tool.tox]
legacy_tox_ini = """

[tox]
envlist = py313, py314, lint, typing, coverage
skip_missing_interpreters = True

[gh-actions]
python =
  3.13: py313, lint, typing, coverage
  3.14: py314

[testenv]
commands =
  pytest --timeout=30 --cov=gios --cov-report=xml {posargs} --error-for-skips
deps =
  .[test]

[testenv:lint]
basepython = python3.13
depends = py313
ignore_errors = True
skip_install = True
usedevelop = False
commands =
  ruff check .
  ruff format --check .

[testenv:typing]
basepython = python3.13
depends = py313
ignore_errors = True
skip_install = True
usedevelop = False
commands =
  mypy gios

[testenv:coverage]
basepython = python3.13
depends = py313
skip_install = True
usedevelop = False
commands =
  coverage report --fail-under=79
"""