代码拉取完成,页面将自动刷新
mypy
checks (#11685)
# Copyright (c) 2017-2022, NVIDIA CORPORATION.
[flake8]
filename = *.py, *.pyx, *.pxd
exclude = __init__.py, *.egg, build, docs, .git
ignore =
# line break before binary operator
W503,
# whitespace before :
E203
per-file-ignores =
# Rules ignored only in Cython:
# E211: whitespace before '(' (used in multi-line imports)
# E225: Missing whitespace around operators (breaks cython casting syntax like <int>)
# E226: Missing whitespace around arithmetic operators (breaks cython pointer syntax like int*)
# E227: Missing whitespace around bitwise or shift operator (Can also break casting syntax)
# E402: invalid syntax (works for Python, not Cython)
# E999: invalid syntax (works for Python, not Cython)
# W504: line break after binary operator (breaks lines that end with a pointer)
*.pyx: E211, E225, E226, E227, E402, E999, W504
*.pxd: E211, E225, E226, E227, E402, E999, W504
[pydocstyle]
# Due to https://github.com/PyCQA/pydocstyle/issues/363, we must exclude rather
# than include using match-dir. Note that as discussed in
# https://stackoverflow.com/questions/65478393/how-to-filter-directories-using-the-match-dir-flag-for-pydocstyle,
# unlike the match option above this match-dir will have no effect when
# pydocstyle is invoked from pre-commit. Therefore this exclusion list must
# also be maintained in the pre-commit config file.
match-dir = ^(?!(ci|cpp|conda|docs|java|notebooks)).*$
# Allow missing docstrings for docutils
ignore-decorators = .*(docutils|doc_apply|copy_docstring).*
select =
D201, D204, D206, D207, D208, D209, D210, D211, D214, D215, D300, D301, D302, D403, D405, D406, D407, D408, D409, D410, D411, D412, D414, D418
# Would like to enable the following rules in the future:
# D200, D202, D205, D400
[mypy]
ignore_missing_imports = True
# If we don't specify this, then mypy will check excluded files if
# they are imported by a checked file.
follow_imports = skip
exclude = (?x)(
(cudf|custreamz|cudf_kafka|dask_cudf)/_version\.py
| cudf/_lib/
| cudf/cudf/benchmarks/
| cudf/cudf/tests/
| cudf/cudf/utils/metadata/orc_column_statistics_pb2.py
| custreamz/custreamz/tests/
| dask_cudf/dask_cudf/tests/
# This close paren cannot be in column zero otherwise the config parser barfs
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。