File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ lint = [
67
67
test = [
68
68
' pytest' ,
69
69
' pytest-cov' ,
70
+ ' pytest-pythonhashseed' ,
70
71
' pytest-ruff' ,
71
72
' ruff==0.3.0' , # pin for reproducible results
72
73
]
@@ -80,17 +81,21 @@ Homepage = 'https://github.com/mr-mixas/Nested-Diff.py'
80
81
Repository = ' https://github.com/mr-mixas/Nested-Diff.py.git'
81
82
82
83
[tool .pytest .ini_options ]
83
- addopts = """
84
- --cov=nested_diff \
85
- --cov-fail-under=99 \
86
- --cov-report term-missing \
87
- --no-cov-on-fail \
88
- --ruff \
89
- --ruff-format \
90
- --verbosity=2 \
91
- """
84
+ addopts = [
85
+ ' --cov=nested_diff' ,
86
+ ' --cov-fail-under=99' ,
87
+ ' --cov-report' , ' term-missing' ,
88
+ ' --no-cov-on-fail' ,
89
+ ' --doctest-modules' ,
90
+ ' --doctest-glob=*.md' ,
91
+ ' --pythonhashseed=1' ,
92
+ ' --ruff' ,
93
+ ' --ruff-format' ,
94
+ ' --verbosity=2' ,
95
+ ]
96
+
92
97
doctest_optionflags = ' NORMALIZE_WHITESPACE'
93
- testpaths = ' nested_diff tests'
98
+ testpaths = ' nested_diff tests *.md '
94
99
95
100
[tool .ruff ]
96
101
extend-exclude = [
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def format_test(**kwargs):
15
15
}},""" .format (** kwargs )
16
16
17
17
18
- def generate_tests (source_dir = sys . argv [ 1 ] ):
18
+ def generate_tests (source_dir ):
19
19
tests = []
20
20
for file_name in sorted (os .listdir (source_dir )):
21
21
with open (os .path .join (source_dir , file_name )) as f :
@@ -66,4 +66,4 @@ def get_tests():
66
66
67
67
68
68
if __name__ == '__main__' :
69
- generate_tests ()
69
+ generate_tests (sys . argv [ 1 ] )
Original file line number Diff line number Diff line change @@ -10,21 +10,14 @@ extras =
10
10
cli
11
11
test
12
12
13
- setenv =
14
- PYTHONHASHSEED = 1
15
-
16
13
[testenv:extended]
17
14
commands =
18
- pytest --doctest-modules --flake8
19
- python -m doctest HOWTO.md README.md
15
+ pytest --flake8
20
16
21
17
extras =
22
18
{[testenv:essential]extras}
23
19
lint
24
20
25
- setenv =
26
- PYTHONHASHSEED = 1
27
-
28
21
# pyproject.toml not support yet
29
22
[darglint]
30
23
docstring_style =google
You can’t perform that action at this time.
0 commit comments