Skip to content

Commit

Permalink
Let pre-commit.ci handle lint checking. (#118)
Browse files Browse the repository at this point in the history
* Let pre-commit.ci handle lint checking.

* Fix flake8 issue in docs conf.
  • Loading branch information
mblayman committed Dec 29, 2021
1 parent e16ff9c commit 1846467
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/tests.yml
Expand Up @@ -3,25 +3,7 @@ name: Python package
on: [push]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install tox and any other packages
run: pip install tox

- name: Check for lint
run: tox -e lint

build:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
8 changes: 4 additions & 4 deletions docs/conf.py
Expand Up @@ -16,7 +16,7 @@
import os

sys.path.append(os.path.abspath(".."))
from tap import __version__
from tap import __version__ # noqa

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

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# 'preamble': '',
}

# Grouping the document tree into LaTeX files. List of tuples
Expand Down
8 changes: 0 additions & 8 deletions tox.ini
Expand Up @@ -15,14 +15,6 @@ commands = python tap/tests/run.py
[testenv:module]
commands = python -m tap

[testenv:lint]
deps =
black
flake8
commands =
flake8 tap setup.py
black --check tap setup.py

[testenv:integration]
deps =
pytest
Expand Down

0 comments on commit 1846467

Please sign in to comment.