|
| 1 | +[project] |
| 2 | +name = "python-base-uv" |
| 3 | +version = "0.1.0" |
| 4 | +description = "Add your description here" |
| 5 | +readme = "README.md" |
| 6 | +authors = [ |
| 7 | + { name = "idatsy", email = "stefan@ranvier.co.uk" } |
| 8 | +] |
| 9 | +requires-python = ">=3.14" |
| 10 | +dependencies = [] |
| 11 | + |
| 12 | +[project.scripts] |
| 13 | +python-base-uv = "python_base_uv:main" |
| 14 | + |
| 15 | +[build-system] |
| 16 | +requires = ["hatchling"] |
| 17 | +build-backend = "hatchling.build" |
| 18 | + |
| 19 | +[dependency-groups] |
| 20 | +dev = [ |
| 21 | + "pyrefly>=0.25.1", |
| 22 | + "pyright>=1.1.403", |
| 23 | + "pytest>=8.4.1", |
| 24 | + "pytest-asyncio>=1.1.0", |
| 25 | + "pytest-watcher>=0.4.3", |
| 26 | + "ruff>=0.12.5", |
| 27 | +] |
| 28 | + |
| 29 | +[tool.ruff] |
| 30 | +line-length = 125 |
| 31 | +target-version = "py313" |
| 32 | + |
| 33 | +[tool.ruff.lint] |
| 34 | +extend-select = ["E","W","F","I","B","C4","N","D","UP","S","ANN","ARG","ERA","ICN","PD","NPY","PT","RET","SIM","TCH"] |
| 35 | +ignore = ["ANN204", "C901","S608","D401","E501","D107","W291","RET503","D100","D101","D102","D103","D104","D105","S104","PD901"] |
| 36 | +fixable = ["ALL"] |
| 37 | +pydocstyle = { convention = "google" } |
| 38 | + |
| 39 | +[tool.ruff.lint.per-file-ignores] |
| 40 | +"**/wip*.py" = ["ALL"] |
| 41 | +"**/tests/*" = ["D","ANN","S","ERA"] |
| 42 | +"*_" = ["D","ANN","S"] |
| 43 | +"wip*" = ["D","ANN","S"] |
| 44 | +"__init__.py" = ["D"] |
| 45 | +"**/gen/*" = ["ALL"] |
| 46 | +"**/*.ipynb" = ["ALL"] |
| 47 | + |
| 48 | +[tool.ruff.lint.isort] |
| 49 | +force-single-line = false |
| 50 | +lines-between-types = 1 |
| 51 | +known-first-party = [] |
| 52 | + |
| 53 | +[tool.ruff.lint.flake8-annotations] |
| 54 | +allow-star-arg-any = false |
| 55 | +suppress-none-returning = true |
| 56 | + |
| 57 | +[tool.ruff.format] |
| 58 | +quote-style = "double" |
| 59 | +indent-style = "space" |
| 60 | +skip-magic-trailing-comma = false |
| 61 | +line-ending = "auto" |
| 62 | +docstring-code-format = true |
| 63 | +docstring-code-line-length = 125 |
| 64 | + |
| 65 | +[tool.pyright] |
| 66 | +include = ["src"] |
| 67 | +exclude = ["**/node_modules", "**/__pycache__", ".venv", ".git", "dist", "build", "_*", "wip*", "**/tests", "**/gen", "**/program/*", "**/*.ipynb", "**/wip*.py"] |
| 68 | +defineConstant = { DEBUG = true } |
| 69 | +typeCheckingMode = "standard" |
| 70 | +pythonVersion = "3.13" |
| 71 | +pythonPlatform = "All" |
| 72 | +stubPath = "typings" |
| 73 | +reportMissingImports = "error" |
| 74 | +reportMissingTypeStubs = false |
| 75 | +reportMissingModuleSource = false |
| 76 | +reportUnknownParameterType = "warning" |
| 77 | +reportUnknownArgumentType = false |
| 78 | +reportUnknownMemberType = false |
| 79 | +reportMissingParameterType = "warning" |
| 80 | +reportUnnecessaryTypeIgnoreComment = "warning" |
| 81 | +reportUnnecessaryIsInstance = "warning" |
| 82 | +reportImportCycles = "warning" |
| 83 | +reportUnusedImport = "warning" |
| 84 | +reportUnusedVariable = "warning" |
| 85 | +reportDuplicateImport = "warning" |
| 86 | + |
| 87 | +[[tool.pyright.overrides]] |
| 88 | +pattern = ".venv/**" |
| 89 | +reportUnknownParameterType = "none" |
| 90 | +reportUnknownArgumentType = "none" |
| 91 | +reportUnknownMemberType = "none" |
| 92 | +reportMissingParameterType = "none" |
0 commit comments