mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-10 01:16:12 +02:00
add black and isort to flakeheaven
This commit is contained in:
parent
74b7ac834e
commit
e4fc8a8214
1 changed files with 10 additions and 31 deletions
|
@ -45,6 +45,8 @@ tzlocal = ">=4.0" # https://github.com/regebro/tzlocal/blob/master/CHANGES.txt
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
black = { version = ">=21.5b2", allow-prereleases = true }
|
black = { version = ">=21.5b2", allow-prereleases = true }
|
||||||
flakeheaven = ">=3.0"
|
flakeheaven = ">=3.0"
|
||||||
|
flake8-black = ">=0.3.3"
|
||||||
|
flake8-isort = ">=5.0.0"
|
||||||
ipdb = "*"
|
ipdb = "*"
|
||||||
isort = ">=5.10"
|
isort = ">=5.10"
|
||||||
mkdocs = ">=1.0,<1.3"
|
mkdocs = ">=1.0,<1.3"
|
||||||
|
@ -62,26 +64,6 @@ xmltodict = "*"
|
||||||
jrnl = 'jrnl.cli:cli'
|
jrnl = 'jrnl.cli:cli'
|
||||||
|
|
||||||
[tool.poe.tasks]
|
[tool.poe.tasks]
|
||||||
format-run = [
|
|
||||||
{cmd = "black ."},
|
|
||||||
]
|
|
||||||
format-check = [
|
|
||||||
{cmd = "black --version"},
|
|
||||||
{cmd = "black --check --diff ."},
|
|
||||||
]
|
|
||||||
style-check = [
|
|
||||||
{cmd = "flakeheaven --version"},
|
|
||||||
{cmd = "flakeheaven plugins"},
|
|
||||||
{cmd = "flakeheaven lint"},
|
|
||||||
]
|
|
||||||
sort-run = [
|
|
||||||
{cmd = "isort ."},
|
|
||||||
]
|
|
||||||
sort-check = [
|
|
||||||
{cmd = "isort --version"},
|
|
||||||
{cmd = "isort --check ."},
|
|
||||||
]
|
|
||||||
|
|
||||||
docs-check.default_item_type = "script"
|
docs-check.default_item_type = "script"
|
||||||
docs-check.sequence = [
|
docs-check.sequence = [
|
||||||
"tasks:delete_files(['sitemap.xml', 'config.json'])",
|
"tasks:delete_files(['sitemap.xml', 'config.json'])",
|
||||||
|
@ -100,21 +82,17 @@ test-run = [
|
||||||
{cmd = "tox -q -e py --"},
|
{cmd = "tox -q -e py --"},
|
||||||
]
|
]
|
||||||
|
|
||||||
installer-check = [
|
|
||||||
{cmd = "poetry --version"},
|
|
||||||
{cmd = "poetry check"},
|
|
||||||
]
|
|
||||||
|
|
||||||
# Groups of tasks
|
# Groups of tasks
|
||||||
format = [
|
format = [
|
||||||
"format-run",
|
{cmd = "isort ."},
|
||||||
"sort-run",
|
{cmd = "black ."},
|
||||||
]
|
]
|
||||||
lint = [
|
lint = [
|
||||||
"installer-check",
|
{cmd = "poetry --version"},
|
||||||
"style-check",
|
{cmd = "poetry check"},
|
||||||
"sort-check",
|
{cmd = "flakeheaven --version"},
|
||||||
"format-check",
|
{cmd = "flakeheaven plugins"},
|
||||||
|
{cmd = "flakeheaven lint"},
|
||||||
]
|
]
|
||||||
test = [
|
test = [
|
||||||
"lint",
|
"lint",
|
||||||
|
@ -169,6 +147,7 @@ pycodestyle = [
|
||||||
"-E70",
|
"-E70",
|
||||||
"-W1*", "-W2*", "-W3*", "-W5*",
|
"-W1*", "-W2*", "-W3*", "-W5*",
|
||||||
]
|
]
|
||||||
|
"flake8-*" = ["+*"]
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue