Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Oct 2, 2023
1 parent e695bb0 commit 893b334
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.9"

# -- Install all the dependencies needed
- name: Install dependencies
Expand All @@ -31,4 +31,4 @@ jobs:
FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }}
FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
make publish
make publish
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- name: Checkout sources
Expand Down
5 changes: 2 additions & 3 deletions apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,12 +700,11 @@ def decorate(*args, **kwargs):
exit_code = 1
try:
exit_code = function(*args, **kwargs)

except Exception as exc:
if str(exc):
click.secho("Error: " + str(exc), fg="red")

finally:
return exit_code
return exit_code

return decorate

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers=[
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python']
description-file = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.9"
requires = [
'click==8.1.3',
'semantic_version==2.9.0',
Expand All @@ -41,7 +41,7 @@ apio = "apio.__main__:cli"

[tool.black]
line-length = 79
target-version = ['py38']
target-version = ['py39']

[tool.pylint.messages_control]
disable = [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
isolated_build = True
envlist = py38
envlist = py39

[testenv]
deps =
Expand Down

0 comments on commit 893b334

Please sign in to comment.