Skip to content

Commit

Permalink
0.0.56 - Error refactor (#13)
Browse files Browse the repository at this point in the history
* Update release webhook

* Refactor errors, add readthedocs config file and github actions

* black and fix rtd.yml

* Add master_doc to conf.py

* fix readthedocs config file

* fix readthedocs config file

* Add master_doc to conf.py

* Fix sphinx config file

* update requirements

* update requirements

* Attempt to fix styling issues

* Fix github actions

* Black file

* Fixed checks.has_permissions and checks._bot_has_permissions (#6)

* Fixed checks.has_permissions

* Bump pytest from 6.1.1 to 6.1.2

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@6.1.1...6.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump pytest-randomly from 3.4.1 to 3.5.0

Bumps [pytest-randomly](https://github.com/pytest-dev/pytest-randomly) from 3.4.1 to 3.5.0.
- [Release notes](https://github.com/pytest-dev/pytest-randomly/releases)
- [Changelog](https://github.com/pytest-dev/pytest-randomly/blob/master/HISTORY.rst)
- [Commits](pytest-dev/pytest-randomly@3.4.1...3.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update hikari requirement from ~=2.0.0.dev91 to ~=2.0.0.dev95

Updates the requirements on [hikari](https://github.com/hikari-py/hikari) to permit the latest version.
- [Release notes](https://github.com/hikari-py/hikari/releases)
- [Commits](hikari-py/hikari@2.0.0.dev91...2.0.0.dev95)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Added github templates, dependabot and cleanup

* Remove unused import and whitespace

* Bump pytest-testdox from 2.0.0 to 2.0.1

Bumps [pytest-testdox](https://github.com/renanivo/pytest-testdox) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/renanivo/pytest-testdox/releases)
- [Commits](renanivo/pytest-testdox@2.0.0...2.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Add deploy to actions

* Fix deploy.yml

* Update readme

* Update hikari requirement from ~=2.0.0.dev95 to ~=2.0.0.dev96

Updates the requirements on [hikari](https://github.com/hikari-py/hikari) to permit the latest version.
- [Release notes](https://github.com/hikari-py/hikari/releases)
- [Commits](hikari-py/hikari@2.0.0.dev95...2.0.0.dev96)

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog, version number and release webhook

* Add twine username and pass to deploy env

Co-authored-by: K.M Ahnaf Zamil <57180217+ahnaf-zamil@users.noreply.github.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: davfsa <davfsa@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Dec 4, 2020
1 parent 0cb30dd commit 3709d55
Show file tree
Hide file tree
Showing 95 changed files with 5,644 additions and 170 deletions.
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Bug report
about: Got a bug? Let us know!
title: ''
labels: bug
assignees: ''

---

### Steps to reproduce
<!--
Steps to reproduce the bug. This can also be a code snippet.
Make sure you have removed your bot token (if visible).
-->

1.
2.
3.
4.

### Expected Result
<!--
What should have happened if the bug wasn't there?
Make sure you have removed your bot token (if visible).
-->

### Actual Result
<!-- What happened exactly? If you have a traceback, please provide all of it. -->

### System info
<!-- Your system info. -->

### Further info
<!-- Any further info or images go here. -->

### Checklist
<!-- Make sure to tick all the following boxes by putting an `x` in between (like this `[x]`) -->
- [ ] I have made sure to remove ANY sensitive information (bot token, passwords,
credentials, personal details, etc).
- [ ] I have searched the issue tracker and have made sure it's not a duplicate.
If it is a follow up of another issue, I have specified it.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question
url: https://discord.gg/Jx4cNGG
about: Please ask questions in our Discord server.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Got a cool idea you would like implemented? Share it!
title: ''
labels: enhancement
assignees: ''

---

### Summary
<!-- Small summary of the feature -->

### Problem
<!-- What problem will this feature solve (if any)? -->

### Ideal implementation
<!-- How should this feature be implemented? -->

### Checklist
<!-- Make sure to tick all the following boxes by putting an `x` in between (like this `[x]`) -->
- [ ] I have searched the issue tracker and have made sure it's not a duplicate.
If it is a follow up of another issue, I have specified it.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: daily
assignees:
- tandemdude
reviewers:
- tandemdude
rebase-strategy: auto
target-branch: development
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Summary
<!-- Small summary of the merge request -->

### Checklist
<!-- Make sure to tick all the following boxes by putting an `x` in between (like this `[x]`) -->
- [ ] I have run `nox` and all the pipelines have passed.
- [ ] I have made unittests according to the code I have added/modified/deleted.

### Related issues
<!--
To mention an issue use `#issue-id` and to mention a merge request use `!merge-request-id`
To close/fix an issue use `Close #issue-id` or `Fix #issue-id` (depending on the merge request)
-->
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
run: |
pip install nox
nox -s test
- name: Run black
run: nox -s format
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
branches:
- "master"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Deploy to PyPi
env:
RELEASE_WEBHOOK: ${{ secrets.RELEASE_WEBHOOK }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
pip install -U requests setuptools twine wheel -r requirements.txt
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
python release_webhook.py
82 changes: 0 additions & 82 deletions .gitlab-ci.yml

This file was deleted.

Empty file removed .gitlab/.gitkeep
Empty file.
Empty file removed .gitlab/issue_templates/.gitkeep
Empty file.
22 changes: 22 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py


build:
image: latest

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
install:
- requirements: requirements.txt
- requirements: docs_requirements.txt

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Pull requests are welcome. For major changes, please open an issue first to disc
Please try to update tests as appropriate and ensure that documentation is updated if
you add any features accessible through the public API.

If you use this library and like it, feel free to sign up to GitLab and star the project,
If you use this library and like it, feel free to sign up to GitHub and star the project,
it is greatly appreciated and lets me know that I'm going in the right direction!

## Links
- **License:** [LGPLv3](https://choosealicense.com/licenses/lgpl-3.0/)
- **Repository:** [Gitlab](https://gitlab.com/tandemdude/lightbulb)
- **Documentation:** [GitLab Pages](https://tandemdude.gitlab.io/lightbulb/)
- **Repository:** [GitHub](https://github.com/tandemdude/hikari-lightbulb)
- **Documentation:** [ReadTheDocs](https://hikari-lightbulb.readthedocs.io/en/latest/)
1 change: 1 addition & 0 deletions docs/source/_static/css/badge_only.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 3709d55

Please sign in to comment.