Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new project code standards #977

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

JacobCallahan
Copy link
Member

This change adds Ruff as the new linter and loosens Black's formatting as well.
Due to this change, we can drop flake8 and old pre-commit hooks.

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage: 92.68% and project coverage change: -0.12% ⚠️

Comparison is base (4694e95) 92.26% compared to head (fce3ad5) 92.14%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #977      +/-   ##
==========================================
- Coverage   92.26%   92.14%   -0.12%     
==========================================
  Files           6        6              
  Lines        3076     3043      -33     
==========================================
- Hits         2838     2804      -34     
- Misses        238      239       +1     
Files Changed Coverage Δ
nailgun/__init__.py 100.00% <ø> (ø)
nailgun/entities.py 91.28% <85.00%> (-0.06%) ⬇️
nailgun/client.py 87.64% <100.00%> (-0.87%) ⬇️
nailgun/config.py 97.59% <100.00%> (-0.03%) ⬇️
nailgun/entity_fields.py 100.00% <100.00%> (ø)
nailgun/entity_mixins.py 95.86% <100.00%> (-0.09%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"C", # complexity
"C4", # flake8-comprehensions
"COM818", # Trailing comma on bare tuple prohibited
# "D", # docstrings
Copy link
Member Author

Choose a reason for hiding this comment

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

Docstrings will be enforced in a follow-up PR

@JacobCallahan JacobCallahan added 6.11.z CherryPick PR needs CherryPick to previous branches 6.12.z 6.13.z 6.14.z labels Aug 2, 2023
docs/create_user_plain.py Outdated Show resolved Hide resolved
nailgun/client.py Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
nailgun/entities.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
tests/test_config.py Show resolved Hide resolved
tests/test_config.py Show resolved Hide resolved
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
Copy link
Member

@jyejare jyejare left a comment

Choose a reason for hiding this comment

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

ACK with minor comments !

tests/test_config.py Show resolved Hide resolved
tests/test_entities.py Show resolved Hide resolved
@jyejare
Copy link
Member

jyejare commented Aug 10, 2023

@JacobCallahan Would you like to address the Codecov drop in coverage percentage ?

@ogajduse
Copy link
Member

ogajduse commented Aug 10, 2023

@JacobCallahan Would you like to address the Codecov drop in coverage percentage?

I would like to know why Codecov claims that the coverage dropped if the PR did not add or remove any functionality.
Take nailgun/config.py as an example. What has changed there?

@jyejare jyejare merged commit 4e4026f into SatelliteQE:master Aug 10, 2023
13 of 14 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 10, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.

(cherry picked from commit 4e4026f)
JacobCallahan added a commit to JacobCallahan/nailgun that referenced this pull request Aug 10, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
JacobCallahan added a commit to JacobCallahan/nailgun that referenced this pull request Aug 10, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
JacobCallahan added a commit to JacobCallahan/nailgun that referenced this pull request Aug 10, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
ogajduse pushed a commit that referenced this pull request Aug 22, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.

(cherry picked from commit 4e4026f)
ogajduse pushed a commit that referenced this pull request Aug 22, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
ogajduse pushed a commit that referenced this pull request Aug 22, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
ogajduse pushed a commit that referenced this pull request Aug 22, 2023
This change adds Ruff as the new linter and loosens Black's formatting
as well.
Due to this change, we can drop flake8 and old pre-commit hooks.
ogajduse added a commit to ogajduse/nailgun that referenced this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.11.z 6.12.z 6.13.z 6.14.z CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants