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

Integrate code improvements and add linters #307

Merged
merged 10 commits into from
Apr 28, 2023
Merged

Integrate code improvements and add linters #307

merged 10 commits into from
Apr 28, 2023

Conversation

ThomasSanson
Copy link
Sponsor Contributor

close #306

This commit adds linters for YAML, Ansible, and Python files. The `.yamllint` file is updated to ignore the `.venv` directory and to enforce a minimum of one space between comments and content. The `.ansible-lint` file is updated to exclude the `.venv` directory. The `Makefile` is updated to include the new `linters.mak` file, which contains the targets for the linters. The linters are executed in the `lint` target.
This commit removes commented out code and fixes indentation in the molecule.yml file. The commented out code is not needed and the indentation is inconsistent, which can make the file harder to read.
… packages

The bash-completion package is added to enable tab completion in the terminal. The following packages are removed as they are either redundant or not required: sudo, nano, iproute2, curl, htop, gnupg, and lsb-release.
The lint target is added to the Makefile to run all linters at once. This improves the development workflow by allowing developers to run all linters with a single command.
A new flake8 configuration file has been added to the .config directory. This file specifies the directories and files to exclude from flake8 linting.
…tory

The flake8 configuration file was moved from the root directory to the .config directory to improve organization and avoid cluttering the root directory.
🔧 chore(postgrespro): move vars file to vars directory
The comments and echo statements were removed from the linters.mak file to reduce noise in the output. The vars file was moved to the vars directory to improve organization and consistency with other roles.
This commit updates the contributing guidelines to include instructions on how to lint the codebase using `make lint`. It also adds a step to the existing instructions to test with linters.
…nclude_vars module

The ansible.builtin prefix is redundant and can be removed from the include_vars module.
The molecule-lint target has been removed as it is no longer needed.
@vitabaks vitabaks merged commit 68c534e into vitabaks:master Apr 28, 2023
16 checks passed
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.

Integrate code improvements and add linters
2 participants