quipucords / camayoc

Test automation framework that facilitates functional testing of quipucords.
https://camayoc.readthedocs.io/
GNU General Public License v3.0
5 stars 4 forks source link

Ensure tooling consistency with Quipucords #414

Closed mirekdlugosz closed 1 year ago

mirekdlugosz commented 1 year ago

Make Camayoc use the same stack as Quipucords: Python 3.11 + ruff + black.

This requires a bit of changes in Jenkins, submitted as swatch-ci MR #195.

This also changes the way you install Camayoc - now the install command is poetry install or poetry install --with dev. See poetry documentation on installation method. Personally, I install it using pipx, which I get from Fedora repo.

Command like poetry install will create new virtual environment. poetry run <command> can be used to invoke a command while this virtual environment is active. poetry shell will spawn a new shell with virtual environment activated. poetry will respect currently activated virtual environment, so if you prefer things like python -m venv, direnv etc., poetry should just pick them up.

During review, feel free to ignore 22812b31db6bbacfd1475395e604ab882cc39b1a, which is basically result of running ruff --fix ..

codecov[bot] commented 1 year ago

Codecov Report

Merging #414 (cda4dc4) into main (876a0ed) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #414   +/-   ##
=======================================
  Coverage   79.11%   79.11%           
=======================================
  Files           5        5           
  Lines         249      249           
=======================================
  Hits          197      197           
  Misses         52       52           
Impacted Files Coverage Δ
camayoc/command.py 90.24% <ø> (ø)
camayoc/config.py 100.00% <ø> (ø)
camayoc/exceptions.py 94.11% <ø> (ø)
camayoc/utils.py 71.87% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more