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

feat(yaml): autofix .pre-commit-config.yaml (note: style changed!) #434

Merged
merged 33 commits into from
Jan 7, 2022

Conversation

andreoliwa
Copy link
Owner

@andreoliwa andreoliwa commented Jan 2, 2022

Fixes #282.

Proposed changes

  • feat(yaml): autofix .pre-commit-config.yaml (note: style changed!)
  • feat(yaml): special config: unique keys to search elements in lists
  • style: add autoflake
  • style: add prettier
  • style: deprecate old pre-commit style for repos ("repos.yaml" key)
  • style: update all styles with new pre-commit format

Checklist

  • Read the contribution guidelines
  • Run make locally before pushing commits
  • Add tests for the relevant parts:
    • API
    • CLI
    • flake8 plugin (normal mode)
    • flake8 plugin (offline mode)
  • Write documentation when there's a new API or functionality

@andreoliwa andreoliwa changed the title feat(yaml): autofix .pre-commit-config.yaml feat(yaml): autofix .pre-commit-config.yaml (note: style changed!) Jan 2, 2022
@coveralls
Copy link

coveralls commented Jan 2, 2022

Pull Request Test Coverage Report for Build 1669453638

  • 190 of 200 (95.0%) changed or added relevant lines in 7 files are covered.
  • 15 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.7%) to 95.544%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/nitpick/plugins/yaml.py 66 67 98.51%
src/nitpick/documents.py 101 110 91.82%
Files with Coverage Reduction New Missed Lines %
src/nitpick/documents.py 7 87.02%
src/nitpick/style/core.py 8 84.72%
Totals Coverage Status
Change from base Build 1652745474: -0.7%
Covered Lines: 1992
Relevant Lines: 2060

💛 - Coveralls

@andreoliwa andreoliwa marked this pull request as ready for review January 7, 2022 21:37
@andreoliwa andreoliwa merged commit 352b53d into develop Jan 7, 2022
@andreoliwa andreoliwa deleted the autofix-pre-commit-config branch January 7, 2022 22:10
github-actions bot pushed a commit that referenced this pull request Jan 14, 2022
# [0.30.0](v0.29.0...v0.30.0) (2022-01-14)

### Bug Fixes

* style override on Windows ([#422](#422)) ([e7d2897](e7d2897))
* use current dir; don't climb dirs to find the project root ([#421](#421)) ([3c82e8c](3c82e8c))

### Features

* default pre-commit hook now runs "nitpick fix" ([cb4c242](cb4c242))
* **json:** autofix JSON files ([#429](#429)) ([4b58a03](4b58a03))
* nitpick init adds a [tool.nitpick] section ([36f4065](36f4065))
* **yaml:** autofix .pre-commit-config.yaml (note: style changed!) ([#434](#434)) ([352b53d](352b53d))
* **yaml:** autofix GitHub Workflow files ([#437](#437)) ([6af77c4](6af77c4))
* **yaml:** autofix YAML files ([#431](#431)) ([d8cc4b1](d8cc4b1))
@github-actions
Copy link

🎉 This PR is included in version 0.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Feature/fix is released label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Feature/fix is released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply changes to .pre-commit-config.yaml
2 participants