This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from myoung34/golang
Refactor to go
- Loading branch information
Showing
1,055 changed files
with
616,068 additions
and
4,242 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
generalwhitelist: | ||
# musl 1.2.2 resolves -> A buffer overflow (CVE-2020-28928) in wcsnrtombs has been fixed with the function essentially rewritten | ||
CVE-2020-28928: musl | ||
CVE-2021-30139: apk-tools | ||
CVE-2021-36159: apk-tools | ||
generalwhitelist: {} |
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
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
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
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,40 +1,21 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
- 'refs/tags/*' | ||
pull_request: | ||
branches: [ main ] | ||
|
||
name: Test | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.7', '3.8', '3.9', '3.10' ] | ||
go-version: [1.19.x] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v1 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Get short Python version | ||
id: full-python-version | ||
shell: bash | ||
run: echo ::set-output name=version::$(python -c "import sys; print(f'py{sys.version_info.major}{sys.version_info.minor}')") | ||
- name: install pre-reqs | ||
run: sudo apt-get update && sudo apt-get install libbluetooth-dev && pip install poetry pre-commit | ||
- name: lint | ||
run: pre-commit run --all-files | ||
- name: Configure poetry | ||
run: poetry config virtualenvs.in-project true | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Run tox | ||
run: poetry run tox -e ${{ steps.full-python-version.outputs.version }} | ||
- name: coveralls | ||
run: poetry run coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
go-version: ${{ matrix.go-version }} | ||
- uses: actions/checkout@v3 | ||
- run: go test -coverprofile coverage.out -v ./... |
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ __pycache__ | |
.coverage | ||
*.sw[o-p] | ||
config.ini | ||
coverage.out | ||
.idea | ||
*.db |
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 @@ | ||
linters: | ||
enable: | ||
- golint |
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,18 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.4.0 | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
exclude: ^vendor/ | ||
- id: trailing-whitespace | ||
exclude: ^vendor/ | ||
- id: check-case-conflict | ||
exclude: ^vendor/ | ||
- id: check-merge-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-ast | ||
- id: flake8 | ||
args: ['--config=setup.cfg'] | ||
- id: fix-encoding-pragma | ||
exclude: ^vendor/ | ||
- id: detect-private-key | ||
- repo: https://github.com/detailyang/pre-commit-shell | ||
rev: 1.0.2 | ||
- repo: https://github.com/hadolint/hadolint | ||
rev: v2.10.0 | ||
hooks: | ||
- id: shell-lint | ||
- repo: https://github.com/stratasan/hadolint-pre-commit | ||
rev: cdefcb096e520a6daa9552b1d4636f5f1e1729cd | ||
hooks: | ||
- id: hadolint | ||
- id: hadolint |
Oops, something went wrong.