Commit Graph

21 Commits

Author SHA1 Message Date
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