From 1d42a81c2c25cb8936f6026e9e33fc91e1bf49cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=AB=98=E9=A3=9E?= Date: Thu, 5 Sep 2024 18:55:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.cfg | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..337833a0f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,34 @@ +[easy_install] +index_url = http://mirrors.aliyun.com/pypi/simple/ + +[bdist_wheel] +universal = 1 + +[isort] +line_length = 79 +multi_line_output = 7 +force_single_line = true +known_standard_library = setuptools +known_first_party = easy_rec +known_third_party = absl,common_io,docutils,eas_prediction,faiss,future,google,graphlearn,kafka,matplotlib,numpy,oss2,pai,pandas,psutil,six,sklearn,sparse_operation_kit,sphinx_markdown_tables,sphinx_rtd_theme,tensorflow,yaml +no_lines_before = LOCALFOLDER +default_section = THIRDPARTY +skip = easy_rec/python/protos + +[yapf] +BASED_ON_STYLE = yapf +ALIGN_CLOSING_BRACKET_WITH_VISUAL_INDENT = true + +[flake8] +select = B,C,D,E,F,P,T4,W,B9 +max-line-length = 120 +ignore = + E111,E114,E125,E129,W291,W503,W504, + # docstring missing error should be used when all docstrings are completed + D100,D101,D102,D103,D104,D105,D106,D107 +per-file-ignores = + __init__.py: F401 + easy_rec/python/utils/test_utils.py: E402 + easy_rec/python/utils/io_util.py: E402 +exclude = docs/src,scripts,easy_rec/python/protos,*.pyi,.git +docstring-convention = google