Move the isort config
This commit is contained in:
parent
74ddb54772
commit
c28d702a58
2 changed files with 27 additions and 24 deletions
|
|
@ -108,6 +108,33 @@ source = ["velofy"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
# Source: https://pycqa.github.io/isort/docs/configuration/options.html
|
||||||
|
|
||||||
|
atomic = true
|
||||||
|
case_sensitive = true
|
||||||
|
combine_star = true
|
||||||
|
force_alphabetical_sort_within_sections = true
|
||||||
|
lines_after_imports = 2
|
||||||
|
remove_redundant_aliases = true
|
||||||
|
|
||||||
|
# Comply with black's style
|
||||||
|
# Source: https://github.com/psf/black/blob/master/docs/compatible_configs.md#isort
|
||||||
|
ensure_newline_before_comments = true
|
||||||
|
force_grid_wrap = 0
|
||||||
|
include_trailing_comma = true
|
||||||
|
line_length = 88
|
||||||
|
multi_line_output = 3
|
||||||
|
use_parentheses = true
|
||||||
|
|
||||||
|
# Comply with Google's Python Style Guide
|
||||||
|
# => All imports go on a single line except the ones from the typing module
|
||||||
|
# Source: https://google.github.io/styleguide/pyguide.html#313-imports-formatting
|
||||||
|
force_single_line = true
|
||||||
|
single_line_exclusions = ["typing"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
# Source: https://mypy.readthedocs.io/en/stable/config_file.html
|
# Source: https://mypy.readthedocs.io/en/stable/config_file.html
|
||||||
|
|
||||||
|
|
|
||||||
24
setup.cfg
24
setup.cfg
|
|
@ -229,27 +229,3 @@ pytest-fixture-no-parentheses = true
|
||||||
pytest-parametrize-names-type = list
|
pytest-parametrize-names-type = list
|
||||||
pytest-parametrize-values-row-type = tuple
|
pytest-parametrize-values-row-type = tuple
|
||||||
pytest-parametrize-values-type = list
|
pytest-parametrize-values-type = list
|
||||||
|
|
||||||
|
|
||||||
[isort]
|
|
||||||
atomic = true
|
|
||||||
case_sensitive = true
|
|
||||||
combine_star = true
|
|
||||||
force_alphabetical_sort_within_sections = true
|
|
||||||
lines_after_imports = 2
|
|
||||||
remove_redundant_aliases = true
|
|
||||||
|
|
||||||
# Comply with black's style.
|
|
||||||
# Source: https://github.com/psf/black/blob/master/docs/compatible_configs.md#isort
|
|
||||||
ensure_newline_before_comments = true
|
|
||||||
force_grid_wrap = 0
|
|
||||||
include_trailing_comma = true
|
|
||||||
line_length = 88
|
|
||||||
multi_line_output = 3
|
|
||||||
use_parentheses = true
|
|
||||||
|
|
||||||
# Comply with Google's Python Style Guide.
|
|
||||||
# All imports go on a single line except the ones from the typing module.
|
|
||||||
# Source: https://google.github.io/styleguide/pyguide.html#313-imports-formatting
|
|
||||||
force_single_line = true
|
|
||||||
single_line_exclusions = typing
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue