Skip to content

Commit

Permalink
Remove 3.5 Classifiers + Cleanup CI
Browse files Browse the repository at this point in the history
- Use official 3.8 release
- Run tests via coverage + show coverage (setuptools has deprecated test option)
- Use black's recursive file finding abilities

Fixes #95
  • Loading branch information
cooperlees committed Jan 1, 2020
1 parent 07d842f commit 7c58882
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Expand Up @@ -8,15 +8,16 @@ matrix:
include:
- python: 3.6
- python: 3.7
- python: 3.8-dev
- python: 3.8
- python: nightly
allow_failures:
- python: 3.8-dev
- python: nightly

install:
- pip install --upgrade pip setuptools black
- pip install --upgrade pip setuptools coverage black
- pip install .

script:
- python setup.py test && find . -type f -name '*.py' | xargs black --check
- coverage run tests/test_bugbear.py
- coverage report -m | grep 'bugbear\.py'
- black --check .
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -7,7 +7,7 @@
import sys


assert sys.version_info >= (3, 5, 0), "bugbear requires Python 3.5+"
assert sys.version_info >= (3, 6, 0), "bugbear requires Python 3.6+"


current_dir = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -37,7 +37,7 @@
license="MIT",
py_modules=["bugbear"],
zip_safe=False,
python_requires=">=3.5",
python_requires=">=3.6",
install_requires=["flake8 >= 3.0.0", "attrs"],
test_suite="tests.test_bugbear",
classifiers=[
Expand All @@ -49,9 +49,9 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
Expand Down

0 comments on commit 7c58882

Please sign in to comment.