4 Star 17 Fork 4

Gitee 极速下载/MONAI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Project-MONAI/MONAI
克隆/下载
pyproject.toml 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
YunLiu 提交于 2024-04-11 21:19 . Fix deprecated warning in ruff (#7625)
[build-system]
requires = [
"wheel",
"setuptools",
"torch>=1.9",
"ninja",
]
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''
(
/(
# exclude a few common directories in the root of the project
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| \.pytype
| _build
| buck-out
| build
| dist
)/
# also separately exclude a file named versioneer.py
| monai/_version.py
)
'''
[tool.pycln]
all = true
exclude = "monai/bundle/__main__.py"
[tool.ruff]
line-length = 133
lint.ignore-init-module-imports = true
lint.ignore = ["F401", "E741"]
[tool.pytype]
# Space-separated list of files or directories to exclude.
exclude = ["versioneer.py", "_version.py"]
# Space-separated list of files or directories to process.
inputs = ["monai"]
# Keep going past errors to analyze as many files as possible.
keep_going = true
# Run N jobs in parallel.
jobs = 8
# All pytype output goes here.
output = ".pytype"
# Paths to source code directories, separated by ':'.
pythonpath = "."
# Check attribute values against their annotations.
check_attribute_types = true
# Check container mutations against their annotations.
check_container_types = true
# Check parameter defaults and assignments against their annotations.
check_parameter_types = true
# Check variable values against their annotations.
check_variable_types = true
# Comma or space separated list of error names to ignore.
disable = ["pyi-error"]
# Report errors.
report_errors = true
# Experimental: Infer precise return types even for invalid function calls.
precise_return = true
# Experimental: solve unknown types to label with structural types.
protocols = true
# Experimental: Only load submodules that are explicitly imported.
strict_import = false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/MONAI.git
git@gitee.com:mirrors/MONAI.git
mirrors
MONAI
MONAI
dev

搜索帮助