Skip to content

Commit 70bc559

Browse files
committed
replaced part of the pyproject into specific files
1 parent 3462f06 commit 70bc559

4 files changed

Lines changed: 45 additions & 32 deletions

File tree

.coveragerc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .coveragerc
2+
[run]
3+
source = PyOptik
4+
branch = True
5+
relative_files = True
6+
parallel = True
7+
omit =
8+
**/__init__.py
9+
PyOptik/_version.py
10+
PyOptik/directories.py
11+
PyOptik/**/__main__.py
12+
13+
[report]
14+
skip_covered = True
15+
show_missing = True
16+
precision = 2
17+
18+
[html]
19+
directory = htmlcov
20+
21+
[xml]
22+
output = coverage.xml

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
!README.rst
1818
!notebook.ipynb
1919
!CMakeLists.txt
20+
!pytest.ini
21+
!.coveragerc
2022

2123
# But ignore docs/build inside docs and code
2224
docs/build/

pyproject.toml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -63,35 +63,3 @@ dev = [
6363
"flake8 ==7.1.1",
6464
]
6565

66-
67-
[tool.pytest.ini_options]
68-
python_functions = "test*"
69-
minversion = "6.0"
70-
xfail_strict = true
71-
log_cli_level = "INFO"
72-
testpaths = [
73-
"tests/test_sellmeier.py",
74-
"tests/test_tabulated.py",
75-
"tests/test_usual_materials.py",
76-
"tests/test_utils.py",
77-
"tests/test_group_properties.py",
78-
]
79-
addopts = [
80-
'-v',
81-
'-rA',
82-
'-rw',
83-
'-Werror',
84-
'--cov=PyOptik',
85-
'--cov-report=html',
86-
"--cov-report=term"
87-
]
88-
89-
[tool.coverage.run]
90-
source = ['PyOptik']
91-
omit = [
92-
'*/__init__.py',
93-
'*/_version.py',
94-
'*/directories.py',
95-
]
96-
branch = true
97-
relative_files = true

pytest.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# pytest.ini
2+
[pytest]
3+
minversion = 6.0
4+
xfail_strict = true
5+
log_cli_level = INFO
6+
7+
addopts =
8+
-vv
9+
-rA
10+
-rw
11+
--cov
12+
--cov-report=html
13+
--cov-report=term
14+
--cov-config=.coveragerc
15+
--capture=tee-sys
16+
17+
testpaths = tests
18+
19+
python_files = *.py
20+
python_classes = Test_*
21+
python_functions = test_*

0 commit comments

Comments
 (0)