-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (74 loc) · 3.07 KB
/
pyproject.toml
File metadata and controls
78 lines (74 loc) · 3.07 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=77.0.3",
"setuptools-scm>=8",
]
[project]
name = "kartograf"
description = "Kartograf is a package for geometrically mapping atoms of two molecules."
readme = "README.md"
license = "MIT"
license-files = [ "LICENSE" ]
authors = [ { name = "The OpenFE developers", email = "openfe@omsf.io" } ]
requires-python = ">=3.11"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dynamic = [ "version" ]
dependencies = []
urls."Homepage" = "https://github.com/OpenFreeEnergy/kartograf"
[tool.setuptools]
include-package-data = true
package-data.kartograf = [ "tests/data/*.pdb", "tests/data/*.sdf" ]
packages.find.where = [ "src" ]
[tool.setuptools_scm]
fallback_version = "0.0.0"
[tool.ruff]
target-version = "py311"
line-length = 120
src = [ "src" ]
# I've added all the linters that ruff supports as of 0.14.11
# If it doesn't exist in the package (for example async) it is not enabled
# I wanted to include it so that if there is a PR that adds async, we can
# easily turn on the linter
# For linters that exist and we want to use, but don't want to fix now, I've added them and then
# excluded the rule(s) that we don't want to fix now, but would be good future TODO
# TODO add more linters!
lint.select = [
# "AIR", # airflow https://pypi.org/project/apache-airflow/
# "FAST", # FastAPI https://pypi.org/project/fastapi/
"ANN", # type annotations https://pypi.org/project/flake8-annotations/
"E", # pycodestyle errors
"ERA", # find commented-out code https://pypi.org/project/eradicate/
"F", # Pyflakes
"FURB", # A tool for refurbishing and modernizing Python codebases https://github.com/dosisod/refurb
"I", # isort
# "C901", # mccabe complexity TODO: add this back in
"PERF", # performance linting https://github.com/tonybaloney/perflint
"S", # security related lint https://pypi.org/project/flake8-bandit/
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # detect issues using sys to check python version https://pypi.org/project/flake8-2020/
]
lint.ignore = [
"ANN001", # TODO Missing type annotation for function argument {name}
"ANN002", # TODO Missing type annotation for *{name}
"ANN003", # TODO Missing type annotation for **{name}
"ANN201", # TODO Missing return type annotation for public function {name}
"ANN202", # TODO Missing return type annotation for private function {name}
"ANN206", # TODO Missing return type annotation for classmethod {name}
"E501", # line too long, if the formatter can't fix it then it can be okay
]
# ignore "unused import" error for all __init__.py files
lint.per-file-ignores."__init__.py" = [ "E401" ]
# ignore securty issues in tests
lint.per-file-ignores."src/kartograf/tests/*" = [ "S" ]
lint.isort.combine-as-imports = true
lint.isort.force-wrap-aliases = true
lint.isort.known-first-party = [ "kartograf" ]