Skip to content

Commit

Permalink
Move tool configs into pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Jan 31, 2025
1 parent bdc8aaa commit 6734709
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 47 deletions.
9 changes: 0 additions & 9 deletions .bumpversion.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

27 changes: 0 additions & 27 deletions pylintrc

This file was deleted.

58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
[tool.bumpversion]
current_version = "1.10.0"
commit = true
tag = true
tag_name = "v{new_version}"

[[tool.bumpversion.files]]
filename = "setup.py"

[[tool.bumpversion.files]]
filename = "parsel/__init__.py"

[tool.coverage.run]
branch = true

[tool.coverage.report]
exclude_also = [
"@typing.overload",
"if TYPE_CHECKING:",
]

[tool.pylint.MASTER]
ignore = "typing"
persistent = "no"
extension-pkg-allow-list = [
"lxml",
]

[tool.pylint."MESSAGES CONTROL"]
enable = [
"useless-suppression",
]
disable = [
"fixme",
"import-error",
"import-outside-toplevel",
"invalid-name",
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-member",
"not-callable",
"protected-access",
"raise-missing-from",
"redefined-builtin",
"too-few-public-methods",
"too-many-arguments",
"too-many-lines",
"too-many-positional-arguments",
"too-many-public-methods",
"unused-argument",
"wrong-import-position",
]

[tool.pytest.ini_options]
addopts = "--assert=plain --doctest-modules --ignore=setup.py"

[tool.ruff.lint]
extend-select = [
# flake8-bugbear
Expand Down
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

0 comments on commit 6734709

Please sign in to comment.