Skip to content

Commit

Permalink
some ci fixes after BS4 and ruff updates
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Feb 9, 2025
1 parent 29f6fab commit b8d1726
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .ci/github-ci-compat
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,12 @@ if ! which sudo; then
apt -y install sudo
fi

# compensate for differences between ubuntu:focal and github action image...

sudo apt -y install python3.10 python3.10-dev
sudo python3.10 -m pip install -U setuptools pip # ugh. otherwise find_namespace_packages is missing

# just in case? not sure if need anymore
sudo ln -sfT "$(which python3.10)" /usr/bin/python3
# make up for differences between ubuntu:focal and github action image...
sudo apt -y install python3.12 python3.12-dev
sudo apt -y install python3-pip python3-setuptools

# otherwise setuptools don't work..
sudo apt -y install git

# jq wants it??
sudo apt -y install dh-autoreconf

sudo apt -y install python3-pip

# this is only necessary on gitlab CI apparently???
sudo apt -y install python3-setuptools
sudo apt -y install dh-autoreconf
2 changes: 2 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ lint.ignore = [

"ARG001", # ugh, kinda annoying when using pytest fixtures
"RUF001", "RUF002", "RUF003", # spams about non-latin characters that we do use for testing

"A005", # we're using promnesia.logging module
]
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ commands =
[testenv:tests-all]
deps =
-e .[testing,all,HPI,org]
beautifulsoup4<4.13.0 # FIXME temporary hack until https://github.com/purarue/google_takeout_parser/pull/81 is merged
uv # for hpi module install
commands =
# used in some tests
Expand Down Expand Up @@ -99,6 +100,7 @@ commands =
[testenv:mypy-misc]
deps =
-e .[testing,HPI,org] # todo install from HPI[all] or something?
beautifulsoup4<4.13.0 # FIXME temporary hack until https://github.com/purarue/google_takeout_parser/pull/81 is merged
uv # for hpi module install
commands =
{envpython} -m my.core module install \
Expand Down

0 comments on commit b8d1726

Please sign in to comment.