Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add skip configuration to assert_used #633

Merged
merged 3 commits into from
Nov 30, 2020

Commits on Nov 25, 2020

  1. Add skip configuration to assert_used

    Adding this configuration allows the user to skip the assert_used
    against some files. This is useful because asserts are very common
    in test files when using pytest.
    
    Specifying this configuration:
    
    ```
    assert_used:
      skips: ['*_test.py', 'test_*.py']
    ```
    
    would skip all asserts against a test file.
    
    Resolves PyCQA#346
    wilbertom committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    9bbbe58 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d76f506 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f40bfb View commit details
    Browse the repository at this point in the history