-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
90 lines (82 loc) · 2.33 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
[project]
name = "hydride"
authors = [
{name = "The 'Hydride' contributors"},
]
description = "Adding hydrogen atoms to molecular models"
readme = "README.rst"
requires-python = ">=3.10"
license = {file = "LICENSE.rst"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
dependencies = [
"biotite >= 0.40",
"numpy >= 1.25",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
]
lint = [
"ruff==0.5.2",
]
[project.urls]
homepage = "https://hydride.biotite-python.org"
repository = "https://github.com/biotite-dev/hydride"
documentation = "https://hydride.biotite-python.org"
[tool.ruff.lint]
# pyflakes, pycodestyle isort and varibale naming
select = ["F", "E", "W", "I", "TID", "N"]
ignore = [
# In docstrings long lines are often intentional
# Most other ocassions are caught by the ruff formatter
"E501",
# Due to constants and class placeholders defined in functions
"N806",
# Due to `pyximport` before other imports
"E402",
]
[tool.ruff.lint.per-file-ignores]
# Due to `from .module import *` imports in `__init__.py` modules
"__init__.py" = ["F403", "TID252"]
# Due to imports in each code snipped
"doc/figure_scripts/api.py" = ["E402"]
[tool.ruff.lint.flake8-tidy-imports]
# Relative imports are required to be able to import the package during setup
# for building the fragment library
ban-relative-imports = "parents"
[tool.ruff.lint.isort]
# No separator lines between import sections
no-lines-before = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
order-by-type = true
known-first-party = ["hydride"]
[project.scripts]
hydride = "hydride.cli:main"
[build-system]
# Minimum requirements for the build system to execute.
requires = [
"setuptools >= 0.30",
"wheel >= 0.30",
"biotite >= 1.0",
"numpy >= 2.0",
"msgpack >= 0.5.6",
"cython >= 3.0",
]