Skip to content

Commit aff1162

Browse files
authored
Python 3.8 support (#21)
- Add support for python 3.8
1 parent 74610f4 commit aff1162

File tree

7 files changed

+15
-10
lines changed

7 files changed

+15
-10
lines changed

.github/workflows/python-app.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
os: [ubuntu-latest, macos-latest, windows-latest]
46-
python-version: ["3.9", "3.10"]
46+
python-version: ["3.8", "3.9", "3.10"]
4747
runs-on: ${{ matrix.os }}
4848
steps:
4949
- uses: actions/checkout@v3

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/asottile/yesqa
17-
rev: v1.3.0
17+
rev: v1.4.0
1818
hooks:
1919
- id: yesqa
2020
additional_dependencies: &flake8_deps
2121
- flake8-bugbear
2222
- flake8-comprehensions
2323
- flake8-implicit-str-concat
2424
- flake8-pie
25-
- Flake8-pyproject
25+
- flake8-pyproject
2626
- flake8-pytest-style
2727
- flake8-simplify
2828
- flake8-unused-arguments
@@ -33,7 +33,7 @@ repos:
3333
rev: v2.37.3
3434
hooks:
3535
- id: pyupgrade
36-
args: [--py39-plus]
36+
args: [--py38-plus]
3737

3838
- repo: https://github.com/PyCQA/isort
3939
rev: 5.10.1

poetry.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "images-upload-cli"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "Upload images via APIs"
55
authors = ["DeadNews <[email protected]>"]
66
license = "MIT"
@@ -14,7 +14,7 @@ classifiers = ["Environment :: Console", "Operating System :: OS Independent"]
1414
images-upload-cli = "images_upload_cli.cli:cli"
1515

1616
[tool.poetry.dependencies]
17-
python = "^3.9"
17+
python = "^3.8"
1818
click = "^8.0.2"
1919
pillow = "^9.1.1"
2020
pyperclip = "^1.8.2"
@@ -29,7 +29,7 @@ flake8-bugbear = "^22.4.25"
2929
flake8-comprehensions = "^3.10.0"
3030
flake8-implicit-str-concat = "^0.3.0"
3131
flake8-pie = "^0.16.0"
32-
Flake8-pyproject = "^1.1.0"
32+
flake8-pyproject = "^1.1.0"
3333
flake8-pytest-style = "^1.6.0"
3434
flake8-simplify = "^0.19.3"
3535
flake8-unused-arguments = "^0.0.11"
@@ -59,7 +59,6 @@ profile = "black"
5959
max-line-length = 99
6060
max-complexity = 18
6161
show-source = true
62-
statistics = true
6362
ignore = [
6463
"E501", # Line too long.
6564
"PIE786", # Use precise exception handlers.

tests/test_cli.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python
2+
from __future__ import annotations
3+
24
import pytest
35
from click.testing import CliRunner
46

tests/test_upload.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python
2+
from __future__ import annotations
3+
24
from src.images_upload_cli.upload import UPLOAD, imgur_upload
35

46

tests/test_util.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python
2+
from __future__ import annotations
3+
24
from os import environ
35
from pathlib import Path
46

0 commit comments

Comments
 (0)