forked from dr-leo/pandaSDMX
-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
109 lines (98 loc) · 2.8 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
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
[build-system]
requires = ["build", "setuptools-scm"]
[project]
name = "sdmx1"
description = "Statistical Data and Metadata eXchange (SDMX)"
dynamic = ["version"]
authors = [{ name = "SDMX Python developers" }]
maintainers = [
{ name = "Paul Natsuo Kishimoto", email = "mail@paul.kishimoto.name" },
]
readme = "README.rst"
keywords = ["statistics", "SDMX", "pandas", "data", "economics", "science"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">=3.9"
dependencies = [
"lxml >= 3.6",
"pandas >= 1.0",
"platformdirs >= 4.1",
"python-dateutil",
"requests >= 2.7",
]
[project.optional-dependencies]
cache = ["requests-cache"]
docs = ["furo", "IPython", "sphinx >= 8"]
tests = [
"Jinja2",
"pytest >= 5",
"pytest-cov",
"pytest-xdist",
"requests-mock >= 1.4",
"sdmx1[cache]",
]
[project.urls]
Homepage = "https://github.com/khaeru/sdmx"
Repository = "https://github.com/khaeru/sdmx"
Documentation = "https://sdmx1.readthedocs.io/en/latest"
[tool.coverage.run]
omit = [
"sdmx/experimental.py",
"sdmx/tests/writer/test_protobuf.py",
"sdmx/writer/protobuf.py",
]
[tool.coverage.report]
exclude_also = [
# Don't complain about abstract methods, they aren't run
"@(abc\\.)?abstractmethod",
# Imports only used by type checkers
"if TYPE_CHECKING:",
]
[tool.mypy]
exclude = ["^build/"]
[[tool.mypy.overrides]]
# Packages/modules for which no type hints are available.
module = [
"lxml.builder", # Not covered by types-lxml
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = """
sdmx
--cov sdmx --cov-report=
-m "not experimental and not source"
"""
markers = [
"experimental: test of experimental features",
"network: tests requiring a network connection",
"source: slower, network tests of individual SDMX web services",
]
[tool.ruff.lint]
select = ["C9", "E", "F", "I", "W"]
ignore = ["E501", "W191"]
# Exceptions:
# - .client._handle_get_kwargs: 12
# - .reader.csv.Reader.inspect_header: 12
# - .reader.xml.v21._component_end: 12
# - .testing.generate_endpoint_tests: 11
# - .writer.pandas._maybe_convert_datetime: 23
# - .writer.pandas.write_dataset: 12
mccabe.max-complexity = 10
[tool.setuptools.packages]
find = {}
[tool.setuptools_scm]
local_scheme = "no-local-version"