Skip to content

Commit

Permalink
Move tool configs to pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Feb 2, 2025
1 parent 57a3b7e commit 32045eb
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 45 deletions.
6 changes: 0 additions & 6 deletions .bumpversion.cfg

This file was deleted.

10 changes: 0 additions & 10 deletions .coveragerc

This file was deleted.

26 changes: 0 additions & 26 deletions pylintrc

This file was deleted.

56 changes: 55 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
]

Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

0 comments on commit 32045eb

Please sign in to comment.