diff --git a/pyproject.toml b/pyproject.toml index 238021e0ac..60531e6dfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,3 +15,26 @@ test-requires = "tensorflow" build = ["cp36-*", "cp37-*", "cp38-*", "cp39-*", "cp310-*"] skip = ["*-win32", "*-manylinux_i686", "*-musllinux*"] manylinux-x86_64-image = "ghcr.io/deepmodeling/manylinux_2_28_x86_64_tensorflow" + +# selectively turn of lintner warnings, always include reasoning why any warning should +# be silenced + +# W504 - line break after binary operator - there is conflict between W503 and W504 in +# some lintners. One recomends line bread after and one before binary operator so we +# swith W504 off and recomend this coding style: +# a = (b + -> instead of -> a = (b +# c) + c) +[tool.autopep8] +ignore = "W504" + +# D413 - Missing blank line after last section - makes no sense only adds empy lines in +# docstrings +# D416 - Section name should end with a colon - only applicable to RST type docstrings, +# we are using numpy style +# D203 - 1 blank line required before class docstring - only adds unnecessary empty space +# D107 - Missing docstring in __init__ - Nupmy style documents __init__ parameters in +# class docstring +# D213 - Multi-line docstring summary should start at the second line - unnecessary waste +# of space, start on the first line +[tool.pydocstyle] +ignore = "D413, D416, D203, D107, D213" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0ae74b314d..0000000000 --- a/setup.cfg +++ /dev/null @@ -1,22 +0,0 @@ -# selectively turn of lintner warnings, always include reasoning why any warning should -# be silenced - -# W504 - line break after binary operator - there is conflict between W503 and W504 in -# some lintners. One recomends line bread after and one before binary operator so we -# swith W504 off and recomend this coding style: -# a = (b + -> instead of -> a = (b -# c) + c) -[pep8] -ignore = W504 - -# D413 - Missing blank line after last section - makes no sense only adds empy lines in -# docstrings -# D416 - Section name should end with a colon - only applicable to RST type docstrings, -# we are using numpy style -# D203 - 1 blank line required before class docstring - only adds unnecessary empty space -# D107 - Missing docstring in __init__ - Nupmy style documents __init__ parameters in -# class docstring -# D213 - Multi-line docstring summary should start at the second line - unnecessary waste -# of space, start on the first line -[pydocstyle] -ignore = D413, D416, D203, D107, D213 \ No newline at end of file