From: Oliver Newman <15459200+orn688@users.noreply.github.com> Date: Wed, 27 Jan 2021 17:36:21 +0000 (-0500) Subject: Update example exclude to match only files in root (#1861) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/71117e730c4f62458b30af820f51890487b458e4?ds=sidebyside;hp=71117e730c4f62458b30af820f51890487b458e4 Update example exclude to match only files in root (#1861) * Update example exclude to match only files in root The `exclude` section of the example `pyproject.toml` file didn't work as expected. It claimed to exclude matched files only in the project root, but it actually excluded matched files at any directory level within the project. We can address this by prepending `^/` to the regex to ensure that it only matches files in the project root. See https://github.com/psf/black/issues/1473#issuecomment-740008873 for explanation. * Mention excluding directories as well ---