-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Be more explicit about requirements-dev.txt * Pin docs requirements and add search * Pretty build-wheel.sh output * Fix typing buglet * Add dependabot config * Add linters and suggestions * Even prettier output * See if lint can get by without a token * Try with default actions token * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add mypy to linting * Generate GitHub releases Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a33139b
commit 5c17c0e
Showing
12 changed files
with
300 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "pip" | ||
directory: "/docs" | ||
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 |
---|---|---|
|
@@ -44,7 +44,9 @@ jobs: | |
export BASEPLAT=manylinux2014 | ||
fi | ||
echo "::group::Building builder" | ||
docker-compose -f builder/docker-compose.yml build --pull | ||
echo "::endgroup::Building builder" | ||
docker-compose -f builder/docker-compose.yml run manylinux build-wheel.sh | ||
env: | ||
WHICH_PYTHON: ${{ matrix.python }} | ||
|
@@ -69,7 +71,9 @@ jobs: | |
run: | | ||
set -euo pipefail | ||
echo "::group::Building builder" | ||
docker-compose -f builder/docker-compose.yml build --pull | ||
echo "::endgroup::Building builder" | ||
docker-compose -f builder/docker-compose.yml run manylinux /opt/python/cp36-cp36m/bin/python3 setup.py sdist | ||
- uses: actions/upload-artifact@v2 | ||
|
@@ -111,3 +115,22 @@ jobs: | |
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
|
||
- name: Generate changelog | ||
id: generate-changelog | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: heinrichreimer/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
onlyLastTag: true | ||
|
||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
with: | ||
body: ${{ steps.generate-changelog.outputs.changelog }} | ||
files: | | ||
dist/*.tar.gz | ||
dist/*.whl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,87 @@ | ||
on: | ||
pull_request: | ||
|
||
name: Lint | ||
|
||
jobs: | ||
shellcheck: | ||
name: shellcheck | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- name: shellcheck | ||
if: always() | ||
uses: reviewdog/action-shellcheck@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
exclude: "./.git/*" | ||
fail_on_error: true | ||
|
||
markdownlint: | ||
name: markdownlint | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- name: markdownlint | ||
uses: reviewdog/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
fail_on_error: true | ||
|
||
misspell: | ||
name: misspell | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- name: misspell | ||
if: always() | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
reporter: github-pr-review | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
locale: "US" | ||
|
||
yamllint: | ||
name: yamllint | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- name: yamllint | ||
uses: reviewdog/action-yamllint@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
|
||
pyflakes: | ||
name: pyflakes | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: pyflakes | ||
uses: reviewdog/action-pyflakes@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
|
||
mypy: | ||
name: mypy | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: tsuyoshicho/action-mypy@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review |
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,84 @@ | ||
on: | ||
pull_request: | ||
|
||
name: Suggestions | ||
|
||
jobs: | ||
shell: | ||
name: Shell suggestions | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- uses: actions/setup-go@v2 | ||
- run: echo "$HOME/go/bin" >> "$GITHUB_PATH" | ||
- run: GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt | ||
|
||
- name: install shellcheck | ||
run: | | ||
scversion="latest" | ||
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv | ||
sudo cp "shellcheck-${scversion}/shellcheck" /usr/local/bin/ | ||
rm -rf "shellcheck-${scversion}/shellcheck" | ||
- run: shellcheck -x -f diff $(shfmt -f .) | patch -p1 | ||
- run: shfmt -i 2 -ci -w . | ||
|
||
- name: suggester / shellcheck | ||
uses: reviewdog/action-suggester@v1 | ||
with: | ||
tool_name: shellcheck / shfmt | ||
|
||
markdown: | ||
name: Markdown suggestions | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- run: sudo npm install -g markdownlint-cli | ||
|
||
- run: markdownlint --fix --ignore site/_includes . || true | ||
|
||
- name: suggester / markdown | ||
uses: reviewdog/action-suggester@v1 | ||
with: | ||
tool_name: markdownlint-cli | ||
|
||
prettier: | ||
name: Prettier suggestions | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- run: sudo npm install -g prettier | ||
|
||
- run: prettier -u -w '**/*.yaml' '**/.*.yaml' '**/*.yml' '**/.*.yml' '**/*.json' '**/*.md' || true | ||
|
||
- name: suggester / prettier | ||
uses: reviewdog/action-suggester@v1 | ||
with: | ||
tool_name: prettier | ||
|
||
black: | ||
name: Black formatter | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
|
||
- name: Check files using the black formatter | ||
uses: rickstaa/action-black@v1 | ||
id: action_black | ||
with: | ||
black_args: "." | ||
|
||
- name: suggester / black | ||
uses: reviewdog/action-suggester@v1 | ||
with: | ||
tool_name: black |
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,2 @@ | ||
default: true | ||
MD013: false |
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,34 @@ | ||
yaml-files: | ||
- "*.yaml" | ||
- ".*.yaml" | ||
- "*.yml" | ||
- ".*.yml" | ||
|
||
rules: | ||
braces: enable | ||
brackets: enable | ||
colons: enable | ||
commas: enable | ||
comments: | ||
level: warning | ||
comments-indentation: | ||
level: warning | ||
document-end: disable | ||
document-start: disable | ||
empty-lines: enable | ||
empty-values: disable | ||
hyphens: enable | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: whatever | ||
key-duplicates: enable | ||
key-ordering: disable | ||
line-length: disable | ||
new-line-at-end-of-file: enable | ||
new-lines: enable | ||
octal-values: disable | ||
quoted-strings: disable | ||
trailing-spaces: enable | ||
truthy: | ||
level: warning | ||
ignore: .github/workflows |
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,2 +1,5 @@ | ||
Sphinx==3.5.4 | ||
importlib-metadata==4.0.0 | ||
myst-parser==0.13.6 | ||
readthedocs-sphinx-search==0.1.0 | ||
sphinx-rtd-theme==0.5.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
Oops, something went wrong.