|
| 1 | +diff a/pyproject.toml b/pyproject.toml (rejected hunks) |
| 2 | +@@ -18,9 +18,11 @@ classifiers = [ |
| 3 | + "Operating System :: OS Independent", |
| 4 | + "Programming Language :: Python", |
| 5 | + "Programming Language :: Python :: 3", |
| 6 | +- "Programming Language :: Python :: 3.7", |
| 7 | + "Programming Language :: Python :: 3.8", |
| 8 | + "Programming Language :: Python :: 3.9", |
| 9 | ++ "Programming Language :: Python :: 3.10", |
| 10 | ++ "Programming Language :: Python :: 3.11", |
| 11 | ++ "Programming Language :: Python :: 3.12", |
| 12 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 13 | + "Typing :: Typed", |
| 14 | + ] |
| 15 | +@@ -30,43 +32,54 @@ packages = [ |
| 16 | + ] |
| 17 | + |
| 18 | + [tool.poetry.dependencies] |
| 19 | +-python = ">=3.7.1, <4.0" |
| 20 | +- |
| 21 | +-[tool.poetry.dev-dependencies] |
| 22 | +-autoflake = "*" |
| 23 | +-black = "*" |
| 24 | +-flake8 = "*" |
| 25 | +-flake8-bugbear = "*" |
| 26 | +-flake8-builtins = "*" |
| 27 | +-flake8-comprehensions = "*" |
| 28 | +-flake8-debugger = "*" |
| 29 | +-flake8-eradicate = "*" |
| 30 | +-flake8-logging-format = "*" |
| 31 | +-isort = "*" |
| 32 | +-mkdocstrings = {version = ">=0.18", extras = ["python"]} |
| 33 | ++python = ">=3.8.1, <4.0" |
| 34 | ++ |
| 35 | ++[tool.poetry.group.dev.dependencies] |
| 36 | ++mkdocstrings = {version = ">=0.23", extras = ["python"]} |
| 37 | + mkdocs-material = "*" |
| 38 | + mypy = "*" |
| 39 | +-pep8-naming = "*" |
| 40 | + pre-commit = "*" |
| 41 | + pymdown-extensions = "*" |
| 42 | + pytest = "*" |
| 43 | + pytest-github-actions-annotate-failures = "*" |
| 44 | + pytest-cov = "*" |
| 45 | + python-kacl = "*" |
| 46 | +-pyupgrade = "*" |
| 47 | +-tryceratops = "*" |
| 48 | ++ruff = ">=0.2.0" |
| 49 | + |
| 50 | + [build-system] |
| 51 | + requires = ["poetry-core>=1.0.0"] |
| 52 | + build-backend = "poetry.core.masonry.api" |
| 53 | + |
| 54 | +-[tool.isort] |
| 55 | +-profile = "black" |
| 56 | +-src_paths = ["src", "tests"] |
| 57 | ++[tool.ruff] |
| 58 | ++target-version = "py38" # The lowest supported version |
| 59 | ++ |
| 60 | ++[tool.ruff.lint] |
| 61 | ++# By default, enable all the lint rules. |
| 62 | ++# Add to the ignore list below if you don't want some rules. |
| 63 | ++# If you need some ignores for certain modules, see tool.ruff.lint.per-file-ignores below. |
| 64 | ++# For individual ignore cases, prefer inline `# noqa`s within the code. |
| 65 | ++select = ["ALL"] |
| 66 | ++ignore = [ |
| 67 | ++ "ANN", # Type hints related, let mypy handle these. |
| 68 | ++ "D", # Docstrings related, way too strict to our taste |
| 69 | ++ ] |
| 70 | ++ |
| 71 | ++[tool.ruff.lint.per-file-ignores] |
| 72 | ++"tests/**" = [ |
| 73 | ++ "S101", # "Use of `assert` detected" |
| 74 | ++ "ARG", # "Unused function argument". Fixtures are often unused. |
| 75 | ++ "S105", # "Possible hardcoded password". |
| 76 | ++] |
| 77 | ++ |
| 78 | ++[tool.ruff.lint.mccabe] |
| 79 | ++max-complexity = 10 |
| 80 | + |
| 81 | +-[tool.black] |
| 82 | +-target-version = ["py37", "py38", "py39"] |
| 83 | +-include = '\.pyi?$' |
| 84 | ++[tool.ruff.lint.pep8-naming] |
| 85 | ++classmethod-decorators = [ |
| 86 | ++ "classmethod", |
| 87 | ++ "pydantic.validator", |
| 88 | ++ "pydantic.root_validator", |
| 89 | ++] |
| 90 | + |
| 91 | + [tool.pytest.ini_options] |
| 92 | + addopts = """\ |
| 93 | +@@ -84,12 +97,23 @@ exclude_lines = [ |
| 94 | + ] |
| 95 | + |
| 96 | + [tool.mypy] |
| 97 | ++# This is the global mypy configuration. |
| 98 | ++# Avoid changing this! |
| 99 | ++strict = true # See all the enabled flags `mypy --help | grep -A 10 'Strict mode'` |
| 100 | + disallow_any_unimported = true |
| 101 | +-disallow_untyped_defs = true |
| 102 | +-no_implicit_optional = true |
| 103 | +-strict_equality = true |
| 104 | +-warn_unused_ignores = true |
| 105 | +-warn_redundant_casts = true |
| 106 | +-warn_return_any = true |
| 107 | +-check_untyped_defs = true |
| 108 | +-show_error_codes = true |
| 109 | ++ |
| 110 | ++# If you need to ignore something for some specific module, |
| 111 | ++# add overrides for them. Avoid changing the global config! |
| 112 | ++# For example: |
| 113 | ++# [[tool.mypy.overrides]] |
| 114 | ++# module = [ |
| 115 | ++# "my_unpyted_dependency1.*", |
| 116 | ++# "my_unpyted_dependency2.*" |
| 117 | ++# ] |
| 118 | ++# ignore_missing_imports = true |
| 119 | ++ |
| 120 | ++# [[tool.mypy.overrides]] |
| 121 | ++# module = [ |
| 122 | ++# "tests/my_thing/test_my_thing", |
| 123 | ++# ] |
| 124 | ++# disallow_untyped_defs = false |
0 commit comments