Skip to content

Commit ca20981

Browse files
committed
Add flake8 GitHub Actions Workflow.
1 parent ea27a71 commit ca20981

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/workflows/flake8.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 tox
30+
31+
- name: "Run Flake8"
32+
run: "python -m tox -e lint -- --format github"

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ deps =
7676
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
7777
git+https://github.com/domdfcoding/flake8-quotes.git
7878
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
79-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
79+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
80+
git+https://github.com/domdfcoding/flake8-github-actions
8081
pygments>=2.7.1
81-
commands = python3 -m flake8_rst_docstrings_sphinx domdf_python_tools tests --allow-toolbox
82+
commands = python3 -m flake8_rst_docstrings_sphinx domdf_python_tools tests --allow-toolbox {posargs}
8283

8384
[testenv:mypy]
8485
basepython = python3.6

0 commit comments

Comments
 (0)