|
| 1 | +[project] |
| 2 | +name = "mem-db-utils" |
| 3 | +version = "0.1.0" |
| 4 | +description = "Python package for in memory database to be used for cache, fast-access storages." |
| 5 | +readme = "README.md" |
| 6 | +requires-python = ">=3.12" |
| 7 | +dependencies = [ |
| 8 | + "pydantic>=2.11.7", |
| 9 | + "pydantic-settings>=2.10.1", |
| 10 | + "python-dotenv>=1.1.1", |
| 11 | + "redis>=6.2.0", |
| 12 | +] |
| 13 | +authors = [{ name = "Faizan Azim", email = "faizanazim11@gmail.com" }] |
| 14 | + |
| 15 | +[[tool.uv.index]] |
| 16 | +name = "prismatica-pypi" |
| 17 | +url = "https://readUser:hh(iBaf71$icV63@pypi.prismatica.in/simple" |
| 18 | + |
| 19 | +[build-system] |
| 20 | +requires = ["uv_build>=0.8.0,<0.9"] |
| 21 | +build-backend = "uv_build" |
| 22 | + |
| 23 | +[dependency-groups] |
| 24 | +dev = [ |
| 25 | + "coverage>=7.10.2", |
| 26 | + "pre-commit>=4.2.0", |
| 27 | + "pytest>=8.4.1", |
| 28 | + "pytest-cov>=6.2.1", |
| 29 | + "pytest-dotenv>=0.5.2", |
| 30 | +] |
| 31 | + |
| 32 | +[tool.pytest.ini_options] |
| 33 | +pythonpath = ["src", "."] |
| 34 | +env_files = [".env"] |
| 35 | + |
| 36 | +[tool.ruff] |
| 37 | +lint.select = [ |
| 38 | + "E", # pycodestyle errors |
| 39 | + "W", # pycodestyle warnings |
| 40 | + "F", # pyflakes |
| 41 | + "I", # isort |
| 42 | + "C", # flake8-comprehensions |
| 43 | + "B", # flake8-bugbear |
| 44 | +] |
| 45 | +lint.ignore = [ |
| 46 | + # "E501", # line too long, handled by black |
| 47 | + "B008", # do not perform function calls in argument defaults |
| 48 | + "C901", # too complex |
| 49 | + "E402", |
| 50 | + "B904", |
| 51 | + "B905", |
| 52 | + "B009", |
| 53 | + "C417", |
| 54 | + |
| 55 | +] |
| 56 | +line-length = 120 |
| 57 | +target-version = "py312" |
| 58 | + |
| 59 | +[tool.ruff.lint.per-file-ignores] |
| 60 | +"__init__.py" = ["F401"] |
| 61 | + |
| 62 | +[tool.ruff.lint.pyupgrade] |
| 63 | +keep-runtime-typing = true |
| 64 | + |
| 65 | +[tool.coverage.report] |
| 66 | +precision = 2 |
| 67 | +fail_under = 50 |
| 68 | +show_missing = true |
| 69 | +skip_covered = true |
| 70 | +exclude_lines = [ |
| 71 | + "pragma: no cover", |
| 72 | + "pragma: nocover", |
| 73 | + "if TYPE_CHECKING:", |
| 74 | + "if typing.TYPE_CHECKING:", |
| 75 | + "raise NotImplementedError", |
| 76 | +] |
| 77 | + |
| 78 | +[tool.coverage.run] |
| 79 | +omit = [ |
| 80 | + "*/tests/*", |
| 81 | + "*/src/constants/*", |
| 82 | + "*/src/db/*", |
| 83 | + "app.py", |
| 84 | + "main.py", |
| 85 | +] |
0 commit comments