Skip to content

Commit

Permalink
Extend .venv paths to ignore
Browse files Browse the repository at this point in the history
Useful when creating virtual environments for several Python versions
(e.g. `.venv38`, `.venv312`), which otherwise are linted by tools like
black, isort and flake8.
  • Loading branch information
nsoranzo committed Jan 22, 2024
1 parent 12ad482 commit 0e7b0eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .ci/flake8_ignorelist.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.git
.tox
.venv
.venv3
.venv*
packages/*/.venv
packages/*/build
packages/*/dist
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ scripts/scramble/lib
scripts/scramble/archives

# Python virtualenv
.venv
.venv3
.venv*/

# Python build artifacts
build
Expand Down
11 changes: 10 additions & 1 deletion test/unit/app/test_galaxy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ def test_against_production_shed(tmp_path: Path):
assert tool_guid in f.read()
repo_path = tmp_path / "tools" / "toolshed.g2.bx.psu.edu" / "repos" / repo_owner / repo_name / repo_revision
assert repo_path.exists()
tool_data_table_path = tmp_path / "tool_data" / "toolshed.g2.bx.psu.edu" / "repos" / repo_owner / repo_name / repo_revision / "tool_data_table_conf.xml"
tool_data_table_path = (
tmp_path
/ "tool_data"
/ "toolshed.g2.bx.psu.edu"
/ "repos"
/ repo_owner
/ repo_name
/ repo_revision
/ "tool_data_table_conf.xml"
)
assert tool_data_table_path.exists()

install_model_context = install_target.install_model.context
Expand Down

0 comments on commit 0e7b0eb

Please sign in to comment.