Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
},
"postCreateCommand": {
"pre-commit": "pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push",
"pre-commit": "pre-commit install",
"dev-requirements": "python2 -m pip install --requirement requirements.txt"
}
}
}
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ repos:
language: system
files: ^src/
types: [python]

default_install_hook_types: [pre-commit, pre-push, commit-msg]
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ help us maintain consistent and meaningful commit messages.
1. Install the git hook scripts

```sh
pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push
pre-commit install
```

1. [`tox`]
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
enum34
java-api>17,<21
java-api>25
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ enum34==1.1.10 \
--hash=sha256:c3858660960c984d6ab0ebad691265180da2b43f07e061c0f8dca9ef3cffd328 \
--hash=sha256:cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248
# via -r requirements.in
java-api==17.26.6 \
--hash=sha256:8c9a40f9626930420b4cf3b97ebfe5f91acf3c02416ab89e7296bddbc1cfb93b \
--hash=sha256:d15c289b169f2b6339c69d09870a4c966e18850db415d448727cc626db4153a1
java-api==25.26.1 \
--hash=sha256:1b73ea36e18f617b919ff78047b18f89467128596349f07996628121c677d0d6 \
--hash=sha256:e39b08c02c00cdeff827657594c4c2d5c3acafe6cb79969e1fcc5907fada0fd9
# via -r requirements.in
typing==3.10.0.0 \
--hash=sha256:12fbdfbe7d6cca1a42e485229afcb0b0c8259258cfb919b8a5e2a5c953742f89 \
Expand Down
3 changes: 2 additions & 1 deletion src/system/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def configure(
Python dictionary. Alternately, a JSON source string may be
passed to this parameter. When editing existing tags, it is
generally easier to retrieve the Tag configurations with
system.Tag.getConfiguration, modify the results of the
system.tag.getConfiguration, modify the results of the
getConfiguration call, and then write the new configuration
to the parent folder of the existing Tag(s).
collisionPolicy: The action to take when a Tag or folder with
Expand Down Expand Up @@ -238,6 +238,7 @@ def getConfiguration(
A List of Tag dictionaries. Nested Tags are placed in a list
marked as "tags" in the dictionary.
"""
print(basePath, recursive, overridesOnly, getChildren)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Medium · Tag reads pollute stdout

getConfiguration prints its arguments before returning the tag dictionaries, so callers that consume stdout receive unexpected text and gateway logs gain an extra line.

Remove the print so getConfiguration returns its result without writing to stdout.

Prompt for AI agents
In `src/system/tag.py` at line 241:

**Tag reads pollute stdout**

`getConfiguration` prints its arguments before returning the tag dictionaries, so callers that consume stdout receive unexpected text and gateway logs gain an extra line.

Remove the print so `getConfiguration` returns its result without writing to stdout.

return (
[
{
Expand Down