Commit Graph
55 Commits
Author SHA1 Message Date
OMEGARAZER 63b0607f58 bugbear B007 2023-01-28 02:04:06 -05:00
OMEGARAZER cf5f7bfd16 pep585 and pathlib updates 2023-01-25 22:23:59 -05:00
OMEGARAZER 804d0eb661 Fix failing test
Replace deleted user in test.
2023-01-21 22:01:18 -05:00
OMEGARAZER 5fbe64dc71 Move Imgur to API
Moves Imgur to use API with public Client-ID.
2023-01-21 17:49:31 -05:00
OMEGARAZER 8e60a12517 Imgur thumbnail coverage
Coverage for links posted to thumbnail variations.
2023-01-09 20:53:53 -05:00
OMEGARAZER 0f94c98733 Account for new gallery url
Coverage for gallery urls
2023-01-09 12:48:24 -05:00
OMEGARAZER 59c25d21df Update README.md
Updated the info on make-hard-links, no-dupes and search-existing to be more accurate to current functionality.
2023-01-06 23:20:10 -05:00
OMEGA_RAZERandGitHub aced164560 Update test.yml
Corrects .md ignore and adds markdown lint files as there would be no need to trigger python tests from them.
2023-01-01 23:11:43 -05:00
OMEGARAZER 3fdaf35306 Update black/isort 2023-01-01 08:59:34 -05:00
OMEGA_RAZERandGitHub 954df88c86 Merge branch 'aliparlakci:development' into development 2023-01-01 06:51:47 -05:00
OMEGARAZER b6edc36753 Update connector for 7 digit ID's 2023-01-01 04:09:11 -05:00
OMEGARAZER c4bece2f58 Add flake8 to precommit
adds flake8 to pre-commit and dev requirements.
2022-12-31 09:09:48 -05:00
OMEGARAZER 2bafb1b99b Consolidate flake8 settings
Consolidates sane flake8 settings to pyproject with the Flake8-pyproject plugin.

Does not change logic of test workflow but allows base settings to live in pyproject for anyone using flake8 as an external linter (e.g. vscode)

Also fixes some flake8 errors that were not being picked up by current testing, mostly unused imports.
2022-12-28 10:00:43 -05:00
OMEGA_RAZERandGitHub e92929ef07 Merge branch 'aliparlakci:development' into completion 2022-12-22 23:46:06 -05:00
OMEGA_RAZERandGitHub 7fef403757 Update completion.py 2022-12-20 13:32:43 -05:00
OMEGARAZER 2aea7d0d48 Move completion to pathlib 2022-12-20 13:05:50 -05:00
OMEGARAZER 57ac0130a6 revert init files 2022-12-20 12:16:31 -05:00
OMEGA_RAZERandGitHub da74096cde Update test_download_factory.py 2022-12-19 22:04:49 -05:00
OMEGA_RAZERandGitHub b3e4777206 Update download_factory.py
Attempt to fix #724

Narrows down characters available to extensions in the regex. Outside of  3 and 4, the only extensions that I can think of this doesn't hit are bz2 and 7z (which wasn't caught before).
2022-12-19 22:02:16 -05:00
OMEGARAZER 83f45e7f60 Standardize shebang and coding declaration
Standardizes shebang and coding declarations.

Coding matches what's used by install tools such as pip(x).

Removes a few init files that were not needed.
2022-12-19 18:32:37 -05:00
OMEGARAZER 5d3a539eda Fix install of completion if dirs missing
Fixes situations if completion directories are missing and adds tests for installer.
2022-12-19 17:54:34 -05:00
OMEGARAZER 2e2dfe671b Fix fish/zsh completions
fixes mistake in fish/zsh completions.
2022-12-19 17:33:07 -05:00
OMEGARAZER af6222e06c Cleanup tests
Cleans up test args on new tests.

Add log path to default config test so as not to mangle default log outside of tests.

Match setup functions to archive/clone.

Remove testing marker that was commited in error.
2022-12-17 20:35:58 -05:00
OMEGARAZER 8c01a9e7a0 Consolidate to pyproject
Consolidates configs to pyproject.toml and updates workflows accordingly as well as sets sane minimums for dev requirements.

adds version check to main script.
2022-12-16 23:45:36 -05:00
OMEGARAZER e32d322dbd Add shell completions 2022-12-16 14:56:44 -05:00
OMEGARAZER 4ba5df6b37 5xx error tests 2022-12-14 23:19:15 -05:00
OMEGARAZER ac91c9089c Add 5xx soft fail for clone/archive 2022-12-10 21:19:29 -05:00
OMEGARAZER 3aa740e979 Add soft fail on 5xx Prawcore errors. 2022-12-10 12:36:54 -05:00
OMEGARAZER d4bfe8fa19 Formatting cleanup
Cleanup some formatting from switch to Black
2022-12-03 14:49:39 -05:00
OMEGARAZER b30ced9be9 Redo Pylance typing changes 2022-11-30 21:48:10 -05:00
OMEGARAZER 69fa1f3f09 Pylance typing
Fix Pylance warnings for typing
2022-11-30 21:29:07 -05:00
OMEGA_RAZERandGitHub 324242a9bc Merge branch 'development' into development 2022-11-30 21:01:24 -05:00
OMEGARAZER ef7fcce1cc lint tests
Lint with [refurb](https://github.com/dosisod/refurb) using `--disable 126 --python-version 3.9`

Also update bats to 1.8.2 and bats-assets to 2.1.0. No changes to the tests, all still passing.
2022-11-30 18:05:10 -05:00
OMEGARAZER 831f49daa6 Refurb linting
Lint with [refurb](https://github.com/dosisod/refurb) using `--disable 126 --python-version 3.9`
2022-11-30 17:19:02 -05:00
OMEGA_RAZERandGitHub 7b7167643f Update README.md
Get rid of the double with.
2022-11-30 14:20:51 -05:00
OMEGARAZER 175513fbb7 Add console entry point for pipx support
Adds support for pipx with console entry point.

closes #702
2022-11-29 22:40:28 -05:00
OMEGARAZER 5cb3c2c635 Update README.md
Options not available to download, only archive.
2022-11-29 12:48:34 -05:00
OMEGARAZER fecb65c53a Lint run
Linting run through various things. Mostly markdownlint.
2022-11-29 11:48:24 -05:00
OMEGARAZER 9ee13aea23 Update tests
Suspended user in two tests.

Updated hashes and yt-dlp version.

Removed success check on known failure.
2022-11-26 14:36:19 -05:00
OMEGARAZER 42416db8b9 Fix PRAW deprecations
Fix depreciations in MultiredditHelper and CommentForest.
2022-11-21 21:37:59 -05:00
OMEGA_RAZERandGitHub 0a586425d0 Merge branch 'aliparlakci:development' into DelayForReddit 2022-11-11 17:38:16 -05:00
OMEGARAZER f3c7d796aa Update for other failing tests
Seems there was some overlap in test names that was contributing to the test errors. Updated hash and test name.
2022-11-08 15:37:21 -05:00
OMEGARAZER 77711c243a Fix test for deleted user on post
tested post now showing deleted as user causing tests to fail. Updated to working post.
2022-11-08 13:54:18 -05:00
OMEGARAZER 3c7f85725e Narrow except
Narrow except to AttributeError
2022-11-08 12:06:20 -05:00
OMEGARAZER dfc21295e3 Add Delay for Reddit support
Adds support for delayforreddit.com non-direct links.
2022-11-05 10:51:33 -04:00
OMEGARAZER dc5a9ef497 link_to depreciation coverage
Futureproof for link_to depreciation.
https://bugs.python.org/issue39950
2022-10-14 18:15:49 -04:00
OMEGARAZER b536a486b6 Imgur argument tests
Add tests for links that have arguments added to the extension field in retrieved image_dict
2022-09-28 13:21:05 -04:00
OMEGARAZER 02b6e66941 Imgur edge case coverage
Covers edge case of additional arguments on extension.

Also removed duplicate or redundant tests.
2022-09-28 00:55:10 -04:00
OMEGARAZERandGitHub ca33dee265 Update test_download_integration.py
The old change twice forget once. Forgot I changed it back to a SelfPost rather than Direct.
2022-09-23 10:00:41 -04:00
OMEGARAZERandGitHub 9c067ad74f Update test_connector.py
Update user that was banned/suspended with one that should not end up that way.
2022-09-23 02:59:16 -04:00
OMEGARAZERandGitHub 3906386838 Update test_download_integration.py
Update broken ID's in download integration test
2022-09-23 02:57:43 -04:00
OMEGARAZERandGitHub 7fef6c4023 Update test_clone_integration.py
Update broken ID's in clone integration test
2022-09-23 02:51:53 -04:00
OMEGARAZERandAli Parlakçı 8c3af7029e Update test_imgur.py 2021-11-16 17:05:46 +03:00
OMEGARAZERandAli Parlakçı bd802df38c Update test_imgur.py
Adding test for .giff/.gift imgur extension
2021-11-16 17:05:46 +03:00
OMEGARAZERandAli Parlakçı f05e909008 Stop videos from being downloaded as images
Erroneous .gifv extensions such as .giff or .gift resolve to a static image and are downloaded by the direct downloader. (ex: https://i.imgur.com/OGeVuAe.giff  )
2021-11-16 17:05:46 +03:00