Skip to content

Commit cba3bb7

Browse files
author
Gal Ben David
committed
hardcoded rust dependencies versions
1 parent 5ec5538 commit cba3bb7

File tree

5 files changed

+20
-19
lines changed

5 files changed

+20
-19
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyrepscan"
3-
version = "0.7.2"
3+
version = "0.7.3"
44
authors = ["Gal Ben David <[email protected]>"]
55
edition = "2018"
66
description = "A Git Repository Secrets Scanner written in Rust"
@@ -29,14 +29,14 @@ name = "pyrepscan"
2929
crate-type = ["cdylib"]
3030

3131
[dependencies]
32-
git2 = "*"
33-
regex = "*"
34-
rayon = "*"
35-
chrono = "*"
36-
parking_lot = "*"
32+
git2 = "0.13"
33+
regex = "1"
34+
rayon = "1.5"
35+
chrono = "0.4"
36+
parking_lot = "0.11"
3737

3838
[dependencies.pyo3]
39-
version = "0.12"
39+
version = "0.12.4"
4040
features = ["extension-module"]
4141

4242
[profile.release]

benchmarks/pyrepscan_bench.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pyrepscan
22

3+
34
grs = pyrepscan.GitRepositoryScanner()
45
grs.add_content_rule(
56
name='AWS Manager ID',

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ strip = true
1414

1515
[tool.poetry]
1616
name = "pyrepscan"
17-
version = "0.7.2"
17+
version = "0.7.3"
1818
authors = ["Gal Ben David <[email protected]>"]
1919
description = "A Git Repository Secrets Scanner written in Rust"
2020
readme = "README.md"

pyrepscan/pyrepscan.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import typing
33

44
class GitRepositoryScanner:
55
def __init__(
6-
self,
6+
self,
77
) -> None: ...
88

99
def add_content_rule(
@@ -46,7 +46,7 @@ class GitRepositoryScanner:
4646

4747
class RulesManager:
4848
def __init__(
49-
self,
49+
self,
5050
) -> None: ...
5151

5252
def add_content_rule(

tests/test_rules_manager.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def test_scan_file_two(
466466
{
467467
'rule_name': 'rule_one',
468468
'match_text': 'some_text',
469-
}
469+
},
470470
],
471471
)
472472

@@ -489,7 +489,7 @@ def test_scan_file_two(
489489
{
490490
'rule_name': 'rule_two',
491491
'match_text': 'some',
492-
}
492+
},
493493
],
494494
)
495495

@@ -521,7 +521,7 @@ def test_scan_file_three(
521521
{
522522
'rule_name': 'rule_one',
523523
'match_text': 'some_other',
524-
}
524+
},
525525
],
526526
)
527527

@@ -560,7 +560,7 @@ def test_scan_file_four(
560560
{
561561
'rule_name': 'rule_one',
562562
'match_text': 'some_diff',
563-
}
563+
},
564564
],
565565
)
566566

@@ -598,7 +598,7 @@ def test_scan_file_five(
598598
{
599599
'rule_name': 'rule_one',
600600
'match_text': 'some_diff',
601-
}
601+
},
602602
],
603603
)
604604

@@ -631,7 +631,7 @@ def test_scan_file_six(
631631
{
632632
'rule_name': 'rule_one',
633633
'match_text': 'some_other',
634-
}
634+
},
635635
],
636636
)
637637
self.assertEqual(
@@ -643,7 +643,7 @@ def test_scan_file_six(
643643
{
644644
'rule_name': 'rule_one',
645645
'match_text': 'some_diff',
646-
}
646+
},
647647
],
648648
)
649649

@@ -683,7 +683,7 @@ def test_scan_file_seven(
683683
{
684684
'rule_name': 'rule_one',
685685
'match_text': '/path/to/dev.txt',
686-
}
686+
},
687687
],
688688
)
689689

@@ -704,7 +704,7 @@ def test_scan_file_seven(
704704
{
705705
'rule_name': 'rule_two',
706706
'match_text': '/path/to/dev.txt',
707-
}
707+
},
708708
],
709709
)
710710

0 commit comments

Comments
 (0)