diff --git a/fix_code_style.py b/fix_code_style.py deleted file mode 100644 index 9b0cf06..0000000 --- a/fix_code_style.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -This script provides dev-ops tools for python project development. -""" - -from __future__ import print_function -from pathlib_mate import Path -from setup import package - - -def fixcode(**kwargs): - """ - auto pep8 format all python file in ``source code`` and ``tests`` dir. - """ - # repository direcotry - repo_dir = Path(__file__).parent.absolute() - - # source code directory - source_dir = Path(repo_dir, package.__name__) - - if source_dir.exists(): - print("Source code locate at: '%s'." % source_dir) - print("Auto pep8 all python file ...") - source_dir.autopep8(**kwargs) - else: - print("Source code directory not found!") - - # unittest code directory - unittest_dir = Path(repo_dir, "tests") - if unittest_dir.exists(): - print("Unittest code locate at: '%s'." % unittest_dir) - print("Auto pep8 all python file ...") - unittest_dir.autopep8(**kwargs) - else: - print("Unittest code directory not found!") - - print("Complete!") - - -if __name__ == "__main__": - fixcode() diff --git a/requirements-dev.txt b/requirements-dev.txt index 1f7a431..3e5ce3a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,4 @@ # This requirements file should only include dependencies for development -pathlib_mate # autopep8 your code twine # make distribution archive wheel # make pre-compiled distribution package fire diff --git a/requirements-test.txt b/requirements-test.txt index 0548f9d..841760c 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,4 @@ # This requirements file should only include dependencies for testing pytest # test framework pytest-cov # coverage test +pathlib_mate diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 5a1603e..0000000 --- a/tox.ini +++ /dev/null @@ -1,18 +0,0 @@ -# Tox is a generic virtualenv management and test command line tool you can use for: -# checking your package installs correctly with different Python versions and interpreters -# running your tests in each of the environments, configuring your test tool of choice -# acting as a frontend to Continuous Integration servers, greatly reducing boilerplate and merging CI and shell-based testing. -# -# content of: tox.ini , put in same dir as setup.py -# for more info: http://tox.readthedocs.io/en/latest/config.html -[tox] -envlist = py38 - -[testenv] -deps = - -rrequirements.txt - -rrequirements-test.txt - -commands = - pip install --editable . - pytest tests