Skip to content

Releases: kurtmckee/chipshot

v0.7.0

09 Dec 14:48
v0.7.0
a53d07b
Compare
Choose a tag to compare

Added

  • Support CSS @charset prologues.

Fixed

  • Log relevant information where many exceptions are raised.
  • Catch exceptions instead of letting them bubble up as a crash.

v0.6.0

07 Dec 14:09
v0.6.0
506cc3d
Compare
Choose a tag to compare

Added

  • Use hashbang lines to determine the interpreter identity for extension-less scripts.
  • Support encoding comments near the tops of files for Python and Ruby.
  • Support Perl file extensions.

Changed

  • Allow exclusions to match directories, too.

v0.5.0

07 Dec 04:57
v0.5.0
79b0d08
Compare
Choose a tag to compare

Added

  • Support a top-level exclusions key to exclude specific files.

Changed

  • Rename the "extension" configuration key to "extensions".

Documentation

  • Add Changelog, License, and Colophon pages.
  • Fix TOML syntax in a code sample.
  • Add a link to the Chipshot repository.

Development

  • Add a Dependabot configuration to auto-update GitHub action versions.
  • Add more check-jsonschema pre-commit hooks.

v0.4.0

30 Nov 15:14
v0.4.0
e75836c
Compare
Choose a tag to compare

Fixed

  • Fix file writing, which wasn't rendering newlines correctly.

Changed

  • Determine the configured file encoding only if the file has content.

Documentation

  • Document how to create a new custom style.

v0.3.0

29 Nov 14:12
v0.3.0
6f5a926
Compare
Choose a tag to compare

Fixed

  • Fix a bug that prevented existing headers from being found
    if they followed a document prologue.

Changed

  • Standardize how configurations for styles, prologues, and templates are found.

    This helps ensure that the most specific configuration for a given file is always used.
    For example, code interacting with a file with two extensions (like .jinja.html)
    will consistently find a configuration for .jinja.html before .html.

  • Rename prolog to prologue everywhere.

  • Rename the configuration keys style and prolog to styles and prologues.

  • Eliminate the "default" config key.

Development

  • Add a workflow that tests Chipshot using GitHub actions.

v0.2.0

28 Nov 15:41
v0.2.0
7ed3b96
Compare
Choose a tag to compare

Added

  • Add two pre-commit hooks: check-headers and update-headers.

Changed

  • Allow template literals in the config file using the template key.
    Paths to template files can be defined in the template_path key.

  • When no configuration file is specified, .chipshot.toml will be loaded first (if it exists).
    pyproject.toml will still be loaded as a fallback if .chipshot.toml doesn't exist.

  • Rename the --debug flag to --verbose.

Documentation

  • Add initial documentation.

v0.1.0

24 Nov 18:35
v0.1.0
9e346d2
Compare
Choose a tag to compare

Initial release

  • Support Python 3.8 and higher.
  • Detect and retain existing byte order marks in files.
  • Detect and retain existing newlines in files.
  • Detect and retain existing headers in files that are sufficiently dissimilar to the rendered header.
  • Detect and retain existing prologues in files (like hashbangs in scripts, or XML declarations).
  • Support custom header styles by file extension.