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