-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (119 loc) · 3.22 KB
/
pyproject.toml
File metadata and controls
134 lines (119 loc) · 3.22 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
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
128
129
130
131
132
133
134
[project]
name = "rowan-python"
version = "3.0.9"
description = "Rowan Python Library"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{ name = "Corin Wagen", email = "corin@rowansci.com" },
]
dependencies = [
"httpx",
"stjames>=0.0.183",
"setuptools",
"rdkit",
"nest-asyncio",
]
[project.urls]
"Homepage" = "https://github.com/rowansci/rowan-client"
"Bug Tracker" = "https://github.com/rowansci/rowan-client/issues"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
rowan-python = { path = ".", editable = true }
# Autopopulated from [project.dependencies], see https://pixi.sh/latest/advanced/pyproject_toml/#dependency-section
[tool.pixi.feature.dev.pypi-dependencies]
pytest = ">=7.0"
pytest-cov = ">=5.0"
ruff = ">=0.5"
mypy = ">=1.10"
pre-commit = ">=3.7"
ipython = "*"
rdkit-stubs = ">=0.7"
mkdocs-material = "*"
mkdocstrings-python = "*"
griffe-pydantic = "*"
python-dotenv = "*"
[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev"], solve-group = "default"}
[tool.pixi.feature.dev.tasks]
fmt = { cmd="ruff format ." }
lint = { cmd="ruff check . --fix" }
types = { cmd="mypy ." }
test = { cmd="pytest" }
mkdocs-serve = { cmd="mkdocs serve" }
mkdocs-build = { cmd="mkdocs build --clean" }
all = { depends-on = ["fmt", "lint", "types", "test"] }
[tool.ruff]
line-length = 100
exclude = ["*.ipynb"]
[tool.ruff.lint]
select = [
"B", # bugbear
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming conventions
"W", # pycodestyle warnings
"C4", # comprehensions
"PL", # pylint
"RUF", # Ruff-specific rules
"RSE", # flake8-raise
"ICN001", # unconventional-import-alias
]
ignore = [
"E741", # Ambiguous variable name
"N806", # Non-lowercase variable in function
"N816", # Non-lowercase global variables
"PLR2004", # Magic value used in comparison
"PLR0911", # Too many returns
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0914", # Too many locals
"PLR0915", # Too many statements
"PLR1702", # Too many nested-blocks
"PLW2901", # Redifined loop name
"PLW1514", # Unspecified text encoding
"RUF001", # String contains ambiguous dash (en or em dash)
"RUF002", # Docstring contains ambiguous dash (en or em dash)
"RUF003", # String contains ambiguous unicode character
"PLC0206", # Extracting value from dictionary without calling `.items()`
"PLC0415",
# To remove
#"B905",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D200",
"D202",
"D205",
"D400",
"D401",
"N801",
"N802",
"N803",
"PLW1508",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
exclude = ["examples"]
plugins = ["pydantic.mypy"]
warn_unused_ignores = false
[tool.pytest.ini_options]
testpaths = ["rowan"]
addopts = "--doctest-modules --durations=5"
doctest_optionflags = "NORMALIZE_WHITESPACE"
[tool.hatch.build.targets.wheel]
packages = ["rowan"]