Repository: RedHatQE/widgetastic.core (language: python)

Issue:
Set minimum version to py38
Update pre-commit hooks, adjust github workflow matrix

https://github.com/RedHatQE/widgetastic.patternfly4/pull/129

https://github.com/RedHatQE/widgetastic.patternfly/pull/133


Discussion / hints:
# [Codecov](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE) Report
> Merging [#214](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE) (8c51982) into [master](https://codecov.io/gh/RedHatQE/widgetastic.core/commit/7b228874bdbdbe7dc29436cff718bf8ce34b7e30?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE) (7b22887) will **decrease** coverage by `0.16%`.
> The diff coverage is `100.00%`.

> :exclamation: Current head 8c51982 differs from pull request most recent head ac92272. Consider uploading reports for the commit ac92272 to get more accurate results

[![Impacted file tree graph](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214/graphs/tree.svg?width=650&height=150&src=pr&token=Rt1GJNIbuJ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE)](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE)

```diff
@@            Coverage Diff             @@
##           master     #214      +/-   ##
==========================================
- Coverage   86.58%   86.42%   -0.17%     
==========================================
  Files          18       18              
  Lines        2557     2556       -1     
==========================================
- Hits         2214     2209       -5     
- Misses        343      347       +4     
```

| Flag | Coverage Δ | |
|---|---|---|
| unittests | `86.42% <100.00%> (-0.17%)` | :arrow_down: |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE#carryforward-flags-in-the-pull-request-comment) to find out more.

| [Impacted Files](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE) | Coverage Δ | |
|---|---|---|
| [src/widgetastic/utils.py](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE#diff-c3JjL3dpZGdldGFzdGljL3V0aWxzLnB5) | `84.61% <100.00%> (ø)` | |
| [src/widgetastic/widget/table.py](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE#diff-c3JjL3dpZGdldGFzdGljL3dpZGdldC90YWJsZS5weQ==) | `88.85% <0.00%> (-0.46%)` | :arrow_down: |
| [src/widgetastic/browser.py](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE#diff-c3JjL3dpZGdldGFzdGljL2Jyb3dzZXIucHk=) | `75.84% <0.00%> (-0.19%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE). Last update [7b22887...ac92272](https://codecov.io/gh/RedHatQE/widgetastic.core/pull/214?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RedHatQE).

LGTM

Fix patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 623a48f..f75463d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,13 +1,13 @@
 repos:
   - repo: https://github.com/asottile/reorder_python_imports
-    rev: v2.7.1
+    rev: v3.0.1
     hooks:
       - id: reorder-python-imports
         language_version: python3
         args:
           - --application-directories=.:src
   - repo: https://github.com/psf/black
-    rev: 22.1.0
+    rev: 22.3.0
     hooks:
       - id: black
         args: [--safe, --quiet, --line-length, "100"]
@@ -31,12 +31,12 @@ repos:
       - id: debug-statements
         language_version: python3
   - repo: https://github.com/asottile/pyupgrade
-    rev: v2.31.0
+    rev: v2.31.1
     hooks:
       - id: pyupgrade
         language_version: python3
-        args: [--py36-plus]
+        args: [--py3-plus, --py38-plus]
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v0.931
+    rev: v0.942
     hooks:
       - id: mypy
diff --git a/setup.cfg b/setup.cfg
index ad6328e..fd9f636 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -5,15 +5,13 @@ author_email = mfalesni@redhat.com
 maintainer = Pete Savage
 maintainer_email = psavage@redhat.com
 description = Making testing of UIs fantastic
-long_description= file: README.rst
+long_description = file: README.rst
 license = Apache license
 url = https://github.com/RedHatQE/widgetastic.core
 classifiers =
     License :: OSI Approved :: Apache Software License
     Programming Language :: Python
     Programming Language :: Python :: 3
-    Programming Language :: Python :: 3.6
-    Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: Implementation :: CPython
     Programming Language :: Python :: Implementation :: PyPy
@@ -22,6 +20,7 @@ classifiers =
     Topic :: Software Development :: Testing
 
 [options]
+python_requires = >= 3.8
 install_requires =
     anytree
     cached_property


Test patch:
diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml
index bef1b10..c77cb1e 100644
--- a/.github/workflows/test_suite.yml
+++ b/.github/workflows/test_suite.yml
@@ -38,7 +38,7 @@ jobs:
     strategy:
       matrix:
         browser: [chrome, firefox]
-        python-version: [pypy3, 3.6, 3.7, 3.8]
+        python-version: [3.8, 3.9]
 
     steps:
       - name: Pull selenium-standalone:latest