Skip to content

Commit

Permalink
Fix style warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniils Petrovs committed Nov 30, 2023
1 parent 3d98f4f commit 59c848f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
48 changes: 25 additions & 23 deletions Formula/twspace-dl.rb
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
# frozen_string_literal: true

class TwspaceDl < Formula
include Language::Python::Virtualenv

desc "Download Twitter Space recordings"
homepage "https://github.com/HoloArchivists/twspace-dl"
url "https://files.pythonhosted.org/packages/77/42/943b3474b9e70940be1f7ac9a5a390a50fbd692c9b1d5346a14064ed2a14/twspace_dl-2023.1.22.1.tar.gz"
sha256 "050e78b4583374351c288114e3b01ab34b0b19ad2d4971d15c5519521cf3f2f4"
license "GPL-2.0-only"
desc 'Download Twitter Space recordings'

Check failure on line 6 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
homepage 'https://github.com/HoloArchivists/twspace-dl'

Check failure on line 7 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
url 'https://files.pythonhosted.org/packages/77/42/943b3474b9e70940be1f7ac9a5a390a50fbd692c9b1d5346a14064ed2a14/twspace_dl-2023.1.22.1.tar.gz'

Check failure on line 8 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
sha256 '050e78b4583374351c288114e3b01ab34b0b19ad2d4971d15c5519521cf3f2f4'

Check failure on line 9 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
license 'GPL-2.0-only'

Check failure on line 10 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

depends_on "python3"
depends_on 'python3'

Check failure on line 12 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

resource "certifi" do
url "https://files.pythonhosted.org/packages/37/f7/2b1b0ec44fdc30a3d31dfebe52226be9ddc40cd6c0f34ffc8923ba423b69/certifi-2022.12.7.tar.gz"
sha256 "35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"
resource 'certifi' do

Check failure on line 14 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
url 'https://files.pythonhosted.org/packages/37/f7/2b1b0ec44fdc30a3d31dfebe52226be9ddc40cd6c0f34ffc8923ba423b69/certifi-2022.12.7.tar.gz'

Check failure on line 15 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
sha256 '35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3'

Check failure on line 16 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
end

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/96/d7/1675d9089a1f4677df5eb29c3f8b064aa1e70c1251a0a8a127803158942d/charset-normalizer-3.0.1.tar.gz"
sha256 "ebea339af930f8ca5d7a699b921106c6e29c617fe9606fa7baa043c1cdae326f"
resource 'charset-normalizer' do

Check failure on line 19 in Formula/twspace-dl.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
url 'https://files.pythonhosted.org/packages/96/d7/1675d9089a1f4677df5eb29c3f8b064aa1e70c1251a0a8a127803158942d/charset-normalizer-3.0.1.tar.gz'
sha256 'ebea339af930f8ca5d7a699b921106c6e29c617fe9606fa7baa043c1cdae326f'
end

resource "idna" do
url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz"
sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"
resource 'idna' do
url 'https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz'
sha256 '814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4'
end

resource "requests" do
url "https://files.pythonhosted.org/packages/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz"
sha256 "98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf"
resource 'requests' do
url 'https://files.pythonhosted.org/packages/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz'
sha256 '98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf'
end

resource "urllib3" do
url "https://files.pythonhosted.org/packages/c5/52/fe421fb7364aa738b3506a2d99e4f3a56e079c0a798e9f4fa5e14c60922f/urllib3-1.26.14.tar.gz"
sha256 "076907bf8fd355cde77728471316625a4d2f7e713c125f51953bb5b3eecf4f72"
resource 'urllib3' do
url 'https://files.pythonhosted.org/packages/c5/52/fe421fb7364aa738b3506a2d99e4f3a56e079c0a798e9f4fa5e14c60922f/urllib3-1.26.14.tar.gz'
sha256 '076907bf8fd355cde77728471316625a4d2f7e713c125f51953bb5b3eecf4f72'
end

def install
virtualenv_create(libexec, "python3")
virtualenv_create(libexec, 'python3')
virtualenv_install_with_resources
end

Expand All @@ -47,6 +49,6 @@ def caveats
end

test do
assert shell_output("python3 test.py")
assert shell_output('python3 test.py')
end
end
2 changes: 2 additions & 0 deletions Formula/ytarchive.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class Ytarchive < Formula
desc 'Archive live and upcoming Youtube.com live streams'
homepage 'https://github.com/Kethsar/ytarchive'
Expand Down

0 comments on commit 59c848f

Please sign in to comment.