Skip to content

Commit 1846467

Browse files
authored
Let pre-commit.ci handle lint checking. (#118)
* Let pre-commit.ci handle lint checking. * Fix flake8 issue in docs conf.
1 parent e16ff9c commit 1846467

File tree

3 files changed

+4
-30
lines changed

3 files changed

+4
-30
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,7 @@ name: Python package
33
on: [push]
44

55
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- uses: actions/checkout@v2
11-
12-
- name: Setup Python
13-
uses: actions/setup-python@v2
14-
with:
15-
python-version: 3.9
16-
17-
- name: Install tox and any other packages
18-
run: pip install tox
19-
20-
- name: Check for lint
21-
run: tox -e lint
22-
236
build:
24-
needs: lint
257
runs-on: ${{ matrix.os }}
268
strategy:
279
matrix:

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os
1717

1818
sys.path.append(os.path.abspath(".."))
19-
from tap import __version__
19+
from tap import __version__ # noqa
2020

2121
# If extensions (or modules to document with autodoc) are in another directory,
2222
# add these directories to sys.path here. If the directory is relative to the
@@ -191,11 +191,11 @@
191191

192192
latex_elements = {
193193
# The paper size ('letterpaper' or 'a4paper').
194-
#'papersize': 'letterpaper',
194+
# 'papersize': 'letterpaper',
195195
# The font size ('10pt', '11pt' or '12pt').
196-
#'pointsize': '10pt',
196+
# 'pointsize': '10pt',
197197
# Additional stuff for the LaTeX preamble.
198-
#'preamble': '',
198+
# 'preamble': '',
199199
}
200200

201201
# Grouping the document tree into LaTeX files. List of tuples

tox.ini

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ commands = python tap/tests/run.py
1515
[testenv:module]
1616
commands = python -m tap
1717

18-
[testenv:lint]
19-
deps =
20-
black
21-
flake8
22-
commands =
23-
flake8 tap setup.py
24-
black --check tap setup.py
25-
2618
[testenv:integration]
2719
deps =
2820
pytest

0 commit comments

Comments
 (0)