-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
senzing-factory/build-resources#69 add linting
- Loading branch information
Showing
12 changed files
with
90 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'add labels standardized' | ||
name: add labels standardized | ||
|
||
on: | ||
issues: | ||
|
23 changes: 23 additions & 0 deletions
23
.github/workflows/add-to-project-community-dependabot.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 @@ | ||
name: add to project community dependabot | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
CREATOR: ${{ github.event.pull_request.user.login }} | ||
GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} | ||
|
||
jobs: | ||
add-to-project-dependabot: | ||
name: add issue to Senzing Community project | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: assign issue to project | ||
env: | ||
BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }} | ||
if: ${{ env.BOOL == 'true' }} | ||
uses: senzing-factory/github-action-add-issue-to-project@v1 | ||
with: | ||
project: "https://github.com/orgs/Senzing/projects/${{ vars.SENZING_PROJECT_COMMUNITY }}" |
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,21 @@ | ||
name: add to project community | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- reopened | ||
|
||
jobs: | ||
add-to-project: | ||
name: add issue to project | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: assign issue to project | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} | ||
uses: senzing-factory/github-action-add-issue-to-project@v1 | ||
with: | ||
project: "https://github.com/orgs/Senzing/projects/${{ vars.SENZING_PROJECT_COMMUNITY }}" | ||
column_name: "Backlog" |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
name: lint workflows | ||
|
||
on: | ||
push: | ||
branches-ignore: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
pull-requests: read | ||
statuses: write | ||
|
||
jobs: | ||
lint-workflows: | ||
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v1 |
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,12 @@ | ||
name: move pr to done dependabot | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
types: [closed] | ||
|
||
jobs: | ||
move-pr-to-done-dependabot: | ||
secrets: | ||
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} | ||
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done.yaml@v1 |
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 |
---|---|---|
@@ -1,23 +1,28 @@ | ||
name: Pylint | ||
name: pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
pylint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
- name: set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
|
||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Analysing the code with pylint | ||
- name: analysing the code with pylint | ||
run: | | ||
# shellcheck disable=SC2046 | ||
pylint $(git ls-files '*.py') |
This file was deleted.
Oops, something went wrong.