Skip to content

v0.3: Adds a new option to ignore folders

Choose a tag to compare

@frgfm frgfm released this 20 Dec 20:34
· 17 commits to main since this release
d80cf77

This minor release adds the possibility to ignore folders & renames a previous option.

Highlights

Folder ignoring 🙈

Until now you could ignore files, but let's be honest: most tools allow you to ignore folders. While patterns are not supported yet, one feature was added to ignore entire folders:

uses: frgfm/validate-python-headers@main
with:
  license: 'Apache-2.0'
  owner: 'François-Guillaume Fernandez'
  starting-year: 2022
  ignore-folders: '.github/'

Enjoy!

Tighter cleaning 🧹

In order to improve the quality of the project, the following tools were added:

  • autoflake: to automatically apply flake8
  • bandit: spots vulnerabilities in the code

Additionally, precommit hooks were added to minimize the forth-and-forth with the CI and have clean commits upfront 😄

Breaking changes

Renamed parameter

The ignores option was renamed into ignore-files to have a more explicit naming and better align with new features. The following action:

uses: frgfm/validate-python-headers@main
with:
  license: 'Apache-2.0'
  owner: 'François-Guillaume Fernandez'
  starting-year: 2022
  ignores: '__init__.py,version.py'

now needs to be modified as follows if you use the latest version:

uses: frgfm/validate-python-headers@main
with:
  license: 'Apache-2.0'
  owner: 'François-Guillaume Fernandez'
  starting-year: 2022
  ignore-files: '__init__.py,version.py'

What's Changed

Breaking Changes 🛠

  • feat: Adds the option to ignore folders by @frgfm in #11

New Features 🚀

Bug Fixes 🐛

Improvements

  • style: Adds autoflake, bandit & precommit by @frgfm in #12

Full Changelog: v0.2...v0.3