2319 Commits

Author SHA1 Message Date
Liaiss Merzougue
396b35bf35 Merge branch 'mr/fix_RUF059_rule' into 'master'
Fix RUF059 rule

See merge request it/e3-core!226
2026-02-06 14:13:51 +01:00
Liaiss Merzougue
31168422c4 Fix RUF059 rule
This rule detects the presence of unused variables in unpacked assignments.
See: https://docs.astral.sh/ruff/rules/unused-unpacked-variable/

Fixed automatically with : 'ruff check --select RUF059 --unsafe-fixes --fix' + one
manual fix in tests/test_e3/anod/context_test.py

Ref: it/org/software-supply-chain/production-pipeline/issues#204
2026-02-06 10:23:02 +00:00
Liaiss Merzougue
3a863eb3e0 Merge branch 'mr/fix_UP012_rule' into 'master'
Fix UP012 Rule.

See merge request it/e3-core!225
2026-02-06 10:25:17 +01:00
Liaiss Merzougue
ac8a9fa48f Fix UP012 Rule.
This rule requests to remove the use encode (utf-8) as it is the default
python encoding. See https://docs.astral.sh/ruff/rules/unnecessary-encode-utf8/

Automatically fixed using 'ruff check --select UP012 --fix'

Ref: it/org/software-supply-chain/production-pipeline/issues#204
2026-02-06 09:05:46 +00:00
Liaiss Merzougue
89841ad5ae Merge branch 'mr/fix_LOG015_rule' into 'master'
Fix LOG015 rule

See merge request it/e3-core!223
2026-02-04 15:03:46 +01:00
Liaiss Merzougue
f3a1f0d04d Fix LOG015 rule
Using the root logger causes the messages to have no source information,
making them less useful for debugging.

for details see: https://docs.astral.sh/ruff/rules/root-logger-call/

The fix was done manually

Ref: it/org/software-supply-chain/production-pipeline/issues#204
2026-02-04 14:56:34 +01:00
Liaiss Merzougue
2ed3066d6d Merge branch 'mr/fix_ARG005_rule' into 'master'
Fix ARG005 Rule

See merge request it/e3-core!224
2026-02-04 14:15:25 +01:00
Liaiss Merzougue
574af8e16b Fix ARG005 Rule
This rule detects for the presence of unused arguments in lambda expression definitions.

for details see: https://docs.astral.sh/ruff/rules/unused-lambda-argument/

The fix was done manually

Ref: it/org/software-supply-chain/production-pipeline/issues#204
2026-02-04 10:45:19 +00:00
Liaiss Merzougue
6f2301f2e2 Merge branch 'mr/fix_RUF005_rule' into 'master'
Fix RUF005 rule

See merge request it/e3-core!222
2026-02-03 17:25:37 +01:00
Liaiss Merzougue
6850119c0e Fix RUF005 rule
This rule requests to consider {expression} instead of concatenation, for
details see https://docs.astral.sh/ruff/rules/collection-literal-concatenation/

These fix was automatically made by ruff with the command:

  'ruff check --select RUF005 --unsafe-fixes --fix'

but a manual change on src/e3/anod/store/__init__.py was needed to fix C409
flake8 rules

Ref: it/org/software-supply-chain/production-pipeline/issues#204
2026-02-03 17:17:57 +01:00
Liaiss Merzougue
45a934cb75 Merge branch 'mr/fix_UP034_rule' into 'master'
Fix UP034 rule

See merge request it/e3-core!219
2026-01-27 16:07:35 +01:00
Liaiss Merzougue
6de145995c Fix UP034 rule
This was automatically fixed (using "ruff check --select UP034 --fix"), this
rule fix useless extraenous parathensis
(https://docs.astral.sh/ruff/rules/extraneous-parentheses/)

Ref:   it/org/software-supply-chain/production-pipeline/issues#193
2026-01-27 16:00:37 +01:00
Olivier Ramonat
0d1117c511 Merge branch 'mr/ramonat/review-mypy-config' into 'master'
Analyze more third-party packages

See merge request it/e3-core!187
2026-01-26 09:05:15 +01:00
Olivier Ramonat
a33734c91b Analyze more third-party packages
More third-party packages now provide type annotations or
stubs. Use those instead of configuring mypy to ignore
imports.

Fix mypy warning by updating annotations on e3.log to use tqdm types.

for it/e3-core#68
2026-01-23 10:57:59 +01:00
Liaiss Merzougue
8ba5f5d60d Merge branch 'mr/fix_D403_rule' into 'master'
Fix D403 rule

See merge request it/e3-core!218
2026-01-22 17:39:55 +01:00
Liaiss Merzougue
90e19fb58d Fix D403 rule
This was automatically fixed, this rule fix the docString capitalization
(https://docs.astral.sh/ruff/rules/first-word-uncapitalized/)

ref:  it/org/software-supply-chain/production-pipeline/issues#193
2026-01-22 16:19:43 +00:00
Liaiss Merzougue
6663aea47b Merge branch 'mr/fix_PT006_rule' into 'master'
Fix PT006 rule

See merge request it/e3-core!217
2026-01-21 18:13:35 +01:00
Liaiss Merzougue
b226b05728 Fix PT006 rule
The argnames argument of pytest.mark.parametrize takes a string or a sequence of strings.
This MR fix case when multiple parameters are not passed using a tuple. These
fixes was made automatically by ruff.

See: https://docs.astral.sh/ruff/rules/pytest-parametrize-names-wrong-type/

Ref: it/org/software-supply-chain/production-pipeline/issues#193
2026-01-21 18:04:23 +01:00
Liaiss Merzougue
039c5b2a7c Merge branch 'mr/fix_UP032_rule' into 'master'
Fix UP032 rule

See merge request it/e3-core!216
2026-01-21 17:13:35 +01:00
Liaiss Merzougue
6704fc784c Fix UP032 rule
This commit fix the Ruff rule UP032: https://docs.astral.sh/ruff/rules/f-string/

This is done automatically through ruff check --select UP032 --fix

Ref:  it/org/software-supply-chain/production-pipeline/issues#193
2026-01-21 16:04:26 +00:00
Liaiss Merzougue
4979ee2ce0 Merge branch 'mr/fix_ANN204_rules' into 'master'
Fix ANN204 rule

See merge request it/e3-core!215
2026-01-20 17:51:21 +01:00
Liaiss Merzougue
4214dcd194 Fix ANN204 rule
This commit fix the Ruff rule ANN204: https://docs.astral.sh/ruff/rules/missing-return-type-special-method/
This done automatically for all file but 2 files needs manual action : tests/tests_e3/conftest.py and  tests/tests_e3/json_test.py

Ref: it/org/software-supply-chain/production-pipeline/issues#193
2026-01-20 17:42:53 +01:00
Léo Cardao
0c702bc77d Merge branch 'mr/cardao/e3.anod.store/fix-multiple-issues' into 'master'
Fix multiple issue in e3.anod.store.*

See merge request it/e3-core!214
2026-01-20 16:26:45 +00:00
Léo Cardao
24f7a62408 BuildInfo.__init__: Rename build_id parameter to id 2026-01-20 16:17:01 +00:00
Léo Cardao
82bd266ebb Fix e3.anod.store.file.File.download
When downloading a file from a store, if `self.downloaded_as` is a symlink
to our destination or vice versa, the copy will fail because the two files
are the same.

The previous implementation may lead us to think that we are protected for
such cases because we first compared if `os.path.abspath(source)` was
different from `os.path.abspath(destination)`, but that is not enough:

    `os.path.abspath` doesn't follow symlinks, so the path returned could
    differ, but still point to the same file on the system at the end.

To avoid this, the call to `os.path.abspath` has been replaced by
`Path(...).resolve()`, which will return an absolute path while following
symlinks.
2026-01-20 16:17:01 +00:00