Skip to content

Commit 823d02b

Browse files
Linting: configure isort to skip recipes docs directory
1 parent 7305962 commit 823d02b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ profile = "black"
1515
# ... and since we set this against the black default line length:
1616
line_length=79
1717
# Prevent isort from auto-formatting '__init__.py' file imports because
18-
# they require a specific non-aphabetical (etc.) ordering else they will
19-
# cause errors due to bad or circular importing across the modules.
18+
# they require a specific non-alphabetical (etc.) ordering else they will
19+
# cause errors due to bad or circular importing across the modules. Also
20+
# skip the recipes, since we have a certain import order there for clarity
21+
# and to avoid incompatibilities with some matplotlib and esmpy versions
22+
# which can cause a seg fault if cf-plot/matplotlib is imported first.
2023
extend_skip_glob = [
2124
"**/__init__.py",
25+
"docs/source/recipes/**",
2226
]

0 commit comments

Comments
 (0)