Skip to content

Commit c2c3045

Browse files
committed
fix linters
1 parent 4eab472 commit c2c3045

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,12 @@ docs = "mkdocs build" # run this to generate local documentation
6868
[tool.pytest.ini_options]
6969
addopts = "--ignore='{{ cookiecutter.__project_slug }}'"
7070

71+
[tool.flake8]
72+
ignore = ["W503"]
73+
max-line-length = 88
74+
75+
[tool.pydocstyle]
76+
convention = "google"
77+
7178
[tool.bandit]
72-
# section must exist
79+
exclude_dirs = ["tests"]

tests/test_template.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
def sanity_check_project(proj_path):
88
"""Sanity-check a generated project (linters, tests, doc generation)."""
9-
subprocess.check_call("poetry install --with docs", cwd=proj_path, shell=True)
10-
subprocess.check_call("poetry run poe lint --all-files", cwd=proj_path, shell=True)
11-
subprocess.check_call("poetry run poe test", cwd=proj_path, shell=True)
12-
subprocess.check_call("poetry run poe docs", cwd=proj_path, shell=True)
9+
subprocess.check_call("poetry install --with docs".split(), cwd=proj_path)
10+
subprocess.check_call("poetry run poe lint --all-files".split(), cwd=proj_path)
11+
subprocess.check_call("poetry run poe test".split(), cwd=proj_path)
12+
subprocess.check_call("poetry run poe docs".split(), cwd=proj_path)
1313

1414

1515
@pytest.fixture

0 commit comments

Comments
 (0)