|
| 1 | +[project] |
| 2 | +name = "lib_dist_name" |
| 3 | +version = "0.2.0" |
| 4 | +description = "lib_description" |
| 5 | +authors = [ |
| 6 | + { name = "Alexander Smolin", email = "[email protected]"} |
| 7 | +] |
| 8 | +readme = "README.md" |
| 9 | +license = { file = "LICENSE" } |
| 10 | +requires-python = ">=3.13" |
| 11 | +dependencies = [] |
| 12 | + |
| 13 | +[project.urls] |
| 14 | +Repository = "https://github.com/emptybutton/lib-kebab-case" |
| 15 | + |
| 16 | +[project.optional-dependencies] |
| 17 | +dev = [ |
| 18 | + "mypy[faster-cache]==1.15.0", |
| 19 | + "ruff==0.9.7", |
| 20 | + "pytest==8.3.4", |
| 21 | + "pytest-asyncio==0.25.3", |
| 22 | + "pytest-cov==6.0.0", |
| 23 | + "dirty-equals==0.8.0", |
| 24 | +] |
| 25 | + |
| 26 | +[build-system] |
| 27 | +requires = ["hatchling"] |
| 28 | +build-backend = "hatchling.build" |
| 29 | + |
| 30 | +[tool.hatch.build.targets.wheel] |
| 31 | +packages = ["src/lib_snake_case"] |
| 32 | + |
| 33 | +[tool.mypy] |
| 34 | +mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/tests" |
| 35 | +strict = true |
| 36 | +no_namespace_packages = true |
| 37 | +allow_redefinition = true |
| 38 | + |
| 39 | +[tool.ruff] |
| 40 | +src = ["src"] |
| 41 | +preview = true |
| 42 | +line-length = 90 |
| 43 | +indent-width = 4 |
| 44 | + |
| 45 | +[tool.ruff.lint] |
| 46 | +select = [ |
| 47 | + "ANN", "F", "W", "E", "B", "C90", "N", "UP", "YTT", "ASYNC", "PL", "RUF", |
| 48 | + "Q", "RET", "SLF", "SLOT", "SIM", "TID252", "TCH", "ARG", "PTH", "ERA", "TRY", |
| 49 | + "PERF", "INP", "I", "S", "FAST", "TID", "TCH", "INT" |
| 50 | +] |
| 51 | +ignore = ["N818", "RUF009", "UP018", "PLR6301", "PLR0913", "PLW0108", "TC006", "UP049", "UP046"] |
| 52 | + |
| 53 | +[tool.ruff.lint.isort] |
| 54 | +lines-after-imports = 2 |
| 55 | + |
| 56 | +[tool.ruff.lint.per-file-ignores] |
| 57 | +"src/*" = ["PLR2004"] |
| 58 | +"tests/*" = ["S101", "PLR0124", "PLR0917", "S106", "C901"] |
| 59 | +"__init__.py" = ["PLC0414"] |
| 60 | + |
| 61 | +[tool.pytest.ini_options] |
| 62 | +pythonpath = ["src"] |
| 63 | +asyncio_mode = "auto" |
| 64 | +asyncio_default_fixture_loop_scope = "session" |
| 65 | + |
| 66 | +[tool.coverage.run] |
| 67 | +branch = true |
| 68 | +source = ["src/"] |
0 commit comments