1
0
Fork 0
mirror of synced 2024-10-02 01:57:20 +13:00
Commit graph

32 commits

Author SHA1 Message Date
OMEGARAZER
98aa3d7cb6
Quote cleanup
cleanup of some strings to prioritize outer double quotes when both are present or switch to double quotes when only single is present.
2023-02-18 16:06:32 -05:00
OMEGARAZER
5c57de7c7d
B907 Cleanup/updates
Cleanup some double quoted locations based on bugbear B907 and add same formatting to some other locations the emphasis may be helpful.
2023-02-18 15:58:05 -05:00
Serene
e5b184ef9a
Merge pull request #762 from OMEGARAZER/pyupgrade-lint 2023-02-12 11:45:00 +10:00
OMEGARAZER
a535fee574
Black update
Black version 23.1.0 updates
2023-02-02 11:50:47 -05:00
OMEGARAZER
247ea5ddd0
UP009 2023-01-28 23:56:23 -05:00
OMEGARAZER
cf5f7bfd16
pep585 and pathlib updates 2023-01-25 22:23:59 -05:00
Serene-Arc
8f17bcf43b Modify code to accept pluggable logging handlers 2023-01-08 15:21:57 +10:00
Serene-Arc
77a01e1627 Add tests for new option 2023-01-04 19:49:09 +10:00
Serene-Arc
4f07e92c5e Add option to classes 2023-01-04 19:04:31 +10:00
OMEGA_RAZER
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
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
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
3aa740e979
Add soft fail on 5xx Prawcore errors. 2022-12-10 12:36:54 -05:00
Serene-Arc
0873a4a2b2 Format according to the black standard 2022-12-03 15:11:17 +10: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
OMEGARAZER
42416db8b9
Fix PRAW deprecations
Fix depreciations in MultiredditHelper and CommentForest.
2022-11-21 21:37:59 -05:00
Jacob Chapman
1ad2b68e03
fix: Redirect to /subreddits/search
```
  File "/home/xk/github/o/bulk-downloader-for-reddit/bdfr/connector.py", line 413, in check_subreddit_status
    assert subreddit.id
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/models/reddit/base.py", line 34, in __getattr__
    self._fetch()
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/models/reddit/subreddit.py", line 584, in _fetch
    data = self._fetch_data()
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/models/reddit/subreddit.py", line 581, in _fetch_data
    return self._reddit.request("GET", path, params)
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/reddit.py", line 885, in request
    return self._core.request(
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/prawcore/sessions.py", line 330, in request
    return self._request_with_retries(
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/prawcore/sessions.py", line 266, in _request_with_retries
    raise self.STATUS_EXCEPTIONS[response.status_code](response)
prawcore.exceptions.Redirect: Redirect to /subreddits/search
```
2022-04-28 19:44:17 -05:00
Serene-Arc
0177b434c2 Add --subscribed option 2022-02-18 10:21:52 +10:00
Ali Parlakçı
483f179ccc
Merge pull request #482 from Serene-Arc/enhancement_481
Add ability to read IDs from files
2021-09-12 20:07:17 +03:00
Serene-Arc
87f283cc98 Fix backup config location 2021-09-03 19:24:28 +10:00
Serene-Arc
1a4ff07f78 Add ability to read IDs from files 2021-07-21 17:32:38 +10:00
Serene-Arc
2f8ca766c6 Update regex 2021-07-04 11:00:02 +10:00
Serene-Arc
d03a5e556e Stop writing new value to config 2021-07-04 10:59:35 +10:00
Serene-Arc
7f1c929a08 Add fallback scope 2021-07-03 13:54:26 +10:00
Serene-Arc
aa55a92791 Remove unused local variables 2021-07-02 14:58:56 +10:00
Serene-Arc
8db9d0bcc4 Add test for unauthenticated instances 2021-07-02 14:29:39 +10:00
Serene-Arc
bd34c37052 Add exception for special friends subreddit 2021-07-02 14:09:44 +10:00
Serene
6dcef83666
Add ability to disable modules (#434)
* Fix test name to match standard

* Rename file

* Add ability to disable modules

* Update README

* Fix missing comma

* Fix more missing commas. sigh...

Co-authored-by: Ali Parlakçı <parlakciali@gmail.com>
2021-06-06 13:47:56 +03:00
Serene-Arc
6b78a23484 Allow --user to be specified multiple times 2021-05-27 15:22:58 +10:00
Ali Parlakci
cf6905db28
Reverts #384 2021-05-21 00:22:44 +03:00
Serene-Arc
7016603763 Refactor out super class RedditConnector 2021-05-17 11:50:17 +10:00