greenhouse/rosbags/pyproject.toml

115 lines
2.1 KiB
TOML
Raw Normal View History

2021-05-02 14:43:01 +02:00
[build-system]
2023-03-01 20:12:57 +01:00
requires = ["setuptools>=65.4.0", "wheel"]
2021-05-02 14:43:01 +02:00
build-backend = "setuptools.build_meta"
2022-07-27 14:30:36 +02:00
2023-03-01 20:12:57 +01:00
[tool.coverage]
report.exclude_lines = [
2022-07-27 14:30:36 +02:00
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == '__main__':",
]
2023-03-01 20:12:57 +01:00
report.show_missing = true
report.skip_covered = true
run.branch = true
run.source = ["src"]
2022-07-27 14:30:36 +02:00
[tool.flake8]
avoid_escape = false
docstring_convention = "all"
docstring_style = "google"
2023-03-01 20:12:57 +01:00
extend_exclude = ["venv"]
2022-07-27 14:30:36 +02:00
ignore = [
# do not require annotation of `self`
"ANN101",
# do not apply to google convention
"D203",
"D213",
"D215",
"D406",
"D407",
"D408",
"D409",
# handled by B001
"E722",
# allow line break after binary operator
"W504",
]
max_line_length = 100
strictness = "long"
suppress_none_returning = true
2023-03-01 20:12:57 +01:00
2022-07-27 14:30:36 +02:00
[tool.isort]
include_trailing_comma = true
line_length = 100
multi_line_output = 3
2023-03-01 20:12:57 +01:00
2022-07-27 14:30:36 +02:00
[tool.mypy]
explicit_package_bases = true
2023-03-01 20:12:57 +01:00
fast_module_lookup = true
mypy_path = "src"
2022-07-27 14:30:36 +02:00
namespace_packages = true
strict = true
2023-03-01 20:12:57 +01:00
2022-07-27 14:30:36 +02:00
[[tool.mypy.overrides]]
module = "lz4.frame"
ignore_missing_imports = true
2023-03-01 20:12:57 +01:00
2022-07-27 14:30:36 +02:00
[tool.pydocstyle]
convention = "google"
add_select = ["D204", "D400", "D401", "D404", "D413"]
2023-03-01 20:12:57 +01:00
2022-07-27 14:30:36 +02:00
[tool.pylint.'MESSAGES CONTROL']
enable = "all"
disable = [
"duplicate-code",
"locally-disabled",
"suppressed-message",
"ungrouped-imports",
# isort (pylint FAQ)
"wrong-import-order",
# mccabe (pylint FAQ)
"too-many-branches",
# fixme
"fixme",
2023-03-01 20:12:57 +01:00
# pep8-naming (pylint FAQ, keep: invalid-name)
2022-07-27 14:30:36 +02:00
"bad-classmethod-argument",
"bad-mcs-classmethod-argument",
"no-self-argument",
# pycodestyle (pylint FAQ)
"bad-indentation",
"bare-except",
"line-too-long",
"missing-final-newline",
"multiple-statements",
"trailing-whitespace",
"unnecessary-semicolon",
"unneeded-not",
# pydocstyle (pylint FAQ)
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
# pyflakes (pylint FAQ)
"undefined-variable",
"unused-import",
"unused-variable",
]
2023-03-01 20:12:57 +01:00
2022-07-27 14:30:36 +02:00
[tool.pytest.ini_options]
2023-03-01 20:12:57 +01:00
addopts = ["--cov=src", "--verbose"]
2022-07-27 14:30:36 +02:00
[tool.yapf]
based_on_style = "google"
column_limit = 100
allow_split_before_dict_value = false
dedent_closing_brackets = true
indent_dictionary_value = false