From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Wed, 27 Jul 2022 01:32:31 +0000 (-0400) Subject: Add isort to linting toolchain X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/e0a780a5056f1039edcf12c7a44198be902afbbc?ds=sidebyside;hp=e9e756da7a68890fe36b79f711f93630758fd99d Add isort to linting toolchain Co-authored-by: Shivansh-007 --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6dedc4..3a9c0ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,11 @@ repos: files: '(CHANGES\.md|the_basics\.md)$' additional_dependencies: *version_check_dependencies + - repo: https://github.com/pycqa/isort + rev: 5.10.1 + hooks: + - id: isort + - repo: https://github.com/pycqa/flake8 rev: 4.0.1 hooks: diff --git a/pyproject.toml b/pyproject.toml index 6df037c..3676507 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,13 +22,21 @@ extend-exclude = ''' # this off. preview = true -# Build system information below. +# Build system information and other project-specific configuration below. # NOTE: You don't need this in your own Black configuration. [build-system] requires = ["setuptools>=45.0", "setuptools_scm[toml]>=6.3.1", "wheel"] build-backend = "setuptools.build_meta" +[tool.isort] +atomic = true +profile = "black" +line_length = 88 +skip_gitignore = true +skip_glob = ["src/blib2to3", "tests/data", "profiling"] +known_first_party = ["black", "blib2to3", "blackd", "_black_version"] + [tool.pytest.ini_options] # Option below requires `tests/optional.py` addopts = "--strict-config --strict-markers"