Skip to content

Commit

Permalink
ci: add config for black+isort
Browse files Browse the repository at this point in the history
As recommended for existing projects, string normalization is switched
off:
https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#strings

Other config options, such as line width, are explained here:
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format

A config for isort was added in to ensure that isort is applied
in agreement with black once/if isort is applied
  • Loading branch information
redeboer committed Nov 6, 2021
1 parent 3a49fc4 commit f0ad6ca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tool.black]
skip-string-normalization = true
target-version = [
"py36",
"py37",
"py38",
"py39",
]

[tool.isort]
profile = "black"
src_paths = [
"sympy",
]

0 comments on commit f0ad6ca

Please sign in to comment.