diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index d5364e6..aac0944 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.6', '3.10'] + python-version: ['3.7', '3.10'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index a076b00..8fd5b95 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9'] + python-version: ['3.10'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -25,14 +25,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi + pip install '.[dev]' - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 waybackpy/ --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - # flake8 waybackpy/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --per-file-ignores="waybackpy/__init__.py:F401" + flake8 . --count --show-source --statistics + - name: Lint with black + run: | + black . --check --diff # - name: Static type test with mypy # run: | # mypy diff --git a/setup.cfg b/setup.cfg index a4279c4..197b071 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,9 +30,6 @@ classifiers = License :: OSI Approved :: MIT License Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.4 - Programming Language :: Python :: 3.5 - Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 @@ -41,7 +38,7 @@ classifiers = [options] packages = find: -python_requires = >= 3.4 +python_requires = >= 3.7 install_requires = click requests