1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-18 07:36:34 -05:00

Added more pre-commit hook tests

also added pre-commit job for tox.
This commit is contained in:
Hemna 2021-01-07 17:00:42 -05:00
parent 9f4cc27a11
commit 4c0150dd97
13 changed files with 32 additions and 6 deletions

View File

@ -6,11 +6,22 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: fix-encoding-pragma
- id: detect-private-key
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: check-builtin-literals
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.7.0
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
hooks:

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging
import select
import socket

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import datetime
import email
import imaplib

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import argparse
import logging
import socketserver

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#
# @author Sinu John
# sinuvian at gmail dot com

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import abc
import datetime
import logging

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# The base plugin class
import abc
import fnmatch

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import abc
import logging
import queue

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Utilities and helper functions."""
import errno

View File

@ -1,9 +1,9 @@
tox
black
flake8
isort
mypy
pytest
pytest-cov
mypy
flake8
pep8-naming
black
isort
Sphinx
tox

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import logging
from aprsd import plugin

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -2,7 +2,7 @@
minversion = 2.9.0
skipdist = True
skip_missing_interpreters = true
envlist = pep8,py{36,37,38},fmt-check
envlist = pre-commit,pep8,fmt-check,py{36,37,38}
# Activate isolated build environment. tox will use a virtual environment
# to build a source distribution from the source tree. For build tools and
@ -91,3 +91,8 @@ deps =
-r{toxinidir}/dev-requirements.txt
commands =
mypy aprsd
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure