1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[project]
requires-python = ">=3.12"
name = "go-ji"
version = "0.1.0"
dependencies = [
    "alembic",
    "flask",
    "gunicorn",
    "sentry-sdk[flask]",
    "sqlalchemy",
]

[project.optional-dependencies]
dev = [
    "coverage",
    "flask-sock",
    "pyright",
    "pytest",
    "ruff",
]

[tool.setuptools]
py-modules = []

[tool.coverage.run]
branch = true
source = ["go_ji"]

[tool.coverage.report]
fail_under = 100
show_missing = true


[tool.ruff]
target-version = "py312"

    [tool.ruff.lint]
    select = [
        "F",   # pyflakes
        "E4", "E7", "E9", "W", # pycodestyle
        "I",   # isort
        "N",   # pep8-naming
        "UP",  # pyupgrade
        "ANN", # flake8-annotations
        "TCH", # flake8-type-checking
        "RUF", # ruff
    ]
    ignore = [
        "E741", # allow ambiguous variable names
    ]

    [tool.ruff.lint.per-file-ignores]
    "tests/**/*.py" = ["ANN"]

    [tool.ruff.format]
    docstring-code-format = true