forked from barkure/JuliaBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
56 lines (48 loc) · 1.52 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
[project]
name = "juliabridge"
version = "0.1.6"
description = "A Python package for communicating with Julia."
readme = "README_PyPI.md"
requires-python = ">=3.12"
dependencies = ["numpy>=2.2.3"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/barkure/JuliaBridge"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/juliabridge"]
include = ["src/juliabridge/bridge.jl"]
[[tool.uv.index]]
name = "juliabridge"
url = "https://pypi.org/simple/"
publish-url = "https://upload.pypi.org/legacy/"
[tool.ruff]
line-length = 120 # 代码最大行宽
select = [ # 选择的规则
"F",
"E",
"W",
"UP",
"I",
]
ignore = ["F401"] # 忽略的规则
extend-include = ["*.ipynb", "tests/*.py"] # 扩展包含的文件
extend-exclude = ["__init__.py", "data_process"] # 扩展排除的文件
respect-gitignore = true # 是否尊重.gitignore文件
[tool.ruff.format]
quote-style = "single" # 引号风格
docstring-code-format = true # docstring代码格式化
docstring-code-line-length = 80 # docstring最大行宽
[tool.ruff.lint.isort]
case-sensitive = true # 是否区分大小写
combine-as-imports = true # 是否合并as导入
force-sort-within-sections = true # 是否强制在每个section中排序
[tool.pyright]
ignore = ["data_process"] # 完全忽略
exclude = [] # 排除的文件