2023-01-03 08:59:24 +00:00
|
|
|
[project]
|
|
|
|
name = "cowrie"
|
|
|
|
version = "2.4.0"
|
|
|
|
|
|
|
|
|
2023-01-07 14:09:09 +00:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
|
|
|
known_zope = "zope"
|
|
|
|
known_twisted = "twisted"
|
|
|
|
known_first_party = ["cowrie","backend_pool"]
|
|
|
|
sections=["FUTURE","STDLIB","THIRDPARTY","ZOPE","TWISTED","FIRSTPARTY","LOCALFOLDER"]
|
2023-01-03 08:59:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
2021-10-17 15:30:18 +00:00
|
|
|
namespace_packages = true
|
|
|
|
plugins = [ "mypy_zope:plugin" ]
|
|
|
|
|
|
|
|
ignore_missing_imports = true
|
|
|
|
warn_unused_configs = true
|
|
|
|
no_implicit_optional = true
|
|
|
|
show_column_numbers = true
|
|
|
|
show_error_codes = true
|
|
|
|
strict_optional = true
|
|
|
|
warn_no_return = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_return_any = true
|
|
|
|
warn_unreachable = true
|
|
|
|
disallow_incomplete_defs = true
|
|
|
|
disallow_any_unimported = true
|
|
|
|
strict_equality = true
|
|
|
|
disallow_untyped_decorators = true
|
|
|
|
disallow_subclassing_any = true
|
2022-12-15 03:46:15 +00:00
|
|
|
warn_unused_ignores = true
|
|
|
|
|
|
|
|
# Getting these passing should be easy
|
|
|
|
strict_concatenate = true
|
2021-10-17 15:30:18 +00:00
|
|
|
|
|
|
|
# These are too strict for us at the moment
|
|
|
|
|
|
|
|
check_untyped_defs = false
|
|
|
|
disallow_untyped_defs = false
|
|
|
|
disallow_any_decorated = false
|
|
|
|
disallow_any_explicit = false
|
|
|
|
disallow_any_expr = false
|
|
|
|
disallow_any_generics = false
|
|
|
|
disallow_untyped_calls = false
|
2022-12-15 03:46:15 +00:00
|
|
|
|
2023-01-03 08:59:24 +00:00
|
|
|
|
2022-12-15 03:46:15 +00:00
|
|
|
[tool.pylint."MESSAGES CONTROL"]
|
2023-01-03 08:59:24 +00:00
|
|
|
disable = ["R0901", "R0902", "R0903", "R0904", "R0912", "R0913", "R0914", "R0915", "C0103", "C0114", "C0115", "C0116", "C0301"]
|
|
|
|
|
|
|
|
|
2023-01-07 14:09:09 +00:00
|
|
|
[tool.pyright]
|
2023-01-03 08:59:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 88
|
|
|
|
|
|
|
|
# Enable Pyflakes `E` and `F` codes by default.
|
2023-01-07 14:09:09 +00:00
|
|
|
select = ["E", "F", "UP", "YTT", "B", "T20", "Q", "PLR", "RUF"]
|
|
|
|
ignore = ["E501", "UP007", "B019", "RUF001"]
|
2023-01-03 08:59:24 +00:00
|
|
|
|
|
|
|
# Assume Python 3.10.
|
|
|
|
target-version = "py310"
|
2023-01-07 14:09:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
[tool.setuptools]
|
|
|
|
package-dir = {"" = "src"}
|
|
|
|
|
|
|
|
|
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
where = ["src"]
|