-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (74 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
89 lines (74 loc) · 2.5 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
# configuration approach followed:
# - whenever possible, prefer pyproject.toml
# - for configurations insufficiently supported by pyproject.toml, use setup.cfg instead
# - setup.py discouraged; minimal stub included only for compatibility with legacy tools
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "graph_cl"
description = "Learning using concept graphs for general prediction tasks. "
authors = [
{ name = "Santiago Castro Dau", email = "santiago.castro.dau@ibm.com" },
]
readme = "README.md"
# due to how PEP 440 defines version matching, prefer [incl, excl) definitions like below:
requires-python = ">=3.7, <3.11"
dependencies = ["click"]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
]
dev = [
"pytest",
"pytest-cov",
"black",
"flake8",
"pep8-naming",
"mypy",
"sphinx",
"sphinx-autodoc-typehints",
"better-apidoc",
"six",
"sphinx_rtd_theme",
"myst-parser",
]
[tool.setuptools_scm]
version_scheme = "post-release"
[project.urls]
repository = "https://github.ibm.com/Santiago-Castro-Dau/graph-concept-learner"
[tool.semantic_release]
# for default values check:
# https://github.com/relekang/python-semantic-release/blob/master/semantic_release/defaults.cfg
version_source = "tag_only"
branch = "main"
# configure types which should trigger minor and patch version bumps respectively
# (note that they must be a subset of the configured allowed types):
parser_angular_allowed_types = "build,chore,ci,docs,feat,fix,perf,style,refactor,test"
parser_angular_minor_types = "feat"
parser_angular_patch_types = "fix,perf"
# unstaging the changelog (i.e. command part before &&) is a workaround for
# https://github.com/relekang/python-semantic-release/issues/381:
build_command = "git restore --staged CHANGELOG.md && python -m build"
github_token_var="GITHUB_TOKEN"
hvcs_domain="github.ibm.com"
hvcs_api_domain="github.ibm.com/api/v3" # see https://ibm-analytics.slack.com/archives/C3SSJ6CSE/p1660313562338669?thread_ts=1660300230.162449&cid=C3SSJ6CSE
[tool.black]
line-length = 88
skip-string-normalization = false
target-version = ['py37']
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
force_to_top = ["rdkit", "scikit-learn"]
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true