Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A linter for Sceptre stack configs#638

Merged
asottile merged 1 commit into
pre-commit:masterpre-commit/pre-commit.com:masterfrom
zaro0508:add-sceptrelintzaro0508/pre-commit.com:add-sceptrelintCopy head branch name to clipboard
Mar 8, 2022
Merged

A linter for Sceptre stack configs#638
asottile merged 1 commit into
pre-commit:masterpre-commit/pre-commit.com:masterfrom
zaro0508:add-sceptrelintzaro0508/pre-commit.com:add-sceptrelintCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.