Skip to content

Commit

Permalink
final cleanup before adding classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkflame72 committed Nov 11, 2020
1 parent c07c589 commit d3ff077
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 57 deletions.
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATES/bug_report.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATES/feature-request.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,45 @@ repos:
hooks:
- id: black
name: black
entry: black
entry: poetry run black
language: system
types: [python]
require_serial: true
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
entry: poetry run check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: check-toml
entry: poetry run check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: check-yaml
entry: poetry run check-yaml
language: system
types: [yaml]
- id: end-of-file-fixer
name: Fix End of Files
entry: end-of-file-fixer
entry: poetry run end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: flake8
name: flake8
entry: flake8
entry: poetry run flake8
language: system
types: [python]
require_serial: true
- id: reorder-python-imports
name: Reorder python imports
entry: reorder-python-imports
entry: poetry run reorder-python-imports
language: system
types: [python]
args: [--application-directories=src]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
entry: poetry run trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# html_static_path = ["_static"]
3 changes: 2 additions & 1 deletion mcsrvstats/exceptions/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""All exceptions for asyncpixel."""
from typing import Optional


class ApiError(Exception):
"""Raised when a error occurs on the api side."""

def __init__(self, error: str, source: str = "unknown source") -> None:
def __init__(self, error: str, source: Optional[str] = "unknown source") -> None:
"""Error raised when api is not succesful.
Args:
Expand Down

0 comments on commit d3ff077

Please sign in to comment.