|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=42", "wheel"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "corva-sdk" |
| 7 | +description = "SDK for building Corva DevCenter Python apps." |
| 8 | +readme = "README.md" |
| 9 | +version = "1.14.2" |
| 10 | +license = { text = "The Unlicense" } |
| 11 | +authors = [ |
| 12 | + { name = "Jordan Ambra", email = "jordan.ambra@corva.ai" } |
| 13 | +] |
| 14 | +keywords = ["corva", "sdk"] |
| 15 | +requires-python = ">=3.8,<4.0" |
| 16 | +dependencies = [ |
| 17 | + "fakeredis[lua] >=2.26.2, <2.30.0", |
| 18 | + "pydantic >=1.8.2, <2.0.0", |
| 19 | + "redis >=5.2.1, <6.0.0", |
| 20 | + "requests >=2.32.3, <3.0.0", |
| 21 | + "urllib3==2.5.0" |
| 22 | +] |
| 23 | +classifiers = [ |
| 24 | + "Development Status :: 5 - Production/Stable", |
| 25 | + "Intended Audience :: Developers", |
| 26 | + "Operating System :: OS Independent", |
| 27 | + "Programming Language :: Python", |
| 28 | + "Programming Language :: Python :: 3", |
| 29 | + "Programming Language :: Python :: 3.8", |
| 30 | + "Topic :: Software Development :: Libraries" |
| 31 | +] |
| 32 | + |
| 33 | +[project.urls] |
| 34 | +Homepage = "https://github.com/corva-ai/python-sdk" |
| 35 | + |
| 36 | +[project.optional-dependencies] |
| 37 | +dev = [ |
| 38 | + "black==22.3.0", |
| 39 | + "ruff==0.12.11", |
| 40 | + "isort==5.8.0", |
| 41 | + "mypy==0.950", |
| 42 | + "types-freezegun~=1.1.9", |
| 43 | + "types-redis~=4.2.4", |
| 44 | + "types-requests~=2.27.27", |
| 45 | + "coverage==7.6.1", |
| 46 | + "freezegun==1.5.1", |
| 47 | + "pytest==6.2.5", |
| 48 | + "pytest-mock==3.3.1", |
| 49 | + "requests-mock==1.8.0", |
| 50 | +] |
| 51 | + |
| 52 | +[tool.setuptools] |
| 53 | +package-dir = { "" = "src" } |
| 54 | +packages = { find = { where = ["src"] } } |
| 55 | +py-modules = ["plugin"] |
| 56 | + |
| 57 | +[project.entry-points."pytest11"] |
| 58 | +corva = "plugin" |
| 59 | + |
| 60 | +[tool.ruff] |
| 61 | +line-length = 88 |
| 62 | +exclude = ["__init__.py"] |
| 63 | +lint.select = ["C", "E", "W", "F", "I"] |
| 64 | +lint.extend-ignore = ["E203", "Q000"] |
| 65 | +format.exclude = ["__init__.py"] |
| 66 | + |
| 67 | +[tool.coverage.run] |
| 68 | +source = ["corva", "docs/modules/ROOT/examples", "tests"] |
| 69 | +branch = true |
| 70 | +parallel = true |
| 71 | + |
| 72 | +[tool.coverage.report] |
| 73 | +precision = 2 |
| 74 | +fail_under = 97.68 |
| 75 | +skip_covered = true |
| 76 | +show_missing = true |
| 77 | +exclude_lines = [ |
| 78 | + "@abc.abstractmethod", |
| 79 | + "if TYPE_CHECKING", |
| 80 | + "class .*Protocol.*", |
| 81 | + "@overload" |
| 82 | +] |
| 83 | +omit = [ |
| 84 | + "docs/modules/ROOT/examples/logging/tutorial003.py", |
| 85 | + "docs/modules/ROOT/examples/logging/tutorial004.py", |
| 86 | + "docs/modules/ROOT/examples/logging/tutorial005.py", |
| 87 | + "docs/modules/ROOT/examples/followable/tutorial001.py", |
| 88 | + "src/corva/__init__.py", |
| 89 | + "src/version.py", |
| 90 | + "src/plugin.py" |
| 91 | +] |
| 92 | + |
| 93 | +[tool.isort] |
| 94 | +profile = "black" |
| 95 | + |
| 96 | +[tool.mypy] |
| 97 | +exclude = '''(?x)( |
| 98 | + ^docs/modules/ROOT/examples/cache/tutorial004\.py$ |
| 99 | + | ^docs/modules/ROOT/examples/cache/tutorial005\.py$ |
| 100 | +)''' |
| 101 | + |
| 102 | +[[tool.mypy.overrides]] |
| 103 | +module = "setuptools.*" |
| 104 | +ignore_missing_imports = true |
| 105 | + |
| 106 | +[[tool.mypy.overrides]] |
| 107 | +module = "docs.*" |
| 108 | +ignore_missing_imports = true |
| 109 | + |
| 110 | +[[tool.mypy.overrides]] |
| 111 | +module = "requests_mock.*" |
| 112 | +ignore_missing_imports = true |
| 113 | + |
| 114 | +[[tool.mypy.overrides]] |
| 115 | +module = "raygun4py.*" |
| 116 | +ignore_missing_imports = true |
| 117 | + |
| 118 | +[[tool.mypy.overrides]] |
| 119 | +module = "rollbar.*" |
| 120 | +ignore_missing_imports = true |
| 121 | + |
| 122 | +[[tool.mypy.overrides]] |
| 123 | +module = "sentry_sdk.*" |
| 124 | +ignore_missing_imports = true |
| 125 | + |
| 126 | +[[tool.mypy.overrides]] |
| 127 | +module = "fakeredis.*" |
| 128 | +ignore_missing_imports = true |
| 129 | + |
0 commit comments