Skip to content

Commit d047dca

Browse files
authored
Fix tox -e pep8 and update CI (#109)
* Update CI * Require Python 3.7
1 parent a6438bf commit d047dca

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
15-
python: ['3.11']
15+
python: ['3.14']
1616
include:
1717
# Python 3.6 uses old Ubuntu 20.04
18-
- os: ubuntu-20.04
19-
python: '3.6'
18+
- os: ubuntu-22.04
19+
python: '3.7'
2020

2121
steps:
2222
# https://github.com/actions/checkout
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Setup Python
2525
# https://github.com/actions/setup-python
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: ${{ matrix.python }}
2929
- name: Install Tox and any other packages

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ Command line tools using Hachoir parsers:
3737

3838
Installation instructions: http://hachoir.readthedocs.io/en/latest/install.html
3939

40-
Hachoir is written for Python 3.6 or newer.
40+
Hachoir is written for Python 3.7 or newer.

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ To use hachoir-wx, you will also need to install `wxPython
1616

1717
python3 -m pip install -U wxPython
1818

19-
Hachoir requires Python 3.6 or newer.
19+
Hachoir requires Python 3.7 or newer.

hachoir/parser/program/java.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def eat_descriptor(descr):
118118
type = descr[1:end]
119119
descr = descr[end:]
120120
else:
121-
global code_to_type_name
122121
try:
123122
type = code_to_type_name[descr[0]]
124123
except KeyError:

0 commit comments

Comments
 (0)