-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
94 lines (79 loc) · 2.03 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
[project]
name = "prescient-walkjump"
description = "Walk-jump"
authors = [{name = "Nathan C. Frey", email = "frey.nathan.nf1@gene.com"}]
dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
[project.scripts]
walkjump_train = "walkjump.cmdline:train"
walkjump_sample = "walkjump.cmdline:sample"
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.in"]}
readme = {file = "README.md"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
search_parent_directories = true
version_scheme = "no-guess-dev"
local_scheme = "node-and-date"
[tool.setuptools.package-data]
"*" = ["*.yaml", "*.csv.gz"]
[tool.mypy]
show_error_codes = true
warn_unused_ignores = true
# disallow_any_unimported = true
# check_untyped_defs = true
no_implicit_optional = true
# warn_return_any = true
# disallow_untyped_defs = true
warn_redundant_casts = true
strict_equality = true
warn_unreachable = true
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
module = [
"pandas.*",
"sklearn.*",
"rdkit.*",
"anarci.*",
"lightning.*",
"torchvision.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
ignore-init-module-imports = true
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B905", # requires python >= 3.10
"B007", # unused-loop-control-variable
"E741", # ambiguous-variable-name
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
exclude = [
"tests"
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.black]
line-length = 100
[tool.isort]
line_length = 100
multi_line_output = 3
use_parentheses = true
force_grid_wrap = 0
include_trailing_comma = true
ensure_newline_before_comments = true
known_third_party=["wandb"]