Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Feb 23, 2021
2 parents 54685d8 + 381b7fb commit 9656a0f
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
code-quality: tests/*
documentation: docs/*
6 changes: 3 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ tag-template: "$RESOLVED_VERSION"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
sort-direction: ascending
categories:
- title: ":boom: Breaking Change :boom:"
labels:
- "breaking-change"
- title: ":zap: Enhancments :zap:"
labels:
- "enhancement"
Expand All @@ -14,9 +17,6 @@ categories:
- "fix"
- "bugfix"
- "bug"
- title: ":boom: Breaking Change :boom:"
labels:
- "breaking-change"
template: |
[![Downloads for this release](https://img.shields.io/github/downloads/moralmunky/Home-Assistant-Mail-And-Packages/$RESOLVED_VERSION/total.svg)](https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/releases/$RESOLVED_VERSION)
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
pull_request:

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
12 changes: 12 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Check mypy"
on:
pull_request:

jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: jpetrucciani/mypy-check@master
with:
path: "custom_components"
2 changes: 0 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Pytest

on:
push:
branches: [0.3.0]
pull_request:
branches: [0.3.0]
schedule:
- cron: "0 7 1-28/7 * *"

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/relase-drafter.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.'
stale-pr-message: 'This PR has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-stale: 10
days-before-close: 5
days-before-pr-close: -1
days-before-pr-stale: 14
exempt-pr-labels: 'awaiting-approval,work-in-progress'
6 changes: 3 additions & 3 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r requirements.txt
black
isort
pytest
pytest-cov
pytest-homeassistant-custom-component
# From mainfest.json
imageio
python-resize-image
9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[mypy]
python_version = 3.8
show_error_codes = true
ignore_errors = true
follow_imports = silent
ignore_missing_imports = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true

0 comments on commit 9656a0f

Please sign in to comment.