diff --git a/styles/config/vocabularies/GitHub/accept.txt b/styles/config/vocabularies/GitHub/accept.txt new file mode 100644 index 0000000..f606d5e --- /dev/null +++ b/styles/config/vocabularies/GitHub/accept.txt @@ -0,0 +1 @@ +repo diff --git a/templatise_test/actions_test_fixtures/convert_file_devcontainer_json.yaml b/templatise_test/actions_test_fixtures/convert_file_devcontainer_json.yaml index 7b0c7a8..f34402b 100644 --- a/templatise_test/actions_test_fixtures/convert_file_devcontainer_json.yaml +++ b/templatise_test/actions_test_fixtures/convert_file_devcontainer_json.yaml @@ -8,7 +8,6 @@ output: | { "name": "sentinel", "image": "mcr.microsoft.com/devcontainers/base:ubuntu", - // Features to add to the dev container. More info: https://containers.dev/features. "features": { "ghcr.io/devcontainers-contrib/features/poetry:2": {}, @@ -17,13 +16,10 @@ output: | "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/devcontainers/features/python:1": {} }, - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "poetry install", - + "postCreateCommand": "poetry install && vale sync", // Configure tool-specific properties. "customizations": { "vscode": { @@ -31,7 +27,8 @@ output: | "python.analysis.typeCheckingMode": "basic", "python.pythonPath": "${workspaceFolder}/.venv/bin/python", "python.testing.pytestArgs": [ - "--no-cov", "sentinel_test" + "--no-cov", + "sentinel_test" ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true @@ -49,7 +46,6 @@ output: | ] } }, - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. "remoteUser": "vscode" } diff --git a/templatise_test/actions_test_fixtures/convert_pyproject_toml.yaml b/templatise_test/actions_test_fixtures/convert_pyproject_toml.yaml index 027107a..4014234 100644 --- a/templatise_test/actions_test_fixtures/convert_pyproject_toml.yaml +++ b/templatise_test/actions_test_fixtures/convert_pyproject_toml.yaml @@ -10,7 +10,7 @@ output: | requires = ["poetry-core"] [tool.fawltydeps] - ignore_unused = ["coveralls", "pytest-cov", "pytest-xdist"] + ignore_unused = ["coveralls", "pytest-cov", "pytest-xdist", "vale"] [tool.isort] profile = "black" @@ -42,6 +42,7 @@ output: | pytest = ">=7.2.0,<9.0.0" pytest-cov = "^4.0.0" pytest-golden = "^0.2.2" + vale = "^3.0.7.0" [tool.poetry.group.test.dependencies.pytest-xdist] extras = ["psutil"]