Move sources to `src` dir (#384)

This commit is contained in:
Jan Kowalleck 2020-11-27 16:14:03 +01:00 committed by GitHub
parent 9c9bd27724
commit 3f6368693f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ repos:
rev: v2.3.0
hooks:
- id: reorder-python-imports
args: ['--application-directories=.:pytest_html:testing', --py3-plus]
args: ['--application-directories=.:src:testing', --py3-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v2.4.4
hooks:
@ -43,7 +43,7 @@ repos:
- id: eslint
additional_dependencies:
- eslint@7.13.0
args: [pytest_html]
args: [src]
- repo: local
hooks:
- id: rst

View File

@ -8,6 +8,7 @@ setup(
author="Dave Hunt",
author_email="dhunt@mozilla.com",
url="https://github.com/pytest-dev/pytest-html",
package_dir={"": "src"},
packages=["pytest_html"],
package_data={"pytest_html": ["resources/*"]},
entry_points={"pytest11": ["html = pytest_html.plugin"]},

View File

@ -12,7 +12,7 @@
<script src="https://code.jquery.com/qunit/qunit-2.0.1.js"></script>
<script src="https://raw.githubusercontent.com/alex-seville/blanket/master/dist/qunit/blanket.min.js"></script>
<script src="test.js"></script>
<script src="../pytest_html/resources/main.js" data-cover></script>
<script src="../src/pytest_html/resources/main.js" data-cover></script>
<div id="qunit-fixture">
<table id="results-table">
<thead id="results-table-head">