mirror of
https://github.com/vale981/ray
synced 2025-03-04 09:31:43 -05:00

Why are these changes needed? There are directories that we don't lint / format. Ensure they are also the case for the import sorting tool. Enable sorting for python/experimental to show case how to enable sorting for a directory as we convert more of the directories to be automatically sorted by the tool.
26 lines
1.3 KiB
INI
26 lines
1.3 KiB
INI
[settings]
|
|
# This is to make isort compatible with Black. See
|
|
# https://black.readthedocs.io/en/stable/the_black_code_style.html#how-black-wraps-lines.
|
|
line_length=88
|
|
profile=black
|
|
multi_line_output=3
|
|
include_trailing_comma=True
|
|
use_parentheses=True
|
|
float_to_top=True
|
|
filter_files=True
|
|
|
|
# Some of the directories need to be kept in the blacklist:
|
|
# python/ray/cloudpickle/*
|
|
# python/build/*
|
|
# python/ray/thirdparty_files/*
|
|
# python/ray/_private/thirdparty/*
|
|
# doc/*
|
|
# python/ray/__init__.py
|
|
# python/ray/setup-dev.py
|
|
# For the rest we will gradually remove them from the blacklist as we
|
|
# reformat the code to follow the style guide.
|
|
skip_glob=doc/*,python/ray/__init__.py,python/ray/setup-dev.py,python/build/*,python/ray/cloudpickle/*,python/ray/thirdparty_files/*,python/ray/_private/thirdparty/*,python/ray/dag/*.py,ci/*,python/ray/_private/*,python/ray/air/*,python/ray/core/*,dashboard/*,python/ray/data/*,python/ray/includes/*,python/ray/internal/*,python/ray/ray_operator/*,python/ray/scripts/*,python/ray/serve/*,python/ray/serve/__init__.py,python/ray/sgd/*,python/ray/streaming/*,python/ray/tests/*,python/ray/tests/*,python/ray/train/*,python/ray/tune/*,python/ray/util/*,python/ray/workers/*,python/ray/workflow/*,rllib/*,release/*,
|
|
|
|
known_local_folder=ray
|
|
known_afterray=psutil,setproctitle
|
|
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER,AFTERRAY
|