Skip to content

Commit

Permalink
build: use poetry for dependencies management
Browse files Browse the repository at this point in the history
  • Loading branch information
hktkzyx committed Feb 23, 2022
1 parent 1a576f1 commit 71bb80f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
extend-ignore = D1, D204, W292, W293
docstrings-convention = numpy
max-complexity = 10
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
test.py
img/
sample.beancount
poetry.lock

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[tool.poetry]
name = "auto-depreciation"
version = "2.1.0"
description = "Beancount plugin for fixed assets depreciation"
authors = ["hktkzyx <hktkzyx@yeah.net>"]
license = "GPL-3.0-or-later"

[tool.poetry.dependencies]
python = "^3.9"
python-dateutil = "^2.8.2"
beancount = "^2.3.5"
flake8 = {version = "^4.0.1", optional = true}
yapf = {version = "^0.32.0", optional = true}
commitizen = {version = "^2.21.2", optional = true}
pre-commit = {version = "^2.17.0", optional = true}
isort = {version = "^5.10.1", optional = true}

[tool.poetry.dev-dependencies]
mkdocs = "^1.2.3"
mkdocs-material = "^8.2.1"

[tool.poetry.extras]
dev-tools = ["flake8", "yapf", "commitizen", "pre-commit", "isort"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.isort]
profile = "google"

[tool.yapf]
based_on_style = "pep8"
split_before_arithmetic_operator = true
split_before_named_assigns = false
indent_dictionary_value = true
split_all_top_level_comma_separated_values = true

0 comments on commit 71bb80f

Please sign in to comment.