aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-11-09 01:38:52 +0100
committerGravatar Numerlor <[email protected]>2021-11-09 01:38:52 +0100
commit74523cd6505699c79316ce15f725331b6f0a5e71 (patch)
treea8079a9a560469964c3d7e79fbd0978f0f5b2cb5 /pyproject.toml
parentRemove try_get_tag ctx args test (diff)
parentMerge pull request #1872 from python-discord/experiments/isort (diff)
Merge remote-tracking branch 'upstream/main' into tag-groups
# Conflicts: # bot/converters.py # bot/exts/info/tags.py # tests/bot/test_converters.py
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml14
1 files changed, 12 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 23cbba19b..515514c7b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -38,10 +38,10 @@ flake8 = "~=3.8"
flake8-annotations = "~=2.0"
flake8-bugbear = "~=20.1"
flake8-docstrings = "~=1.4"
-flake8-import-order = "~=0.18"
flake8-string-format = "~=0.2"
flake8-tidy-imports = "~=4.0"
flake8-todo = "~=0.7"
+flake8-isort = "~=4.0"
pep8-naming = "~=0.9"
pre-commit = "~=2.1"
taskipy = "~=1.7.0"
@@ -62,11 +62,21 @@ precommit = "pre-commit install"
build = "docker build -t ghcr.io/python-discord/bot:latest -f Dockerfile ."
push = "docker push ghcr.io/python-discord/bot:latest"
test-nocov = "pytest -n auto"
-test = "pytest -n auto --cov-report= --cov"
+test = "pytest -n auto --cov-report= --cov --ff"
+retest = "pytest -n auto --cov-report= --cov --lf"
html = "coverage html"
report = "coverage report"
+isort = "isort ."
[tool.coverage.run]
branch = true
source_pkgs = ["bot"]
source = ["tests"]
+
+[tool.isort]
+multi_line_output = 6
+order_by_type = false
+case_sensitive = true
+combine_as_imports = true
+line_length = 120
+atomic = true