title: can we define pytest hooks outside conftest.py?
body: <p>i did some research in the sites below but i haven't still figured out if we can define pytest hooks (e.g. pytest_runtest_makereport) other than in the conftest.py file.
  basically, what i am trying to figure out is if i avoid duplicating conftest.py files by defining a hook inside a base class, for example, so other projects (or classes) consuming this base class can inherit these hooks.</p>
  
  <p>thanks a lot.</p>
  
  <p>references i've used:</p>
  
  <ul>
  <li><a href="http://pytest.org/latest/plugins.html" rel="noreferrer">http://pytest.org/latest/plugins.html</a></li>
  <li><a href="http://pytest.org/latest/example/simple.html" rel="noreferrer">http://pytest.org/latest/example/simple.html</a></li>
  <li>several other stack overflow pages talking about hooks</li>
  </ul>