-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): handle empty Poetry dev-dependencies (#85)
Running pipelinit in a project with a pyproject.toml file without a poetry dev-dependencies keys would crash.
- Loading branch information
Showing
10 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../requirements-black-and-pyproject/expected/.github/workflows/pipelinit.python.format.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated with pipelinit 0.1.0 | ||
# https://pipelinit.com/ | ||
name: Format Python | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- run: pip install -r requirements.txt | ||
|
||
- run: python -m pip install pip isort | ||
|
||
- run: black . --check | ||
- run: isort . -c |
23 changes: 23 additions & 0 deletions
23
...on/requirements-black-and-pyproject/expected/.github/workflows/pipelinit.python.lint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated with pipelinit 0.1.0 | ||
# https://pipelinit.com/ | ||
name: Lint Python | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- run: pip install -r requirements.txt | ||
|
||
- run: python -m pip install pip flake8 | ||
|
||
# Adapts Flake8 to run with the Black formatter, using the '--ignore' flag to skip incompatibilities errors | ||
# Reference: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html?highlight=other%20tools#id1 | ||
- run: flake8 --ignore E203,E501,W503 . |
17 changes: 17 additions & 0 deletions
17
...on/requirements-black-and-pyproject/expected/.github/workflows/pipelinit.python.sast.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated with pipelinit 0.1.0 | ||
# https://pipelinit.com/ | ||
name: SAST | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
jobs: | ||
semgrep: | ||
name: Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: returntocorp/semgrep-action@v1 | ||
with: | ||
config: >- | ||
p/ci |
1 change: 1 addition & 0 deletions
1
cli/tests/fixtures/python/requirements-black-and-pyproject/project/.pipelinit.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
platforms = ["github"] |
1 change: 1 addition & 0 deletions
1
cli/tests/fixtures/python/requirements-black-and-pyproject/project/.python-version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.9 |
1 change: 1 addition & 0 deletions
1
cli/tests/fixtures/python/requirements-black-and-pyproject/project/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("Hello World") |
2 changes: 2 additions & 0 deletions
2
cli/tests/fixtures/python/requirements-black-and-pyproject/project/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.black] | ||
line-length = 120 |
1 change: 1 addition & 0 deletions
1
cli/tests/fixtures/python/requirements-black-and-pyproject/project/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
black==21.9b0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters