Skip to content

Commit

Permalink
ci/gh: fix the issue w/ monkeypatch.delenv
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Jan 22, 2024
1 parent b22cf06 commit 00eb1b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
make install-dev; ocrd --version
- name: Lint with flake8
run: |
python -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
9 changes: 0 additions & 9 deletions src/ocrd/resource_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,7 @@ def __init__(self, userdir=None, xdg_config_home=None, xdg_data_home=None, skip_
self._xdg_data_home = xdg_data_home
self._xdg_config_home = xdg_config_home
self._userdir = userdir
import os
# import traceback
# traceback.print_stack()
print('os.environ.HOME', os.environ['HOME'])
print('config.HOME', config.HOME)
print('config.XDG_CONFIG_HOME', config.XDG_CONFIG_HOME)
print('xdg_config_home', xdg_config_home)
print('self.xdg_config_home', self.xdg_config_home)
self.user_list = Path(self.xdg_config_home, 'ocrd', 'resources.yml')
# print(self.user_list)

if not skip_init:
self.load_resource_list(Path(RESOURCE_LIST_FILENAME))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resource_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from pathlib import Path
import pdb
# import pdb

from ocrd.resource_manager import OcrdResourceManager
from ocrd_utils import config
Expand Down

0 comments on commit 00eb1b2

Please sign in to comment.