Skip to content

Commit

Permalink
Exclude tools from codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
gpotter2 committed Mar 11, 2023
1 parent 689ddbc commit ab1c215
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ version = { attr="scapy.VERSION" }
concurrency = [ "thread", "multiprocessing" ]
source = [ "scapy" ]
omit = [
# Scapy specific paths
"scapy/tools/UTscapy.py",
# Scapy tools
"scapy/tools/",
# Scapy external modules
"scapy/libs/six.py",
"scapy/libs/winpcapy.py",
Expand Down
2 changes: 1 addition & 1 deletion scapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _version():

VERSION = __version__ = _version()

_tmp = re.search(r"[0-9.]+", VERSION)
_tmp = re.search(r"([0-9]|\.[0-9])+", VERSION)
VERSION_MAIN = _tmp.group() if _tmp is not None else VERSION

if __name__ == "__main__":
Expand Down

0 comments on commit ab1c215

Please sign in to comment.