-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
330 additions
and
15 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @vint21h @Artesius |
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,29 @@ | ||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
## Expected Behavior | ||
<!--- Tell what should happen --> | ||
|
||
## Current Behavior | ||
<!--- Tell what happens instead of the expected behavior --> | ||
|
||
## Possible Solution | ||
<!--- Not obligatory, but suggest a fix/reason for the bug, --> | ||
|
||
## Steps to Reproduce | ||
<!--- Provide a link to a live example, or an unambiguous set of steps to --> | ||
<!--- reproduce this bug. Include code to reproduce, if relevant --> | ||
1. | ||
2. | ||
3. | ||
|
||
## Context (Environment) | ||
<!--- How has this issue affected you? What are you trying to accomplish? --> | ||
<!--- Providing context helps come up with a solution that is most useful in the real world --> | ||
|
||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
## Detailed Description | ||
<!--- Provide a detailed description of the change or addition you are proposing --> | ||
|
||
## Possible Implementation | ||
<!--- Not obligatory, but suggest an idea for implementing addition or change --> |
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 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
|
||
## Related Issue | ||
<!--- If suggesting a new feature or change, please discuss it in an issue first --> | ||
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> | ||
<!--- Please link to the issue here: --> | ||
|
||
## Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- If it fixes an open issue, please link to the issue here. --> | ||
|
||
## How Has This Been Tested? | ||
<!--- Please describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- see how your change affects other areas of the code, etc. --> |
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,14 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
So, because this is not a thing that can produce security problems in the project using it, | ||
security policy is very simple: supported only the last major or minor branch. | ||
|
||
| Version | Supported | | ||
|-----------| ------------------ | | ||
| 0.1.x | :white_check_mark: | | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you found something that in your opinion may produce any security problem, please create a [new issue](https://github.com/Anadea/pre-commit-config-shellcheck/issues/new/). |
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 @@ | ||
blank_issues_enabled: 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,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-name: "all" | ||
dependency-type: "direct" | ||
- 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "build" | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
tags: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
NAME: "pre-commit-config-shellcheck" | ||
DEFAULT_PYTHON_VERSION: "3.10" | ||
jobs: | ||
check-requirements: | ||
uses: "./.github/workflows/check-requirements.yml" | ||
check: | ||
name: "${{ matrix.toxenv }}" | ||
uses: "./.github/workflows/check.yml" | ||
test: | ||
name: "${{ matrix.python-version }}" | ||
uses: "./.github/workflows/test.yml" | ||
if: success() | ||
needs: ["check"] | ||
coveralls: | ||
uses: "./.github/workflows/coveralls.yml" | ||
if: success() | ||
needs: ["test", "check"] |
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,36 @@ | ||
name: "check-requirements" | ||
on: | ||
schedule: | ||
- cron: "0 3 * * *" | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
DEFAULT_PYTHON_VERSION: "3.10" | ||
jobs: | ||
check-requirements: | ||
name: "check-requirements" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Git clone" | ||
id: "git-clone" | ||
uses: "actions/checkout@v3.0.2" | ||
- name: "Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}" | ||
id: "set-up-python" | ||
uses: "actions/setup-python@v4.1.0" | ||
with: | ||
python-version: "${{ env.DEFAULT_PYTHON_VERSION }}" | ||
- name: "Pip cache" | ||
id: "pip-cache" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: "~/.cache/pip" | ||
key: "${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}" | ||
restore-keys: | | ||
"${{ runner.os }}-pip-" | ||
- name: "Install requirements" | ||
id: "install-requirements" | ||
run: "make install" | ||
- name: "Check outdated requirements" | ||
id: "check-outdated-requirements" | ||
continue-on-error: true | ||
run: "pip-outdated" |
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,47 @@ | ||
name: "check" | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
NAME: "pre-commit-config-shellcheck" | ||
DEFAULT_PYTHON_VERSION: "3.10" | ||
jobs: | ||
check: | ||
name: "${{ matrix.toxenv }}" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
toxenv: ["check", "check-build"] | ||
steps: | ||
- name: "Git clone" | ||
id: "git-clone" | ||
uses: "actions/checkout@v3.0.2" | ||
- name: "Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}" | ||
id: "set-up-python" | ||
uses: "actions/setup-python@v4.1.0" | ||
with: | ||
python-version: "${{ env.DEFAULT_PYTHON_VERSION }}" | ||
- name: "Pip cache" | ||
id: "pip-cache" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: "~/.cache/pip" | ||
key: "${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('setup.cfg') }}" | ||
restore-keys: | | ||
"${{ runner.os }}-pip-${{ matrix.toxenv }}-" | ||
"${{ runner.os }}-pip-" | ||
- name: "Pre-commit cache" | ||
id: "pre-commit-cache" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: "~/.cache/pre-commit" | ||
key: "${{ runner.os }}-pre-commit-${{ matrix.toxenv }}-${{ hashFiles('.pre-commit-config.yaml') }}" | ||
restore-keys: | | ||
"${{ runner.os }}-pre-commit-${{ matrix.toxenv }}-" | ||
"${{ runner.os }}-pre-commit-" | ||
- name: "Install requirements" | ||
id: "install-requirements" | ||
run: "make install" | ||
- name: "Run ${{ matrix.toxenv }}" | ||
id: "run" | ||
run: "tox -e ${{ matrix.toxenv }}" |
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,42 @@ | ||
name: "coveralls" | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
NAME: "pre-commit-config-shellcheck" | ||
DEFAULT_PYTHON_VERSION: "3.10" | ||
jobs: | ||
coveralls: | ||
name: "coveralls" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Git clone" | ||
id: "git-clone" | ||
uses: "actions/checkout@v3.0.2" | ||
- name: "Set up Python ${{ env.DEFAULT_PYTHON_VERSION }}" | ||
id: "set-up-python" | ||
uses: "actions/setup-python@v4.1.0" | ||
with: | ||
python-version: "${{ env.DEFAULT_PYTHON_VERSION }}" | ||
- name: "Pip cache" | ||
id: "pip-cache" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: "~/.cache/pip" | ||
key: "${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}" | ||
restore-keys: | | ||
"${{ runner.os }}-pip-" | ||
- name: "Temporarily save coverage statistics" | ||
id: "temporarily-save-coverage-statistics" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: ".coverage" | ||
key: ".coverage-${{ github.run_id }}-${{ github.run_number }}" | ||
- name: "Install requirements" | ||
id: "install-requirements" | ||
run: "make install" | ||
- name: "Upload coverage report to Coveralls" | ||
id: "upload-coverage-report-to-coveralls" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
run: "coveralls --service=github" |
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,45 @@ | ||
name: "test" | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
NAME: "pre-commit-config-shellcheck" | ||
jobs: | ||
test: | ||
name: "${{ matrix.python-version }}" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- name: "Git clone" | ||
id: "git-clone" | ||
uses: "actions/checkout@v3.0.2" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
id: "set-up-python" | ||
uses: "actions/setup-python@v4.1.0" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Pip cache" | ||
id: "pip-cache" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: "~/.cache/pip" | ||
key: "${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}" | ||
restore-keys: | | ||
"${{ runner.os }}-pip-${{ matrix.python-version }}-" | ||
"${{ runner.os }}-pip-" | ||
- name: "Temporarily save coverage statistics" | ||
id: "temporarily-save-coverage-statistics" | ||
uses: "actions/cache@v3.0.5" | ||
with: | ||
path: ".coverage" | ||
key: ".coverage-${{ github.run_id }}-${{ github.run_number }}" | ||
- name: "Install requirements" | ||
id: "install-requirements" | ||
run: "make install" | ||
- name: "Run tests" | ||
id: "run-tests" | ||
env: | ||
PLATFORM: "${{ matrix.platform }}" | ||
run: "make tox" |
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
Oops, something went wrong.