diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 56cfabc..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[bumpversion] -current_version = 1.2.0 -commit = True -tag = True - -[bumpversion:file:cssselect/__init__.py] diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index ed1fac6..0000000 --- a/.coveragerc +++ /dev/null @@ -1,10 +0,0 @@ -[run] -branch = True -source = cssselect - -[report] -exclude_lines = - pragma: no cover - def __repr__ - if sys.version_info - if __name__ == '__main__': diff --git a/pylintrc b/pylintrc deleted file mode 100644 index 43fb62b..0000000 --- a/pylintrc +++ /dev/null @@ -1,26 +0,0 @@ -[MASTER] -persistent=no -extension-pkg-allow-list=lxml - -[MESSAGES CONTROL] -enable=useless-suppression -disable=consider-using-f-string, - fixme, - invalid-name, - line-too-long, - missing-class-docstring, - missing-function-docstring, - missing-module-docstring, - no-member, - not-callable, - redefined-builtin, - redefined-outer-name, - too-few-public-methods, - too-many-arguments, - too-many-branches, - too-many-function-args, - too-many-lines, - too-many-positional-arguments, - too-many-public-methods, - too-many-statements, - unused-argument, diff --git a/pyproject.toml b/pyproject.toml index 058ea32..b38bfdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,62 @@ +[tool.bumpversion] +current_version = "1.2.0" +commit = true +tag = true + +[[tool.bumpversion.files]] +filename = "cssselect/__init__.py" + +[tool.coverage.run] +branch = true +source = ["cssselect"] + +[tool.coverage.report] +exclude_also = [ + "def __repr__", + "if sys.version_info", + "if __name__ == '__main__':", +] + [tool.mypy] check_untyped_defs = true ignore_missing_imports = true no_warn_no_return = true +[tool.pylint.MASTER] +persistent = "no" +extension-pkg-allow-list = ["lxml"] + +[tool.pylint."MESSAGES CONTROL"] +enable = [ + "useless-suppression", +] +disable = [ + "consider-using-f-string", + "fixme", + "invalid-name", + "line-too-long", + "missing-class-docstring", + "missing-function-docstring", + "missing-module-docstring", + "no-member", + "not-callable", + "redefined-builtin", + "redefined-outer-name", + "too-few-public-methods", + "too-many-arguments", + "too-many-branches", + "too-many-function-args", + "too-many-lines", + "too-many-locals", + "too-many-positional-arguments", + "too-many-public-methods", + "too-many-statements", + "unused-argument", +] + +[tool.pytest.ini_options] +testpaths = ["tests"] + [tool.ruff.lint] extend-select = [ # flake8-bugbear @@ -116,7 +170,7 @@ ignore = [ # Using lxml to parse untrusted data is known to be vulnerable to XML attacks "S320", - + # TODO: Use format specifiers instead of percent format "UP031", ] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 25c6497..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[tool:pytest] -testpaths = tests