|
| 1 | +[project] |
| 2 | +name = "flagsmith-sql-flag-engine" |
| 3 | +version = "0.1.0a2" |
| 4 | +description = "SQL translator for Flagsmith segment predicates." |
| 5 | +readme = "README.md" |
| 6 | +authors = [{ name = "Flagsmith", email = "engineering@flagsmith.com" }] |
| 7 | +requires-python = ">=3.10" |
| 8 | +license = "BSD-3-Clause" |
| 9 | +classifiers = [ |
| 10 | + "Programming Language :: Python :: 3 :: Only", |
| 11 | + "Programming Language :: SQL", |
| 12 | + "Topic :: Database", |
| 13 | +] |
| 14 | +dependencies = ["flagsmith-flag-engine>=10", "jsonpath-rfc9535>=0.2"] |
| 15 | + |
| 16 | +[project.urls] |
| 17 | +Homepage = "https://github.com/Flagsmith/flagsmith-sql-flag-engine" |
| 18 | + |
| 19 | +[dependency-groups] |
| 20 | +dev = [ |
| 21 | + "pytest>=8", |
| 22 | + "pytest-xdist>=3", |
| 23 | + "mypy>=1.10", |
| 24 | + "prek>=0.3", |
| 25 | + "clickhouse-connect>=0.7", |
| 26 | + "json5>=0.14.0", |
| 27 | + "pytest-cov>=7.1.0", |
| 28 | +] |
| 29 | + |
| 30 | +[build-system] |
| 31 | +requires = ["uv_build>=0.8.14,<0.9.0"] |
| 32 | +build-backend = "uv_build" |
| 33 | + |
| 34 | +[tool.pytest.ini_options] |
| 35 | +addopts = [ |
| 36 | + "-ra", |
| 37 | + "--cov", |
| 38 | + "src", |
| 39 | + "--cov-report", |
| 40 | + "term-missing", |
| 41 | + "--cov-report", |
| 42 | + "xml", |
| 43 | +] |
| 44 | +testpaths = ["tests"] |
| 45 | + |
| 46 | +[tool.coverage.run] |
| 47 | +branch = true |
| 48 | +source = ["src"] |
| 49 | + |
| 50 | +[tool.coverage.report] |
| 51 | +# `match` statements exhaustive over a Literal type record a phantom |
| 52 | +# fall-through branch from the last case to function exit; coverage.py |
| 53 | +# can't see the type-system exhaustiveness mypy enforces. Treat any |
| 54 | +# `case` line as a possibly-partial branch so the gate stays at 100% |
| 55 | +# without us littering the source with `# pragma: no branch`. |
| 56 | +partial_branches = [ |
| 57 | + "pragma: no branch", |
| 58 | + "case .+:", |
| 59 | +] |
| 60 | + |
| 61 | +[tool.ruff] |
| 62 | +target-version = "py310" |
| 63 | +line-length = 100 |
| 64 | + |
| 65 | +[tool.ruff.lint] |
| 66 | +select = ["E", "F", "I", "B", "UP"] |
| 67 | + |
| 68 | +[tool.mypy] |
| 69 | +strict = true |
| 70 | +python_version = "3.10" |
| 71 | +files = ["src/flagsmith_sql_flag_engine", "tests"] |
| 72 | + |
| 73 | +[[tool.mypy.overrides]] |
| 74 | +module = "clickhouse_connect.*" |
| 75 | +ignore_missing_imports = true |
0 commit comments