Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

senzing-factory/build-resources#69 add linting #18

Merged
merged 3 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/documentation_request.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/add-dependabot-request-to-project.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/add-labels-standardized.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'add labels standardized'
name: add labels standardized

on:
issues:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/add-to-project-g2-python-dependabot.yaml
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_G2_PYTHON }}"
25 changes: 12 additions & 13 deletions .github/workflows/add-to-project-g2-python.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# Based on
# - https://github.com/srggrs/assign-one-project-github-action

name: Auto Assign issue to project
name: add to project community

on:
issues:
types:
- reopened
- opened
env:
GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
- reopened

jobs:
assign_one_project:
add-to-project:
name: add issue to project
runs-on: ubuntu-latest

steps:
- name: Assign issues to project
uses: Senzing/github-action-add-issue-to-project@main
with:
project: 'https://github.com/orgs/Senzing/projects/8'
column_name: 'Backlog'
- 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_G2_PYTHON }}"
column_name: "Backlog"
26 changes: 0 additions & 26 deletions .github/workflows/add-to-project2.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/lint-workflows.yaml
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
12 changes: 12 additions & 0 deletions .github/workflows/move-pr-to-done-dependabot.yaml
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
15 changes: 10 additions & 5 deletions .github/workflows/pylint.yaml
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@v4
- name: Set up Python ${{ matrix.python-version }}

- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
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')
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ disable=
missing-function-docstring,
missing-module-docstring,
multiple-statements,
no-self-use,
no-member,
redefined-outer-name,
too-many-branches,
trailing-newlines,
Expand Down
13 changes: 0 additions & 13 deletions PULL_REQUEST_TEMPLATE.md

This file was deleted.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,3 @@ SSN. UPINs were assigned to physicians as well as certain non-physician practiti

*Note: The Downloadable Database does not contain SSNs or EINs. Therefore, verification of specific individuals or entities through the use of the SSN or EIN must be done via the
Online Searchable Database.*