Skip to content

Commit

Permalink
Fixing f-string (grantmcconnaughey#30)
Browse files Browse the repository at this point in the history
* Fixing f-string

In a previous commit broke builds.py:109 into two lines so that flake8 would stop complaining about line length. This introduced a bug where the second line was not an f-string. This PR makes both lines f-strings.

* Bumping version to 0.7.3

* Using python's implied line continuation
  • Loading branch information
scriptsrc authored Jun 17, 2021
1 parent cca0f2c commit 7fc36b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lintly/builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ def send_slack_notification(self):

logger.info("SLACK_WEBHOOK found. Building slack message.")

violation_blocks = list()

# Add Header
message_header = f"{self.config.format} violations found in {self.project} PR {self.config.pr}"
message_summary = f"{len(self._all_violations)} *{self.config.format}* violations found in " \
"{len(self._all_violations.keys())} files in `{self.project}` PR {self.config.pr}."
message_summary = (f"{len(self._all_violations)} *{self.config.format}* violations found in "
f"{len(self._all_violations.keys())} files in `{self.project}` PR {self.config.pr}.")

violation_blocks = list()
violation_blocks.extend([
{
"type": "header",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read(*parts):

setup(
name='ttam-lintly',
version='0.7.2',
version='0.7.3',
url='https://github.com/23andMe/Lintly',
license='MIT',
author='Veda Nandusekar',
Expand Down

0 comments on commit 7fc36b2

Please sign in to comment.