-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
151 lines (127 loc) · 3.13 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "nanopub"
description = "Python client for Nanopublications"
readme = "README.md"
requires-python = ">=3.7"
license = { file = "LICENSE" }
authors = [
{ name = "Robin Richardson", email = "[email protected]" },
{ name = "Djura Smits" },
{ name = "Sven van den Burg" },
{ name = "Vincent Emonet", email = "[email protected]" },
]
keywords = [
"Nanopublication",
"RDF",
"Linked Data",
"Publishing"
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dynamic = ["version"]
dependencies = [
"rdflib >=6.0.2",
"requests",
"typer",
"yatiml",
"pycryptodome >=3.15.0",
]
[project.optional-dependencies]
test = [
"pytest >=7.1.3",
"pytest-cov >=3.0.0",
"coveralls",
"mypy >=0.991",
"isort >=5.11.0",
"flake8 >=5.0.0",
"Flake8-pyproject >=1.2.2",
"flaky",
]
doc = [
"mkdocs >=1.4.2",
"mkdocs-material >=8.2.7",
"mkdocstrings[python] >=0.19.1",
"mdx-include >=1.4.1",
"mkdocs-markdownextradata-plugin >=0.2.5",
]
dev = [
"pre-commit >=2.17.0,<3.0.0",
"autoflake >=1.4.0,<2.0.0",
"jupyter",
"notebook",
"types-requests",
]
[project.scripts]
np = "nanopub.__main__:cli"
[project.urls]
Homepage = "https://fair-workflows.github.io/nanopub"
Documentation = "https://fair-workflows.github.io/nanopub"
History = "https://github.com/fair-workflows/nanopub/releases"
Tracker = "https://github.com/fair-workflows/nanopub/issues"
Source = "https://github.com/fair-workflows/nanopub"
# ENVIRONMENTS AND SCRIPTS
[tool.hatch.envs.default]
features = [
"test",
"doc",
"dev",
]
post-install-commands = [
"pre-commit install",
]
[tool.hatch.envs.default.scripts]
dev = "./scripts/dev.sh"
test = "./scripts/test.sh {args}"
docs = "./scripts/docs.sh {args}"
format = "./scripts/format.sh"
lint = "./scripts/lint.sh"
# TOOLS
[tool.hatch.version]
path = "nanopub/_version.py"
[tool.isort]
line_length = 120
skip = ["nanopub/__init__.py"]
profile = "black"
[tool.coverage.run]
source = ["nanopub"]
branch = true
[tool.coverage.report]
omit = ["nanopub/trustyuri/*", "tests/*"]
[tool.flake8]
max-complexity = 17
max-line-length = 120
per-file-ignores = [
"__init__.py:F401",
]
ignore = [
"E501", # line too long
"E303", # too many blank lines
"E301", # expected 1 blank lines found 0
"W503", # line break before binary operator
]
[tool.mypy]
strict = false
implicit_reexport = true
follow_imports = "normal"
ignore_missing_imports = true
pretty = true
show_column_numbers = true
warn_no_return = true
warn_unused_ignores = false
warn_redundant_casts = true
disallow_untyped_defs = false
no_implicit_optional = false
[tool.pytest.ini_options]
markers = [
"no_rsa_key: mark a test as a test only run when there is no nanopub RSA key setup.",
]