Skip to content

Commit 3f63686

Browse files
authored
Move sources to src dir (#384)
1 parent 9c9bd27 commit 3f63686

File tree

9 files changed

+4
-3
lines changed

9 files changed

+4
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
rev: v2.3.0
3232
hooks:
3333
- id: reorder-python-imports
34-
args: ['--application-directories=.:pytest_html:testing', --py3-plus]
34+
args: ['--application-directories=.:src:testing', --py3-plus]
3535
- repo: https://github.com/asottile/pyupgrade
3636
rev: v2.4.4
3737
hooks:
@@ -43,7 +43,7 @@ repos:
4343
- id: eslint
4444
additional_dependencies:
4545
46-
args: [pytest_html]
46+
args: [src]
4747
- repo: local
4848
hooks:
4949
- id: rst

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
author="Dave Hunt",
99
author_email="[email protected]",
1010
url="https://github.com/pytest-dev/pytest-html",
11+
package_dir={"": "src"},
1112
packages=["pytest_html"],
1213
package_data={"pytest_html": ["resources/*"]},
1314
entry_points={"pytest11": ["html = pytest_html.plugin"]},
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

testing/js_test_report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<script src="https://code.jquery.com/qunit/qunit-2.0.1.js"></script>
1313
<script src="https://raw.githubusercontent.com/alex-seville/blanket/master/dist/qunit/blanket.min.js"></script>
1414
<script src="test.js"></script>
15-
<script src="../pytest_html/resources/main.js" data-cover></script>
15+
<script src="../src/pytest_html/resources/main.js" data-cover></script>
1616
<div id="qunit-fixture">
1717
<table id="results-table">
1818
<thead id="results-table-head">

0 commit comments

Comments
 (0)