aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2022-06-04 12:49:47 -0700
committerGravatar GitHub <[email protected]>2022-06-04 12:49:47 -0700
commit2759fd453f5977f027a10cc672fed630ecc7de6c (patch)
treeecaa6114606415e3b95ba707661d70a1cb87fd90 /pyproject.toml
parentMerge pull request #143 from python-discord/feat/tests/wsgi-app-from-cfg (diff)
parentCI: use GH's Ubuntu 22.04 runner instead of the self-hosted one (diff)
Merge #144 - add black and isort
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml17
1 files changed, 13 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 08aeb8c..7a13370 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -59,8 +59,17 @@ exclude_lines = [
branch = true
data_file = "${COVERAGE_DATAFILE-.coverage}"
include = ["snekbox/*"]
-omit = [
- "snekbox/api/app.py",
- "snekbox/config_pb2.py"
-]
+omit = ["snekbox/config_pb2.py"]
relative_files = true
+
+[tool.black]
+line-length = 100
+target-version = ["py310"]
+force-exclude = ["snekbox/config_pb2.py"]
+
+[tool.isort]
+line_length = 100
+profile = "black"
+skip_gitignore = true
+src_paths = ["snekbox"]
+extend_skip = ["snekbox/config_pb2.py"]