[build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.mypy] files = ["fjerkroa_bot", "tests"] python_version = "3.8" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_unreachable = true strict_equality = true show_error_codes = true [[tool.mypy.overrides]] module = [ "discord.*", "multiline.*", "aiohttp.*" ] ignore_missing_imports = true [tool.flake8] max-line-length = 140 max-complexity = 10 ignore = [ "E203", "E266", "E501", "W503", "E306", ] exclude = [ ".git", ".mypy_cache", ".pytest_cache", "__pycache__", "build", "dist", "venv", ] [tool.poetry] name = "fjerkroa_bot" version = "2.0" description = "" authors = ["Oleksandr Kozachuk "] [tool.poetry.dependencies] python = "^3.8" "discord.py" = "*" openai = "*" aiohttp = "*" mypy = "*" flake8 = "*" pre-commit = "*" pytest = "*" setuptools = "*" wheel = "*" watchdog = "*" tomlkit = "*" multiline = "*" [tool.black] line-length = 140 target-version = ['py38'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist )/ ''' [tool.isort] profile = "black" line_length = 140 multi_line_output = 3 include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true ensure_newline_before_comments = true known_first_party = ["fjerkroa_bot"] [tool.bandit] exclude_dirs = ["tests", ".venv", "venv"] skips = ["B101", "B601", "B301", "B311", "B403", "B113"] # Skip pickle, random, and request timeout warnings for this application [tool.pytest.ini_options] minversion = "6.0" addopts = "-ra -q --strict-markers --strict-config" testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", "integration: marks tests as integration tests", ] [tool.coverage.run] source = ["fjerkroa_bot"] omit = [ "*/tests/*", "*/test_*", "setup.py", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "if self.debug:", "if settings.DEBUG", "raise AssertionError", "raise NotImplementedError", "if 0:", "if __name__ == .__main__.:", "class .*\bProtocol\\):", "@(abc\\.)?abstractmethod", ]