Skip to content

Commit

Permalink
🔧 add coverage config to auto exclude irrelevant lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Dec 13, 2024
1 parent 5f25d2d commit 1fbedfa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,20 @@ source =
src/niquests
*/niquests
*\niquests

[report]
omit =
src/niquests/help.py

exclude_lines =
except ModuleNotFoundError:
except ImportError:
pass
import
raise NotImplementedError
.* # Platform-specific.*
.*:.* # Python \d.*
.* # Abstract
.* # Defensive:
if (?:typing.)?TYPE_CHECKING:
^\s*?\.\.\.\s*$
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-e .[socks]
pytest>=2.8.0,<=7.4.4
pytest-cov
coverage>=7.2.7,<7.7
pytest-httpbin>=2,<3
pytest-asyncio>=0.21.1,<1.0
httpbin==0.10.2
Expand Down

0 comments on commit 1fbedfa

Please sign in to comment.