diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..0df16f24 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,24 @@ +[tool.black] +line-length = 120 +target-version = ['py37', 'py38', 'py39'] +include = '\.pyi?$' +exclude = ''' +( + /( + # exclude a few common directories in the root of the project + \.eggs + | \.git + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | \.pytype + | _build + | buck-out + | build + | dist + )/ + # also separately exclude a file named versioneer.py + | monai/_version.py +) +''' diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..487b7c1c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,6 @@ +[isort] +known_first_party = monai +profile = black +line_length = 120 +skip = .git, .eggs, venv, .venv, versioneer.py, _version.py, conf.py, monai/__init__.py +skip_glob = *.pyi