forked from NCAS-CMS/cf-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
22 lines (20 loc) · 872 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file is currently used only to configure the black Python code
# formatter, rather than provide project metadata (see
# https://www.python.org/dev/peps/pep-0621/) which can be found instead
# in the setup.py file.
# To run the black checker with this configuration, execute 'black .' in the
# root of this repository. See https://black.readthedocs.io/en/stable/ for
# the 'black' documentation.
[tool.black]
line-length = 79
[tool.isort]
# Set for compatibility of 'black' and 'isort' auto-formatting tools
profile = "black"
# ... and since we set this against the black default line length:
line_length=79
# Prevent isort from auto-formatting '__init__.py' file imports because
# they require a specific non-aphabetical (etc.) ordering else they will
# cause errors due to bad or circular importing across the modules.
extend_skip_glob = [
"**/__init__.py",
]