madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://"]
  insteadOf = madduck:

Present a more user-friendly error if .gitignore is invalid (#2414)
authorNipunn Koorapati <>
Fri, 20 Aug 2021 23:54:53 +0000 (16:54 -0700)
committerGitHub <>
Fri, 20 Aug 2021 23:54:53 +0000 (19:54 -0400)
Present a more user-friendly error if .gitignore is invalid (#2414)

Fixes #2359.

This commit now makes Black exit with an user-friendly error message if a
.gitignore file couldn't be parsed -- a massive improvement over an opaque
12 files changed:
tests/data/invalid_gitignore_tests/.gitignore [new file with mode: 0644]
tests/data/invalid_gitignore_tests/ [new file with mode: 0644]
tests/data/invalid_gitignore_tests/pyproject.toml [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/ [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/a/.gitignore [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/a/ [new file with mode: 0644]
tests/data/invalid_nested_gitignore_tests/pyproject.toml [new file with mode: 0644]