Skip to content

Commit ac698bc

Browse files
committed
fix pre-commit and improve bdd-features naming
1 parent d74c1ab commit ac698bc

File tree

5 files changed

+6
-22
lines changed

5 files changed

+6
-22
lines changed

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,6 @@ repos:
2020
name: lint
2121
stages: [commit, push]
2222
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
4224
types: [python]
4325
pass_filenames: false

{{cookiecutter.project_slug}}/docs/gen_pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"Background:",
3131
)
3232
ignore_lines = ("@", "#")
33-
features_dir = docs_parent_dir / "features"
33+
features_dir = docs_parent_dir / "bdd-features"
3434
for feature_path in features_dir.glob("**/*.feature"):
3535
with open(feature_path, "r") as f:
3636
relative_dir = feature_path.parent.relative_to(features_dir)

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ testpaths = [
9797
python_files = ["*_test.py"]
9898
python_functions = ["test_*"]
9999
render_collapsed = true
100-
bdd_features_base_dir = "features"
100+
bdd_features_base_dir = "bdd-features"
101101

102102
[tool.coverage.report]
103103
exclude_lines = [
@@ -116,7 +116,9 @@ install = "poetry install --only main"
116116
install-dev = "poetry install"
117117
run = "python -m {{cookiecutter.package_name}}.{{cookiecutter.module_name}}"
118118
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"]
120122
lint-ruff = "ruff check **/*.py --fix"
121123
lint-black = "black **/*.py"
122124
lint = ["lint-black", "lint-ruff"]

0 commit comments

Comments
 (0)