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

test: reduce line length to 118 the default in Cockpit #1312

Merged
merged 4 commits into from
Jun 23, 2023

Conversation

jelly
Copy link
Member

@jelly jelly commented Jun 22, 2023

We can now start running ruff in CI.

As follow up:

  • use test/static-code from Cockpit like machines
  • add a pyproject.toml and copy rules from Cockpit or machines.

@jelly jelly requested a review from martinpitt June 22, 2023 14:59
martinpitt
martinpitt previously approved these changes Jun 22, 2023
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Thanks!

test/check-application Outdated Show resolved Hide resolved
test/check-application Show resolved Hide resolved
@jelly jelly force-pushed the reduce-line-length-final branch from bac20b9 to 7385b7d Compare June 22, 2023 15:12
@jelly jelly requested a review from martinpitt June 22, 2023 15:26
jelly added 4 commits June 22, 2023 18:30
We can now start running ruff in CI.
Copy the rules which Cockpit-machines enables, except ignore FBT003 for
now and PT as they require more work to fix.
@jelly jelly force-pushed the reduce-line-length-final branch from 0e03cc5 to 024aedb Compare June 22, 2023 16:31
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Cheers!

@@ -92,7 +92,7 @@ const ContainerEnv = ({ containerEnv, imageEnv }) => {
const ContainerIntegration = ({ container, containerDetail, localImages }) => {
if (containerDetail === null || localImages === null) {
return (
<EmptyStatePanel title={_('Loading details...')} loading />
<EmptyStatePanel title={_("Loading details...")} loading />
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test. Details

@martinpitt
Copy link
Member

this is stubborn. But this looks a lot like cockpit-project/bots#4829 , just that the patterns somehow don't match

@martinpitt martinpitt merged commit 6b74dd4 into cockpit-project:main Jun 23, 2023
@jelly jelly deleted the reduce-line-length-final branch June 23, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants