Skip to content

Commit 85d2b3b

Browse files
authored
Merge pull request #288 from goverfl0w/unstable
[v4] Library Rewrite
2 parents 0b43e5f + 8a4eebb commit 85d2b3b

File tree

291 files changed

+42126
-1560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+42126
-1560
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/custom---miscellaneous.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ labels: question
66
assignees: ''
77

88
---
9-
10-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
## About this pull request
1+
## About this Pull Request
22

3-
Description of the pr
4-
5-
## Changes
6-
7-
What changes were made?
3+
This pull request does (insert here), which effectively solves issues (X) and (Y).
84

95
## Checklist
106

11-
- [ ] I've run the `pre_push.py` script to format and lint code.
12-
- [ ] I've checked this pull request runs on `Python 3.6.X`.
13-
- [ ] This fixes something in [Issues](https://github.com/goverfl0w/discord-interactions/issues).
14-
- Issue:
7+
- [ ] I've run the `pre_push.py` script to format and lint the change(s) made.
8+
- [ ] I've checked to make sure this pull request runs on Python `3.6.X`.
9+
- [ ] This fixes/solves something from the project's [Issues](https://github.com/goverfl0w/discord-interactions/issues).
10+
- Issue (if referenceable):
1511
- [ ] This adds something new.
16-
- [ ] There is/are breaking change(s).
17-
- [ ] (If required) Relevant documentation has been updated/added.
18-
- [ ] This is not a code change. (README, docs, etc.)
12+
- [ ] This is not a code change.
13+
- [ ] (If required) Relevant documentation has been updated/added.
14+
- [ ] There is/are (a) breaking change(s).

.github/banner_transparent.png

-1 Bytes
Loading

.github/discordpyslashlogo.png

-1 Bytes
Loading

.github/workflows/ci.yml

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
1+
name: pre-commit
12
jobs:
2-
lint-multi-os:
3-
name: Lint ${{ matrix.os }}
3+
main:
44
runs-on: ${{ matrix.os }}
55
steps:
6-
- uses: actions/checkout@v2
7-
- uses: actions/setup-python@v1
8-
with:
9-
python-version: 3.x
10-
- uses: actions/cache@v1
11-
with:
12-
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }}
13-
path: ~/.cache/pip
14-
restore-keys: |
15-
v0-${{ runner.os }}-pip-lint-
16-
v0-${{ runner.os }}-pip-
17-
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install .[lint]
21-
- name: Run black
22-
run: black --check --verbose .
23-
- name: Run flake8
24-
run: flake8 --exclude docs --statistics
25-
- name: Run isort
26-
run: isort -cv .
27-
- name: Run sphinx
28-
run: sphinx-build -W --keep-going docs/ /tmp/foo
6+
- uses: actions/checkout@v2
7+
- uses: actions/setup-python@v2
8+
with:
9+
python-version: ${{ matrix.python-version }}
10+
- uses: pre-commit/action@v2.0.3
11+
- name: Set Python version
12+
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
13+
- uses: actions/cache@v1
14+
with:
15+
path: ~/.cache/pre-commit
16+
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2917
strategy:
3018
matrix:
19+
python-version: ["3.9"]
3120
os: [macOS-latest, ubuntu-latest, windows-latest]
32-
name: CI
3321
on: [pull_request, push]
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
name: Upload Python Package
5-
6-
on:
7-
release:
8-
types: [created]
9-
1+
name: Publish release
102
jobs:
113
deploy:
12-
4+
name: Deploy
135
runs-on: ubuntu-latest
14-
156
steps:
167
- uses: actions/checkout@v2
178
- name: Set up Python
@@ -29,3 +20,6 @@ jobs:
2920
run: |
3021
python setup.py sdist bdist_wheel
3122
twine upload dist/*
23+
on:
24+
release:
25+
types: [created]

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
# env/venv/gh-based
12
*.egg
23
*.egg-info/
34
*.eggs/
45
*.pyc
56
.cache/
67
_build/
78
build/
8-
dist/
9+
dist/
10+
.env
11+
.venv
12+
.vscode

.pre-commit-config.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: requirements-txt-fixer
6+
name: Requirements
7+
types: [file]
8+
- id: debug-statements
9+
name: Debugging
10+
language: python
11+
types: [file, python]
12+
- id: trailing-whitespace
13+
name: Trailing Whitespace
14+
language: python
15+
types: [file]
16+
- id: end-of-file-fixer
17+
name: EOF Newlines
18+
language: python
19+
types: [file]
20+
- id: check-yaml
21+
name: YAML Structure
22+
language: python
23+
- id: check-toml
24+
name: TOML Structure
25+
- id: check-merge-conflict
26+
name: Merge Conflicts
27+
- repo: https://github.com/psf/black
28+
rev: 21.8b0
29+
hooks:
30+
- id: black
31+
name: Black Formatting
32+
language: python
33+
types: [file, python]
34+
args: [--line-length=100]
35+
- repo: https://gitlab.com/pycqa/flake8
36+
rev: 3.9.2
37+
hooks:
38+
- id: flake8
39+
name: flake8 Formatting
40+
language: python
41+
types: [file, python]
42+
args: [--max-line-length=100, --ignore=E203 E501 E402 W503 W504]
43+
- repo: https://github.com/pycqa/isort
44+
rev: 5.9.3
45+
hooks:
46+
- id: isort
47+
name: isort Formatting
48+
language: python
49+
types: [file, python]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

0 commit comments

Comments
 (0)