Skip to content

Commit

Permalink
python: fix missing flake8-formatter-junit-xml dependency
Browse files Browse the repository at this point in the history
In CI we use the following command:

    poetry run pflake8 --config ./pyproject.toml --output-file flake8.xml --format junit-xml

Unfortunately, when flake8 doesn't recognize a predefined format,
it silently interprets it as a format string. As a result the
output file flake8.xml contained a single line with the raw
string "junit-xml".

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Jan 13, 2025
1 parent 673dc44 commit 8ee0426
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 3 deletions.
42 changes: 41 additions & 1 deletion python/osrd_schemas/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions python/osrd_schemas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ python = ">=3.9,<3.13"

[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
flake8-formatter-junit-xml = "^0.0.6"
isort = "^5.12.0"
pyproject-flake8 = "^6.0.0.post1"
pytype = { platform = "linux", version = "^2023.10.17" }
Expand Down
44 changes: 42 additions & 2 deletions python/railjson_generator/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions python/railjson_generator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python = ">=3.9,<3.13"

[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
flake8-formatter-junit-xml = "^0.0.6"
isort = "^5.12.0"
pyproject-flake8 = "^6.0.0.post1"
pytype = { platform = "linux", version = "^2023.10.17" }
Expand Down

0 comments on commit 8ee0426

Please sign in to comment.