83 lines
1.8 KiB
TOML
83 lines
1.8 KiB
TOML
[tool.poetry]
|
|
name = "brewman"
|
|
version = "11.0.0"
|
|
description = "Accounting plus inventory management for a restaurant."
|
|
authors = ["tanshu <git@tanshu.com>"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.11"
|
|
uvicorn = {extras = ["standard"], version = "^0.19.0"}
|
|
fastapi = "^0.87.0"
|
|
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
|
|
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
|
|
psycopg2-binary = "^2.9.5"
|
|
SQLAlchemy = {extras = ["mypy"], version = "^1.4.44"}
|
|
python-multipart = "^0.0.5"
|
|
PyJWT = "^2.6.0"
|
|
alembic = "^1.8.1"
|
|
itsdangerous = "^2.1.2"
|
|
python-dotenv = "^0.21.0"
|
|
pydantic = {extras = ["dotenv"], version = "^1.10.2"}
|
|
starlette = "^0.21.0"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
flake8 = "^5.0.4"
|
|
black = "^22.10.0"
|
|
isort = {extras = ["toml"], version = "^5.10.1"}
|
|
pre-commit = "^2.20.0"
|
|
mypy = "^0.991"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
[tool.mypy]
|
|
# --strict
|
|
disallow_any_generics = true
|
|
disallow_subclassing_any = true
|
|
disallow_untyped_calls = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
check_untyped_defs = true
|
|
disallow_untyped_decorators = true
|
|
no_implicit_optional = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
strict_equality = true
|
|
plugins = ["sqlalchemy.ext.mypy.plugin"]
|
|
# --strict end
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
atomic = true
|
|
include_trailing_comma = true
|
|
lines_after_imports = 2
|
|
lines_between_types = 1
|
|
use_parentheses = true
|
|
src_paths = ["poetry", "tests"]
|
|
skip_glob = ["*/setup.py"]
|
|
filter_files = true
|
|
known_first_party = "poetry"
|
|
|
|
[tool.black]
|
|
line-length = 120
|
|
include = '\.pyi?$'
|
|
exclude = '''
|
|
/(
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| _build
|
|
| buck-out
|
|
| build
|
|
| dist
|
|
| tests/.*/setup.py
|
|
)/
|
|
'''
|