Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] moved isort, black and docformatter settings from tox.ini file to pyproject.toml #14671

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ ignore_missing_imports = true
[[tool.mypy._winreg]]
# suppress error messages about imports that cannot be resolved.
ignore_missing_imports = true

[tool.isort]
# isort is a common python tool for keeping imports nicely formatted.
# Automatically keep imports alphabetically sorted, on single lines in
# PEP recommended sections (https://peps.python.org/pep-0008/#imports)
# files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
profile = "black"
py_version=38
force_single_line = true

[tool.black]
line-length = 120
target-version = ['py38']

[tool.docformatter]
recursive = true
5 changes: 0 additions & 5 deletions py/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@ exclude = .tox,docs/source/conf.py,*venv
extend-ignore = E501, E203
# This does nothing for now as E501 is ignored.
max-line-length = 120

[tool:pytest]
sandeepsuryaprasad marked this conversation as resolved.
Show resolved Hide resolved
addopts = -ra
python_files = test_*.py *_tests.py
testpaths = test
11 changes: 0 additions & 11 deletions py/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ deps =
trio-typing==0.7.0
commands = mypy --install-types {posargs}


[isort]
; isort is a common python tool for keeping imports nicely formatted.
; Automatically keep imports alphabetically sorted, on single lines in
; PEP recommended sections (https://peps.python.org/pep-0008/#imports)
; files or individual lines can be ignored via `# isort:skip|# isort:skip_file`.
profile = black
py_version=38
force_single_line = True


[testenv:linting-ci]
; checks linting for CI with stricter exiting when failing.
skip_install = true
Expand Down
Loading