Skip to content

A linter for Sceptre stack configs - #638

Merged
asottile merged 1 commit into
pre-commit:masterfrom
zaro0508:add-sceptrelint
Mar 8, 2022
Merged

asottile merged 1 commit into
pre-commit:masterfrom
zaro0508:add-sceptrelint

Conversation

@zaro0508

@zaro0508 zaro0508 commented Mar 1, 2022

Copy link
Copy Markdown
Contributor

Add a reference to the Sceptre pre-commit linter. This linter checks
sceptre stack configurations[1]

[1] https://docs.sceptre-project.org/dev/docs/stack_config.html

Add a reference to the Sceptre pre-commit linter.  This linter checks
sceptre stack configurations[1]

[1] https://docs.sceptre-project.org/dev/docs/stack_config.html
Comment thread all-repos.yaml
- https://github.com/shssoichiro/oxipng
- https://github.com/datarootsio/databooks
- https://github.com/standard/standard
- https://github.com/Sceptre/sceptrelint

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/Sceptre/sceptrelint/blob/aee222f5565cb91748b8af23f09a0916600888e1/.pre-commit-hooks.yaml#L5-L6

  • pass_filenames: true is the default
  • always_run: true generally should not be set -- pre-commit will pass filenames for changed things to the tool so it runs selectively (otherwise when no files are changed the tool will receive 0 filenames and probably do the wrong thing)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the tip @asottile . Those configs have been removed.

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile
asottile merged commit ae15d19 into pre-commit:master Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants