Skip to content

Commit 1ed7045

Browse files
committed
replaced part of the pyproject into specific files
1 parent 1208fd3 commit 1ed7045

4 files changed

Lines changed: 58 additions & 24 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 = FiberFusing
4+
branch = True
5+
relative_files = True
6+
parallel = True
7+
omit =
8+
**/__init__.py
9+
FiberFusing/_version.py
10+
FiberFusing/directories.py
11+
FiberFusing/**/__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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
# Except ...
66
!.github
7+
!.gitmodules
8+
!extern
79
!FiberFusing
810
!development
911
!docs
@@ -16,8 +18,21 @@
1618
!pyproject.toml
1719
!README.rst
1820
!notebook.ipynb
21+
!CMakeLists.txt
22+
!pytest.ini
23+
!.coveragerc
1924

2025
# But ignore docs/build inside docs and code
2126
docs/build/
2227
docs/source/gallery/
28+
29+
# Compiled files in the project
2330
*__pycache__*
31+
*.DS_Store*
32+
*.so*
33+
*.a*
34+
*.cmake
35+
*CMakeFiles*
36+
*Makefile*
37+
38+
# Package specifics

pyproject.toml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,3 @@ documentation = [
6262
"sphinx-rtd-theme >=2,<4",
6363
"pydata-sphinx-theme ~=0.15"
6464
]
65-
66-
[tool.pytest.ini_options]
67-
minversion = "6.0"
68-
xfail_strict = true
69-
log_cli_level = "INFO"
70-
testpaths = ["tests"]
71-
addopts = [
72-
'-v',
73-
'-rA',
74-
'-rw',
75-
'--cov=FiberFusing',
76-
'--cov-report=html',
77-
"--cov-report=term"
78-
]
79-
80-
[tool.coverage.run]
81-
source = ['FiberFusing']
82-
omit = [
83-
'*\__init__.py',
84-
'*/_version.py',
85-
'*/directories.py',
86-
]
87-
branch = true
88-
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)