-
Notifications
You must be signed in to change notification settings - Fork 5
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 #33 from tefra/fix-32
Fix google app flow
- Loading branch information
Showing
65 changed files
with
969 additions
and
927 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,39 @@ | ||
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
. | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_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,45 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
tests: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- {name: Python 3.6, python: 3.6, os: ubuntu} | ||
- {name: Python 3.7, python: 3.7, os: ubuntu} | ||
- {name: Python 3.8, python: 3.8, os: ubuntu} | ||
- {name: Python 3.9, python: 3.9, os: ubuntu} | ||
- {name: Python 3.10, python: "3.10", os: ubuntu} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools tox codecov | ||
- name: Test | ||
run: | | ||
tox -e py | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
pre-commit: | ||
name: Pre-commit Hooks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/action@v2.0.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 |
---|---|---|
@@ -1,45 +1,50 @@ | ||
repos: | ||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v1.9.4 | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.32.1 | ||
hooks: | ||
- id: seed-isort-config | ||
args: ['--exclude=docs/*'] | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 4.3.21 | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.1.0 | ||
hooks: | ||
- id: isort | ||
- id: reorder-python-imports | ||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
args: ['--line-length=79'] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [ | ||
flake8-bugbear, | ||
flake8-annotations, | ||
flake8-comprehensions, | ||
] | ||
args: ["--suppress-none-returning"] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: debug-statements | ||
- id: pretty-format-json | ||
args: ['--autofix', '--indent=4'] | ||
- id: fix-encoding-pragma | ||
args: ['--remove'] | ||
- repo: git@github.com:humitos/mirrors-autoflake.git | ||
rev: v1.1 | ||
hooks: | ||
- id: autoflake | ||
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable'] | ||
- repo: git@github.com:humitos/mirrors-docformatter.git | ||
rev: v1.0 | ||
hooks: | ||
- id: docformatter | ||
args: ['--in-place', '--pre-summary-newline'] | ||
args: ["--in-place", "--pre-summary-newline"] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.761 | ||
rev: v0.950 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [tokenize-rt] | ||
additional_dependencies: [tokenize-rt, types-setuptools, types-requests, types-tabulate] | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v1.6.0 | ||
rev: v1.20.1 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
args: ["--max-py-version=3.10"] | ||
- repo: https://github.com/PyCQA/doc8 | ||
rev: 0.11.1 | ||
hooks: | ||
- id: doc8 |
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
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
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,6 +1,7 @@ | ||
add lastfm | ||
---------- | ||
|
||
This information was generated by running ``pytuber add lastfm --help`` from the command line. | ||
This information was generated by running ``pytuber add lastfm --help`` | ||
from the command line. | ||
|
||
.. program-output:: pytuber add lastfm --help |
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,6 +1,7 @@ | ||
clean | ||
----- | ||
|
||
This information was generated by running ``pytuber clean --help`` from the command line. | ||
This information was generated by running ``pytuber clean --help`` from | ||
the command line. | ||
|
||
.. program-output:: pytuber clean --help |
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,6 +1,7 @@ | ||
fetch lastfm | ||
------------ | ||
|
||
This information was generated by running ``pytuber fetch lastfm --help`` from the command line. | ||
This information was generated by running ``pytuber fetch lastfm --help`` | ||
from the command line. | ||
|
||
.. program-output:: pytuber fetch lastfm --help |
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,6 +1,7 @@ | ||
fetch youtube | ||
------------- | ||
|
||
This information was generated by running ``pytuber fetch youtube --help`` from the command line. | ||
This information was generated by running ``pytuber fetch youtube --help`` | ||
from the command line. | ||
|
||
.. program-output:: pytuber fetch youtube --help |
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,6 +1,7 @@ | ||
Overview | ||
-------- | ||
|
||
This information was generated by running ``pytuber --help`` from the command line. | ||
This information was generated by running ``pytuber --help`` from the | ||
command line. | ||
|
||
.. program-output:: pytuber --help |
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,6 +1,7 @@ | ||
push youtube | ||
------------ | ||
|
||
This information was generated by running ``pytuber push youtube --help`` from the command line. | ||
This information was generated by running ``pytuber push youtube --help`` | ||
from the command line. | ||
|
||
.. program-output:: pytuber push youtube --help |
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,6 +1,7 @@ | ||
remove | ||
------ | ||
|
||
This information was generated by running ``pytuber remove --help`` from the command line. | ||
This information was generated by running ``pytuber remove --help`` | ||
from the command line. | ||
|
||
.. program-output:: pytuber remove --help |
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,6 +1,7 @@ | ||
setup | ||
----- | ||
|
||
This information was generated by running ``pytuber setup --help`` from the command line. | ||
This information was generated by running ``pytuber setup --help`` | ||
from the command line. | ||
|
||
.. program-output:: pytuber setup --help |
Oops, something went wrong.