Skip to content

Commit b37f332

Browse files
committed
Fix type hints and add workflow for self.
1 parent 693d38f commit b37f332

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

.github/workflows/flake8.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: Flake8
4+
5+
on:
6+
push:
7+
pull_request:
8+
branches: ["master"]
9+
10+
jobs:
11+
Run:
12+
name: "Flake8"
13+
runs-on: "ubuntu-18.04"
14+
15+
steps:
16+
- name: Checkout 🛎️
17+
uses: "actions/checkout@v2"
18+
19+
- name: Setup Python 🐍
20+
uses: "actions/setup-python@v2"
21+
with:
22+
python-version: "3.8"
23+
24+
- name: Install dependencies 🔧
25+
run: |
26+
python -VV
27+
python -m site
28+
python -m pip install --upgrade pip setuptools wheel
29+
python -m pip install .
30+
31+
- name: "Run Flake8"
32+
run: "python -m flake8_github_action flake8_github_action"
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

flake8_github_action/flake8_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939

4040
# 3rd party
4141
import click
42-
import flake8.main.application
43-
from flake8.formatting.base import BaseFormatter
44-
from flake8_json_reporter.reporters import DefaultJSON
42+
import flake8.main.application # type: ignore
43+
from flake8.formatting.base import BaseFormatter # type: ignore
44+
from flake8_json_reporter.reporters import DefaultJSON # type: ignore
4545

4646
__all__ = ["Application", "JsonFormatter"]
4747

0 commit comments

Comments
 (0)