-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
106 lines (94 loc) · 2.41 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
[project]
name = "psico"
description = "Pymol ScrIpts COllection"
authors = [
{name = "Thomas Holder"},
{name = "Steffen Schmidt"},
]
license = {text = "BSD-2-Clause"}
requires-python = ">=3.7"
dependencies = [
"pymol",
]
dynamic = ["version"]
[project.urls]
repository = "https://github.com/speleo3/pymol-psico"
[project.optional-dependencies]
dev = [
"coverage",
"pre-commit",
"pytest",
"ruff",
]
extra = [
"biopython",
"csb",
"epam-indigo",
# "openbabel",
"prody",
"rdkit",
]
[tool.setuptools.packages.find]
include = ["psico"]
[tool.setuptools.dynamic]
version = {attr = "psico.__version__"}
[tool.yapf]
based_on_style = "pep8"
allow_split_before_dict_value = false
[tool.autopep8]
select = [
"E101", # indentation contains mixed spaces and tabs
"E203", # Whitespace before ",", ";", or ":"
"E22", # Fix extraneous whitespace around keywords
"E231", # Missing whitespace after ",", ";", or ":"
"E241", # Multiple spaces after ','
"E261", # At least two spaces before inline comment
"E301", # Add missing blank line
"E302", # Expected 2 blank lines
"E305", # Expected 2 blank lines after end of function or class
"E502", # Remove extraneous escape of newline
"E701", # multiple statements on one line (colon)
"W",
"W291", # trailing whitespace (does not work)
]
[tool.ruff]
extend-select = ["W", "B", "Q003"]
ignore = [
"E401", # Multiple imports on one line
"E501", # Line too long
"E731", # lambda-assignment
]
[tool.pytest.ini_options]
addopts = "--strict-markers"
pythonpath = ["."]
testpaths = ["tests"]
markers = [
"exe: test requires third-party executable",
"web: test requires internet access",
"rdkit: test requires RDKit",
"openbabel: test requires Open Babel",
]
filterwarnings = [
'ignore:.*xdrlib.*:DeprecationWarning:mdtraj.formats',
'ignore:.*pkg_resources.*:DeprecationWarning:mdtraj.geometry.order',
'ignore:.*declare_namespace.*:DeprecationWarning:pkg_resources',
'ignore:.*setDaemon.*:DeprecationWarning:pymol.licensing',
'ignore:.*eigvals.*:DeprecationWarning:prody',
]
[tool.coverage.run]
source = ["psico"]
[tool.mypy]
files = [
"psico",
"tests",
]
ignore_missing_imports = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = [
"rdkit.Chem.*",
]
follow_imports = "skip"
follow_imports_for_stubs = true
ignore_errors = true
# vi:sw=4