Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ jobs:
pip install .[dev]
pip install .[docs]

# Some of the system tests require git to be configured
- name: Set up git configuration
run: |
git config --global user.email "fab"
git config --global user.name "Fab Testing"
Comment on lines +77 to +78
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you need this for git merge. There is no potential issue here, but does this have to be --global config? I know there is no strict validation here, but wondering if [email protected] as user.email would be better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably doesn't have to be, but this is what git suggests when the configuration items don't exist


- name: Type check with mypy
run: python -m mypy source tests

Expand Down
4 changes: 0 additions & 4 deletions source/fab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@
logger = logging.getLogger(__name__)
logger.addHandler(logging.StreamHandler(sys.stdout))
logger.setLevel(logging.INFO)


class FabException(Exception):
pass
4 changes: 2 additions & 2 deletions source/fab/artefacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def replace(self, artefact: Union[str, ArtefactSet],

art_set = self[artefact]
if not isinstance(art_set, set):
raise RuntimeError(f"Replacing artefacts in dictionary "
f"'{artefact}' is not supported.")
name = artefact if isinstance(artefact, str) else artefact.name
raise AssertionError(f"{name} is not mutable")
art_set.difference_update(set(remove_files))
art_set.update(add_files)

Expand Down
Loading