From b64fd2bbec420ff71f7592f40816ae7de2fa4a15 Mon Sep 17 00:00:00 2001 From: Shota Ray Imaki Date: Sat, 31 Oct 2020 00:13:55 +0900 Subject: [PATCH] Add compatible configuration files. (psf#1789) (#1792) * Add compatible configuration files. (psf#1789) * Simplify isort configuration files. (#1789) --- docs/compatible_configs.md | 3 +++ docs/compatible_configs/flake8/.flake8 | 3 +++ docs/compatible_configs/flake8/setup.cfg | 3 +++ docs/compatible_configs/flake8/tox.ini | 3 +++ docs/compatible_configs/isort/.editorconfig | 2 ++ docs/compatible_configs/isort/.isort.cfg | 2 ++ docs/compatible_configs/isort/pyproject.toml | 2 ++ docs/compatible_configs/isort/setup.cfg | 2 ++ docs/compatible_configs/pylint/pylintrc | 5 +++++ docs/compatible_configs/pylint/pyproject.toml | 5 +++++ docs/compatible_configs/pylint/setup.cfg | 5 +++++ 11 files changed, 35 insertions(+) create mode 100644 docs/compatible_configs/flake8/.flake8 create mode 100644 docs/compatible_configs/flake8/setup.cfg create mode 100644 docs/compatible_configs/flake8/tox.ini create mode 100644 docs/compatible_configs/isort/.editorconfig create mode 100644 docs/compatible_configs/isort/.isort.cfg create mode 100644 docs/compatible_configs/isort/pyproject.toml create mode 100644 docs/compatible_configs/isort/setup.cfg create mode 100644 docs/compatible_configs/pylint/pylintrc create mode 100644 docs/compatible_configs/pylint/pyproject.toml create mode 100644 docs/compatible_configs/pylint/setup.cfg diff --git a/docs/compatible_configs.md b/docs/compatible_configs.md index 990820a..c6724e7 100644 --- a/docs/compatible_configs.md +++ b/docs/compatible_configs.md @@ -10,6 +10,9 @@ tools out there. (e.g. `pyproject.toml`). The provided examples are to only configure their corresponding tools, using **their** supported file formats. +Compatible configuration files can be +[found here](https://github.com/psf/black/blob/master/docs/compatible_configs/). + ## isort [isort](https://pypi.org/p/isort/) helps to sort and format imports in your Python code. diff --git a/docs/compatible_configs/flake8/.flake8 b/docs/compatible_configs/flake8/.flake8 new file mode 100644 index 0000000..8dd399a --- /dev/null +++ b/docs/compatible_configs/flake8/.flake8 @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 diff --git a/docs/compatible_configs/flake8/setup.cfg b/docs/compatible_configs/flake8/setup.cfg new file mode 100644 index 0000000..8dd399a --- /dev/null +++ b/docs/compatible_configs/flake8/setup.cfg @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 diff --git a/docs/compatible_configs/flake8/tox.ini b/docs/compatible_configs/flake8/tox.ini new file mode 100644 index 0000000..8dd399a --- /dev/null +++ b/docs/compatible_configs/flake8/tox.ini @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 diff --git a/docs/compatible_configs/isort/.editorconfig b/docs/compatible_configs/isort/.editorconfig new file mode 100644 index 0000000..edc849a --- /dev/null +++ b/docs/compatible_configs/isort/.editorconfig @@ -0,0 +1,2 @@ +[*.py] +profile = black diff --git a/docs/compatible_configs/isort/.isort.cfg b/docs/compatible_configs/isort/.isort.cfg new file mode 100644 index 0000000..f238bf7 --- /dev/null +++ b/docs/compatible_configs/isort/.isort.cfg @@ -0,0 +1,2 @@ +[settings] +profile = black diff --git a/docs/compatible_configs/isort/pyproject.toml b/docs/compatible_configs/isort/pyproject.toml new file mode 100644 index 0000000..cea9915 --- /dev/null +++ b/docs/compatible_configs/isort/pyproject.toml @@ -0,0 +1,2 @@ +[tool.isort] +profile = black diff --git a/docs/compatible_configs/isort/setup.cfg b/docs/compatible_configs/isort/setup.cfg new file mode 100644 index 0000000..c76db01 --- /dev/null +++ b/docs/compatible_configs/isort/setup.cfg @@ -0,0 +1,2 @@ +[isort] +profile = black diff --git a/docs/compatible_configs/pylint/pylintrc b/docs/compatible_configs/pylint/pylintrc new file mode 100644 index 0000000..7abddd2 --- /dev/null +++ b/docs/compatible_configs/pylint/pylintrc @@ -0,0 +1,5 @@ +[MESSAGES CONTROL] +disable = C0330, C0326 + +[format] +max-line-length = 88 diff --git a/docs/compatible_configs/pylint/pyproject.toml b/docs/compatible_configs/pylint/pyproject.toml new file mode 100644 index 0000000..49ad7a2 --- /dev/null +++ b/docs/compatible_configs/pylint/pyproject.toml @@ -0,0 +1,5 @@ +[tool.pylint.messages_control] +disable = "C0330, C0326" + +[tool.pylint.format] +max-line-length = "88" diff --git a/docs/compatible_configs/pylint/setup.cfg b/docs/compatible_configs/pylint/setup.cfg new file mode 100644 index 0000000..3ada245 --- /dev/null +++ b/docs/compatible_configs/pylint/setup.cfg @@ -0,0 +1,5 @@ +[pylint] +max-line-length = 88 + +[pylint.messages_control] +disable = C0330, C0326 -- 2.39.2