-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
127 lines (116 loc) · 3.43 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
[build-system]
requires = ["hatchling~=1.21"]
build-backend = "hatchling.build"
[project]
name = "turtle-canon"
authors = [
{name = "Casper Welzel Andersen", email = "[email protected]"},
]
maintainers = [
{name = "Casper Welzel Andersen", email = "[email protected]"},
{name = "Tor S. Haugland", email = "[email protected]"},
]
description = "A tool for canonizing Turtle (`.ttl`) ontology files."
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["ontology", "turtle"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development",
"Topic :: Software Development :: Pre-processors",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Version Control",
"Topic :: Text Processing",
"Topic :: Utilities",
]
requires-python = ">=3.10,<3.11"
dynamic = ["version"]
dependencies = [
"rdflib>=6.0.1,<8",
]
[project.optional-dependencies]
docs = [
"mike~=2.0",
"mkdocs~=1.5",
"mkdocs-awesome-pages-plugin~=2.9",
"mkdocs-material~=9.5",
"mkdocs-minify-plugin~=0.8.0",
"mkdocstrings[python]~=0.26.0",
]
dev = [
"pre-commit~=3.6",
"pytest~=8.0",
"pytest-cov~=5.0",
"turtle-canon[docs]",
]
[project.urls]
Home = "https://CasperWA.github.io/turtle-canon"
Documentation = "https://CasperWA.github.io/turtle-canon"
Source = "https://github.com/CasperWA/turtle-canon"
"Issue Tracker" = "https://github.com/CasperWA/turtle-canon/issues"
Changelog = "https://github.com/CasperWA/turtle-canon/blob/main/CHANGELOG.md"
Package = "https://pypi.org/project/turtle-canon"
[project.scripts]
turtle-canon = "turtle_canon.cli.cmd_turtle_canon:main"
[tool.hatch.version]
path = "turtle_canon/__init__.py"
[tool.black]
line-length = 88
target-version = ['py310']
[tool.pytest.ini_options]
minversion = "7.4"
addopts = "-rs --cov=turtle_canon --cov-report=term-missing:skip-covered --no-cov-on-fail"
filterwarnings = [
"error",
# "ignore:.*imp module.*:DeprecationWarning",
# "ignore:.*invalid escape sequence.*:DeprecationWarning",
]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
scripts_are_modules = true
warn_unused_configs = true
show_error_codes = true
allow_redefinition = true
check_untyped_defs = true
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle
"F", # pyflakes
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"YTT", # flake8-2020
"EXE", # flake8-executable
"PYI", # flake8-pyi
]
ignore = [
"PLR", # Design related pylint codes
# "B008", # Performing function calls in argument defaults - done all the time in the CLI.
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"BLE", # flake8-blind-except
"T20", # flake8-print
]