1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Merge f406815209bcd4ee04b6fa5d6996c52de90f4240 into c7e7e1d884d3bb241ea6448f72a989434c2a35ec

This commit is contained in:
Leonid 2025-02-06 07:50:40 +00:00 committed by GitHub
commit 9feb680cb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 5 deletions

View File

@ -1,16 +1,16 @@
name: Tests
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
env:
PYTHON_LATEST: "3.11"
PYTHON_LATEST: "3.12"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:

View File

@ -14,7 +14,13 @@ try:
module_spec.loader.exec_module(module)
return module
except ImportError:
from imp import load_source
py_version = sys.version_info
major = py_version.major
minor = py_version.minor
if major == 3 and minor < 12:
from imp import load_source
else:
from importlib import load_source
class Settings(dict):

View File

@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37,38,39,310,311}
envlist = py{27,35,36,37,38,39,310,311,312}
[testenv]
deps = -rrequirements.txt