Skip to content

Commit a425f7b

Browse files
committed
Add project with only nps
1 parent d256011 commit a425f7b

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-3
lines changed

.github/test_projects/only-ni-python-styleguide/README.md

Whitespace-only changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[project]
2+
name = "only-ni-python-styleguide"
3+
version = "0.1.0"
4+
description = "Tests actions/analyze-project with a project that does not have mypy or pyright dependencies"
5+
authors = [
6+
{name = "Joel Dixon",email = "[email protected]"}
7+
]
8+
readme = "README.md"
9+
requires-python = ">=3.9,<4.0"
10+
dynamic = ["dependencies"]
11+
12+
[tool.poetry]
13+
packages = [{include = "test_project", from = "src"}]
14+
15+
[tool.poetry.group.lint.dependencies]
16+
ni-python-styleguide = ">=0.4.1"
17+
18+
[build-system]
19+
requires = ["poetry-core>=2.0.0,<3.0.0"]
20+
build-backend = "poetry.core.masonry.api"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Docstring required."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Module docstring."""

.github/test_projects/pyright-errors/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "mypy-errors"
2+
name = "pyright-errors"
33
version = "0.1.0"
4-
description = "Tests actions/analyze-project with a project that has mypy errors"
4+
description = "Tests actions/analyze-project with a project that has pyright errors"
55
authors = [
66
{name = "Joel Dixon",email = "[email protected]"}
77
]

.github/workflows/test_actions.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ jobs:
228228
python-version: ${{ matrix.python-version }}
229229
- name: Set up Poetry
230230
uses: ./setup-poetry
231-
- name: Analyze Python Project
231+
- name: Analyze minimal valid project
232232
uses: ./analyze-project
233233
with:
234234
project-directory: ${{ github.workspace }}/.github/test_projects/minimal
@@ -262,6 +262,11 @@ jobs:
262262
uses: ./.github/actions/verify_expected_failure
263263
with:
264264
step-outcome: ${{ steps.analyze-pyright-errors.outcome }}
265+
- name: Analyze only-ni-python-styleguide project
266+
uses: ./analyze-project
267+
continue-on-error: true
268+
with:
269+
project-directory: ${{ github.workspace }}/.github/test_projects/only-ni-python-styleguide
265270

266271
# This job is intended to combine the test results so we don't have to list
267272
# each matrix combination in the required status check settings. There are a

0 commit comments

Comments
 (0)