diff options
| author | 2022-06-04 12:49:47 -0700 | |
|---|---|---|
| committer | 2022-06-04 12:49:47 -0700 | |
| commit | 2759fd453f5977f027a10cc672fed630ecc7de6c (patch) | |
| tree | ecaa6114606415e3b95ba707661d70a1cb87fd90 /pyproject.toml | |
| parent | Merge pull request #143 from python-discord/feat/tests/wsgi-app-from-cfg (diff) | |
| parent | CI: 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.toml | 17 |
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"] |