Skip to content

refactor: add linter to the CI#261

Merged
marwin-roth merged 3 commits intodevelopmentfrom
CHL-1422-introduce-linter
Nov 14, 2024
Merged

refactor: add linter to the CI#261
marwin-roth merged 3 commits intodevelopmentfrom
CHL-1422-introduce-linter

Conversation

@marwin-roth
Copy link
Copy Markdown
Contributor

Adding the ruff linter and formatter. Also applying ruff on the current codebase.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Nov 14, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@marwin-roth marwin-roth merged commit 3713897 into development Nov 14, 2024
@marwin-roth marwin-roth deleted the CHL-1422-introduce-linter branch November 14, 2024 13:29
Th3Un1q3 added a commit that referenced this pull request Nov 26, 2024
* feat: minimal python version warning (#260)

* [Automated] Version Bump from 0.4.0 to 0.4.1

* Add check for minimal python version and e2e testing

* refactor: add linter to the CI (#261)

* Add lint check to CI

* Modify lint check and perform format

* Apply ruff format and modify readme and bump-version.yml

* build(deps): bump the python group across 1 directory with 3 updates

Bumps the python group with 3 updates in the / directory: [requests](https://github.com/psf/requests), [pydantic](https://github.com/pydantic/pydantic) and [ruff](https://github.com/astral-sh/ruff).


Updates `requests` from 2.29.0 to 2.32.3
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.29.0...v2.32.3)

Updates `pydantic` from 1.10.19 to 2.10.1
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v1.10.19...v2.10.1)

Updates `ruff` from 0.7.3 to 0.8.0
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.7.3...0.8.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor: add lint format check to CI (#267)

* Add lint check to CI

* Modify lint check and perform format

* Apply ruff format and modify readme and bump-version.yml

* Add ruff format check to CI

* Add ruff format check to CI

* Revert version change of pydantic and requests

* fix: fix url lib and bump requests

* fix: format remarks

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: marwin-roth <150677923+marwin-roth@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mikhail.gubenko <mikhail.gubenko@emnify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants