File tree Expand file tree Collapse file tree 5 files changed +6
-22
lines changed
{{cookiecutter.project_slug}} Expand file tree Collapse file tree 5 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -20,24 +20,6 @@ repos:
20
20
name : lint
21
21
stages : [commit, push]
22
22
language : system
23
- entry : poe lint
24
- types : [python]
25
- pass_filenames : false
26
- - repo : local
27
- hooks :
28
- - id : pytest
29
- name : pytest
30
- stages : [commit, push]
31
- language : system
32
- entry : poe test
33
- types : [python]
34
- pass_filenames : false
35
- - repo : local
36
- hooks :
37
- - id : api-documentation
38
- name : api-documentation
39
- stages : [push]
40
- language : system
41
- entry : poe doc-html
23
+ entry : poetry run -c lint
42
24
types : [python]
43
25
pass_filenames : false
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 30
30
"Background:" ,
31
31
)
32
32
ignore_lines = ("@" , "#" )
33
- features_dir = docs_parent_dir / "features"
33
+ features_dir = docs_parent_dir / "bdd- features"
34
34
for feature_path in features_dir .glob ("**/*.feature" ):
35
35
with open (feature_path , "r" ) as f :
36
36
relative_dir = feature_path .parent .relative_to (features_dir )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ testpaths = [
97
97
python_files = [" *_test.py" ]
98
98
python_functions = [" test_*" ]
99
99
render_collapsed = true
100
- bdd_features_base_dir = " features"
100
+ bdd_features_base_dir = " bdd- features"
101
101
102
102
[tool .coverage .report ]
103
103
exclude_lines = [
@@ -116,7 +116,9 @@ install = "poetry install --only main"
116
116
install-dev = " poetry install"
117
117
run = " python -m {{cookiecutter.package_name}}.{{cookiecutter.module_name}}"
118
118
test = " pytest"
119
- pre-commit = " pre-commit run --all-files"
119
+ install-pre-commit = " pre-commit install"
120
+ run-pre-commit = " pre-commit run --all-files"
121
+ pre-commit = [" install-pre-commit" , " run-pre-commit" ]
120
122
lint-ruff = " ruff check **/*.py --fix"
121
123
lint-black = " black **/*.py"
122
124
lint = [" lint-black" , " lint-ruff" ]
You can’t perform that action at this time.
0 commit comments