Skip to content

Commit

Permalink
Merge pull request #40 from kaste/maint
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored Apr 21, 2024
2 parents 379b676 + b279c58 commit 41c0e86
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ jobs:
check-messages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: kaste/upgrade-messages-test-action@v1

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: pip install "flake8<6.0.0"
- uses: TrueBrain/actions-flake8@v2

mypy:
Expand All @@ -26,11 +27,11 @@ jobs:
platform: ['linux', 'darwin', 'win32']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Install mypy
run: |
pip install mypy
Expand All @@ -42,12 +43,9 @@ jobs:
strategy:
fail-fast: false
matrix:
st-version: [3, 4]
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: SublimeText/UnitTesting/actions/setup@v1
with:
sublime-text-version: ${{ matrix.st-version }}
- uses: SublimeText/UnitTesting/actions/run-tests@v1
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
5 changes: 3 additions & 2 deletions messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"install": "messages/install.md",
"0.7.0": "messages/0.7.0.md"
}
"0.7.0": "messages/0.7.0.md",
"0.9.0": "messages/0.9.0.md"
}
6 changes: 6 additions & 0 deletions messages/0.9.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# PyTest 0.9.0

The plugin has been updated to run on Sublime Text's python38 host.

A restart is required as Package Control (likely) needs to download and install
a new `lxml` version. Just check Sublime's console (`View > Show Console`).
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ mypy_path =
stubs,
..
sqlite_cache = True
implicit_optional = True
no_namespace_packages = True

[mypy-Default]
ignore_missing_imports = True
Expand Down
6 changes: 3 additions & 3 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def tweak_theme():

theme = view.settings().get('theme')
if theme is None:
print("Can't guess current theme.")
print("PyTest: Can't guess current theme.")
return

if theme == 'auto':
print(
"Not implemented for 'auto'. "
"PyTest: Theme patching is not implemented for 'auto'. "
"https://github.com/kaste/PyTest/issues/38 \n"
"You could try an implementation and send a pull request.")
"You could try an implementation and make a pull request.")
return

theme_path = os.path.join(sublime.packages_path(), 'User', theme)
Expand Down

0 comments on commit 41c0e86

Please sign in to comment.