Skip to content

lint: fix linting errors and CI job#774

Open
aensidhe wants to merge 1 commit intodavestephens:mainfrom
aensidhe:main
Open

lint: fix linting errors and CI job#774
aensidhe wants to merge 1 commit intodavestephens:mainfrom
aensidhe:main

Conversation

@aensidhe
Copy link
Copy Markdown

@aensidhe aensidhe commented Jan 9, 2026

What this PR does / why we need it:

Fixes CI job in Github actions and lint checks. CI job lint now works as supposed to: now it's green.

Any other useful info:

I've forked ansible-nas to private fork several years ago and decided today to bring upstream changes to my fork. During that I've found out that pre-commit is configured for repo, several linters has been set up and there's a CI job, unfortunately, failing always.

This is a PR with just lint fixes and nothing else. var-naming[no-role-prefix] in tests was suppressed, but any willing enthusiast can search for # noqa: and proceed with even more fixes.

Anything that is the main code was fixed where it should be fixed.

I also changed the CI job to use pre-commit, so dev and CI will use and run same code.

**What this PR does / why we need it**:

Fixes CI job in Github actions and lint checks

**Any other useful info**:

I've forked `ansible-nas` to private fork several years ago and decided today to bring upstream changes to my fork. During that I've found out that `pre-commit` is configured for repo, several linters has been set up and there's a CI job, unfortunately, failing always.

This is a PR with just lint fixes and nothing else. `var-naming[no-role-prefix]` in tests was suppressed, but any willing enthusiast can search for `# noqa:` and proceed with even more fixes.

Anything that is the main code was fixed where it should be fixed.

I also changed the CI job to use `pre-commit`, so dev and CI will use and run same code.

Signed-off-by: Anatoly Popov <me@aensidhe.ru>
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.

1 participant