-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (111 loc) · 3.56 KB
/
Copy pathpyproject.toml
File metadata and controls
124 lines (111 loc) · 3.56 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
[build-system]
#
# This project uses setuptools_scm to manage version numbers based on git tags.
#
# setuptools_scm considers any dirty working tree
# (e.g., modified tracked files) as "not a clean release"
# and bumps to the next version with a dev suffix.
# Untracked files (??) don't matter — only the modified ones do.
#
requires = ["setuptools>=80", "wheel", "setuptools-scm[simple]>=9.2"]
build-backend = "setuptools.build_meta"
[project]
name = "dati-semantic-apis"
description = "Semantic APIs and controlled vocabularies for data interoperability"
readme = "README.md"
requires-python = ">=3.12"
license = "AGPL-3.0-or-later"
authors = [
{name = "Roberto Polli", email = "roberto.polli@par-tec.it"}
]
keywords = [
"semantic",
"api",
"rdf",
"vocabulary",
"openapi",
"skos",
"frictionless"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
# "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = [ "dependencies", "optional-dependencies", "version" ]
# Read the abstract/direct dependencies from the *.in files; the *.txt
# lockfiles (compiled by the uv pip-compile pre-commit hook) carry the
# full pinned + hashed transitive closure and are used for installs only.
[tool.setuptools.dynamic]
dependencies = { file = [ "requirements.in" ] }
optional-dependencies.dev = { file = [ "requirements-dev.in" ] }
[project.urls]
Homepage = "https://github.com/teamdigitale/dati-semantic-csv-apis"
Repository = "https://github.com/teamdigitale/dati-semantic-csv-apis"
Issues = "https://github.com/teamdigitale/dati-semantic-csv-apis/issues"
[tool.setuptools.packages.find]
include = ["tools", "tools.commands", "tools.data", "tools.openapi", "tools.vocabulary", "tools.tabular"]
exclude = ["docs*", "tests*", "assets*", "apiv1*"]
[tool.setuptools.package-data]
"*" = ["*.yaml", "*.yml", "*.csv", "*.json", "*.ttl", "*.yamlld"]
#
# Testing configuration.
#
[tool.pytest.ini_options]
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
norecursedirs = "assets docs build dist *.egg-info .git .tox var/large_ml_model/ .*"
# XXX: To speed up tests, coverage is only enabled in tox -e coverage.
# Skip heavy asset tests by default; run explicitly with `-m asset` when needed.
addopts = "-v --durations=3 -m 'not asset' -p no:memray -p no:profiling -p no:legacypath"
console_output_style = "count"
testpaths = ["tests"]
# XXX: Re-enable failing when no tests are collected.
# empty_parameter_set_mark = "fail_at_collect"
collect_imported_tests = false
markers = [
"asset: marks tests as processing entire assets",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
#
# Linting configuration.
#
[tool.ruff]
line-length = 80
# target-version = "py312"
[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 too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["tools"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
exclude = [
"tests/",
"agent-skills/",
]
[[tool.mypy.overrides]]
module = [
"pyld.*",
"frictionless.*",
"oxrdflib.*",
"genson.*",
]
ignore_missing_imports = true