Skip to content

Instantly share code, notes, and snippets.

@christophmeissner
Last active July 26, 2019 07:14
Show Gist options
  • Save christophmeissner/605a98f9962e87edad27c8e132c3f92e to your computer and use it in GitHub Desktop.
Save christophmeissner/605a98f9962e87edad27c8e132c3f92e to your computer and use it in GitHub Desktop.
PyCharm Notes

Some Notes on PyCharm

Scope Pattern for "No Tests"

Sometimes, you want to search for the name of a method only within the code, not in the test. When the tests are spread all over the project, that is quite hard to do, since you can not simply exclude the test suit from the search scope.

Use the exclusion pattern !(file:*test*||file:*/*test*//*) in a PyCharm scope pattern, to exclude all files, that are having...

  • ... the term test in it (!file:*test*), or
  • ... the term *test* in any directory name of the file path (!file:*/*test*//*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment