feat: move project from poetry to pdm, rewrite from scratch and add

basic `notebooks`, `edit` and `show` commands
This commit is contained in:
cătălin 2023-04-01 12:37:10 +02:00
commit d3ad87211e
Signed by: catalin
GPG key ID: 686088EF78EE4083
35 changed files with 1309 additions and 1434 deletions

View file

@ -1,39 +1,67 @@
[tool.poetry]
[tool.pdm.build]
includes = []
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
authors = [
{ name = "cătălin", email = "185504a9@duck.com" },
]
requires-python = ">=3.10"
dependencies = [
"typer<1.0.0,>=0.6.1",
"rich>=13.3.3",
"pydantic>=1.10.7",
"pyyaml>=6.0",
"pyrage>=1.0.3",
"pendulum>=2.1.2",
]
name = "halig"
version = "0.1.1"
description = ""
authors = ["cătălin <185504a9@duck.com>"]
description = "age-encrypted, file-based, note-taking CLI app"
readme = "README.md"
[tool.poetry.scripts]
[project.scripts]
halig = "halig.main:app"
[tool.poetry.dependencies]
python = "^3.10"
typer = "^0.6.1"
rich = "^12.5.1"
sh = "^1.14.3"
pydantic = "^1.9.1"
PyYAML = "^6.0"
seedir = "^0.3.1"
pytest-mock = "^3.8.2"
returns = "^0.19.0"
[project.optional-dependencies]
testing = [
"pytest>=7.2.2",
"pytest-cov>=4.0.0",
"pyfakefs>=5.1.0",
"pytest-clarity>=1.0.1",
"pytest-reportlog>=0.2.1",
"pytest-duration-insights>=0.1.1",
"pytest-pretty>=1.1.1",
]
linting = [
"black>=23.3.0",
"ruff>=0.0.260",
"pyright>=1.1.301",
"mypy>=1.1.1",
"types-PyYAML>=6.0.12.9",
"pyrage-stubs>=1.0.1",
]
linters = [
"pyrage-stubs>=1.0.1",
]
[tool.pyright]
reportMissingImports = false
reportMissingTypeStubs = false
[tool.poetry.group.linters.dependencies]
black = "^22.6.0"
[tool.ruff]
extend-select = ["W", "C90", "I", "N", "UP", "S", "BLE", "FBT", "B", "A", "COM", "C4", "DTZ", "T10", "EM", "ISC", "T20", "PT", "RSE", "RET", "SIM", "PTH", "ERA", "PGH", "PL", "TRY", "RUF"]
extend-ignore = ["S101", "ISC002"]
[tool.poetry.group.test.dependencies]
pytest-mock = "^3.8.2"
pytest-cov = "^3.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = ['--maxfail=1', '-rf', "--cov=halig", '--junitxml=report.xml']
[tool.coverage.run]
omit = [".venv/**"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"pyrage",
"pyrage.ssh",
]
ignore_missing_imports = true