-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2022 update * CI/CD * underscores * keywords * newline * updated testing badge and schedule * updated tests * updated tests name * docker test name
- Loading branch information
Showing
43 changed files
with
4,560 additions
and
369 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,2 +1,2 @@ | ||
github: juftin | ||
custom: [ "https://paypal.me/juftin", "https://venmo.com/juftin" ] | ||
custom: [ "https://paypal.me/juftin", "https://venmo.com/juftin" ] |
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 @@ | ||
module.exports = { | ||
extends: "plugin:markdown/recommended" | ||
}; |
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 @@ | ||
extends: default | ||
rules: | ||
comments-indentation: disable | ||
document-start: disable | ||
brackets: | ||
max-spaces-inside: 1 | ||
braces: | ||
max-spaces-inside: 1 | ||
colons: | ||
max-spaces-after: -1 | ||
hyphens: | ||
max-spaces-after: 3 | ||
indentation: | ||
indent-sequences: consistent | ||
line-length: | ||
level: warning | ||
allow-non-breakable-inline-mappings: true | ||
max: 120 | ||
truthy: | ||
check-keys: false | ||
ignore: | | ||
tests/models/cassettes/ |
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,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "eslint", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.+):\\sline\\s(\\d+),\\scol\\s(\\d+),\\s(Error|Warning|Info)\\s-\\s(.+)\\s\\((.+)\\)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"severity": 4, | ||
"message": 5, | ||
"code": 6 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "flake8", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.*?):(\\d+):(\\d+): (.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "markdownlint", | ||
"pattern": [ | ||
{ | ||
"regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"code": 4, | ||
"message": 5 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "mypy", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.+):(\\d+):\\s(error|warning|note):\\s(.+)$", | ||
"file": 1, | ||
"line": 2, | ||
"severity": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "python", | ||
"pattern": [ | ||
{ | ||
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$", | ||
"file": 1, | ||
"line": 2 | ||
}, | ||
{ | ||
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$", | ||
"message": 2 | ||
} | ||
] | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "yamllint", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.*\\.ya?ml)$", | ||
"file": 1 | ||
}, | ||
{ | ||
"regexp": "^\\s{2}(\\d+):(\\d+)\\s+(error|warning)\\s+(.*?)\\s+\\((.*)\\)$", | ||
"line": 1, | ||
"column": 2, | ||
"severity": 3, | ||
"message": 4, | ||
"code": 5, | ||
"loop": true | ||
} | ||
] | ||
} | ||
] | ||
} |
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,24 @@ | ||
name-template: "v$RESOLVED_VERSION 🌈" | ||
tag-template: "v$RESOLVED_VERSION" | ||
categories: | ||
- title: "🚀 Features" | ||
labels: | ||
- "feature" | ||
- "enhancement" | ||
- title: "🐛 Bug Fixes" | ||
labels: | ||
- "fix" | ||
- "bugfix" | ||
- "bug" | ||
- title: "🧰 Maintenance" | ||
label: "chore" | ||
- title: "🧪 Tests" | ||
label: "tests" | ||
- title: "📜 Documentation" | ||
label: "documentation" | ||
change-template: "- $TITLE @$AUTHOR (#$NUMBER)" | ||
change-title-escapes: '\<*_&' | ||
template: | | ||
## Changes | ||
$CHANGES |
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,23 @@ | ||
name: Docker CI/CD | ||
|
||
on: | ||
pull_request: | ||
branches: [ "**" ] | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Github Workspace | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Docker Image Building and Publishing | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: false | ||
tags: juftin/camply:latest |
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,68 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Github Workspace | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python Environment 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Setup Node Dependency | ||
uses: actions/setup-node@v2 | ||
- name: Install Python Dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install tox | ||
- name: Install Node Dependencies | ||
run: | | ||
npm i -g eslint eslint-plugin-markdown | ||
npm install eslint-plugin-markdown@latest --save-dev | ||
- name: Lint with Flake8 | ||
id: flake8 | ||
continue-on-error: true | ||
run: | | ||
echo "::add-matcher::.github/matchers/flake8.json" | ||
tox -e flake8 | ||
echo "::remove-matcher owner=flake8::" | ||
- name: Lint with YAML-Lint | ||
id: yamllint | ||
continue-on-error: true | ||
run: | | ||
echo "::add-matcher::.github/matchers/yamllint.json" | ||
tox -e yamllint | ||
echo "::remove-matcher owner=yamllint::" | ||
- name: Lint with MyPy | ||
id: mypy | ||
continue-on-error: true | ||
run: | | ||
echo "::add-matcher::.github/matchers/mypy.json" | ||
tox -e mypy | ||
echo "::remove-matcher owner=mypy::" | ||
- name: Lint with ESLint | ||
id: eslint | ||
continue-on-error: true | ||
run: | | ||
echo "::add-matcher::.github/matchers/eslint.json" | ||
eslint . --config "${{ github.workspace }}/.github/config/.eslintrc.js" | ||
echo "::remove-matcher owner=eslint::" | ||
- name: (Don't actualy) Raise Errors For Linting Failures | ||
if: | | ||
steps.flake8.outcome != 'success' || | ||
steps.yamllint.outcome != 'success' || | ||
steps.mypy.outcome != 'success' || | ||
steps.eslint.outcome != 'success' | ||
run: | | ||
echo "Flake8: ${{ steps.flake8.outcome }}" | ||
echo "YAML-Lint: ${{ steps.yamllint.outcome }}" | ||
echo "MyPy: ${{ steps.mypy.outcome }}" | ||
echo "ESLint: ${{ steps.eslint.outcome }}" | ||
echo "I Should be Raising an Error" |
Oops, something went wrong.