def clean_files(self, files: list[str], pats: list[str]) -> list[str]:
        """Remove names matching `pats` from `files`, a list of file names."""
        good = []
        for f in files:
            for pat in pats:
                if fnmatch.fnmatch(f, pat):
                    break
            else:
                good.append(f)
        return good
Remove names matching `pats` from `files`, a list of file names.
tests/test_api.py