- id: python-check-blanket-noqa name: check blanket noqa description: 'Enforce that `noqa` annotations always occur with specific codes. Sample annotations: `# noqa: F401`, `# noqa: F401,W203`' entry: '(?i)# noqa(?!: )' language: pygrep types: [python] - id: python-check-blanket-type-ignore name: check blanket type ignore description: 'Enforce that `# type: ignore` annotations always occur with specific codes. Sample annotations: `# type: ignore[attr-defined]`, `# type: ignore[attr-defined, name-defined]`' entry: '# type:? *ignore(?!\[|\w)' language: pygrep types: [python] - id: python-check-mock-methods name: check for not-real mock methods description: >- Prevent common mistakes of `assert mck.not_called()`, `assert mck.called_once_with(...)` and `mck.assert_called`. language: pygrep entry: > (?x)( assert .*\.( not_called| called_ )| # ''.join(rf'(?