Browse Source

Add Python 3.11 support

Benjamin Gleitzman 2 years ago
parent
commit
286503a39d

+ 1 - 1
.github/workflows/docs.yml

@@ -15,7 +15,7 @@ jobs:
     - name: Set up Python
       uses: actions/setup-python@v2
       with:
-        python-version: '3.10'
+        python-version: '3.11'
 
     - name: Install Pip
       run:  python -m pip install --upgrade pip

+ 1 - 1
.github/workflows/early-warning.yml

@@ -16,7 +16,7 @@ jobs:
       - uses: actions/checkout@v2
       - uses: actions/setup-python@v2
         with:
-          python-version: '3.10'
+          python-version: '3.11'
 
       - name: Setup environment
         run: pip install -r requirements.txt

+ 1 - 1
.github/workflows/python-non-master.yml

@@ -16,7 +16,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.7, 3.8, 3.9, '3.10']
+        python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
 
     steps:
     - uses: actions/checkout@v2

+ 1 - 1
.github/workflows/python.yml

@@ -12,7 +12,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.7, 3.8, 3.9, '3.10']
+        python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
 
     steps:
     - uses: actions/checkout@v2

+ 1 - 1
.pre-commit-config.yaml

@@ -7,7 +7,7 @@ repos:
           - "--config=.flake8rc"
 
   - repo: https://github.com/PyCQA/pylint/
-    rev: v2.11.1
+    rev: v2.15.10
     hooks:
       - id: pylint
         args:

+ 0 - 7
.pylintrc

@@ -244,13 +244,6 @@ max-line-length=119
 # Maximum number of lines in a module.
 max-module-lines=1000
 
-# List of optional constructs for which whitespace checking is disabled. `dict-
-# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
-# `trailing-comma` allows a space between comma and closing bracket: (a, ).
-# `empty-line` allows space-only lines.
-no-space-check=trailing-comma,
-               dict-separator
-
 # Allow the body of a class to be on the same line as the declaration if body
 # contains single statement.
 single-line-class-stmt=no

+ 1 - 1
requirements/dev.txt

@@ -1,7 +1,7 @@
 # Contains development specific requirements and imports common requirements
 flake8==5.0.4
 nose2==0.12.0
-pylint==2.13.9
+pylint==2.15.10
 pre-commit==2.17.0
 twine==3.8.0
 -r common.txt

+ 1 - 0
setup.py

@@ -80,6 +80,7 @@ setup(
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
+        "Programming Language :: Python :: 3.11",
         "Topic :: Documentation",
     ],
     keywords='howdoi help console command line answer',

+ 1 - 1
test_howdoi.py

@@ -190,7 +190,7 @@ class HowdoiTestCase(unittest.TestCase):  # pylint: disable=too-many-public-meth
         second_answer = howdoi.howdoi(query + ' -n3')
         self.assertNotEqual(first_answer, second_answer)
 
-    def test_unicode_answer(self):  # pylint: disable=no-self-use
+    def test_unicode_answer(self):
         assert howdoi.howdoi('make a log scale d3')
         assert howdoi.howdoi('python unittest -n3')
         assert howdoi.howdoi('parse html regex -a')