Skip to content

Commit

Permalink
Merge pull request #256 from praw-dev/upgrade_setup
Browse files Browse the repository at this point in the history
Upgrade setup
  • Loading branch information
LilSpazJoekp committed Oct 22, 2023
2 parents b34487d + 065d4ef commit 951c81c
Show file tree
Hide file tree
Showing 122 changed files with 4,397 additions and 4,528 deletions.
7 changes: 0 additions & 7 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ body:
- id: credential-check
attributes:
label: |
The `Reddit()` initialization in my code example does not include the following parameters to prevent credential leakage:
The `Reddit()` initialization in my code example does not include the following parameters to prevent credential leakage:
`client_secret`, `password`, or `refresh_token`.
options:
- label: "Yes"
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ This pull request provides ...

## References

-
-
64 changes: 33 additions & 31 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
default_language_version:
python: python3.11
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
hooks:
- id: end-of-file-fixer
exclude: .*\.txt
rev: v4.5.0

- repo: local
hooks:
- id: static_word_checks
Expand All @@ -24,36 +19,43 @@ repos:
pass_filenames: false
types: [ python ]

- repo: https://github.com/psf/black
hooks:
- id: black
rev: 23.9.1

- repo: https://github.com/LilSpazJoekp/docstrfmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: docstrfmt
rev: v1.5.1
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: [ --fix=no ]
- id: name-tests-test
args: [ --pytest-test-first ]
files: ^tests/integration/.*\.py|tests/unit/.*\.py$
- id: sort-simple-yaml
files: ^(\.github/workflows/.*\.ya?ml|\.readthedocs.ya?ml)$
- id: trailing-whitespace

- repo: https://github.com/pycqa/flake8
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: flake8
rev: 6.1.0
- id: toml-sort-fix
files: ^(.*\.toml)$

- repo: https://github.com/ikamensh/flynt/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: flynt
args:
- '-ll'
- '1000'
rev: '1.0.1'
- id: ruff
args: [ --exit-non-zero-on-fix, --fix ]
files: ^(asyncpraw/.*.py)$

- repo: https://github.com/pycqa/isort
- repo: https://github.com/psf/black
hooks:
- id: isort
rev: 5.12.0
- id: black
rev: 23.9.1

- repo: https://github.com/pycqa/pydocstyle
- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
- id: pydocstyle
files: asyncpraw/.*
rev: 6.3.0
- id: docstrfmt
rev: v1.5.1
245 changes: 0 additions & 245 deletions .pylintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ python:
extra_requirements:
- readthedocs
path: .
version: '3.8'
version: 3.8
version: 2
8 changes: 4 additions & 4 deletions asyncpraw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Async PRAW, an abbreviation for "Asynchronous Python Reddit API Wrapper", is a python
package that allows for simple access to Reddit's API. Async PRAW aims to be as easy to
use as possible and is designed to follow all of Reddit's API rules. You have to give an
use as possible and is designed to follow all of Reddit's API rules. You have to give a
useragent, everything else is handled by Async PRAW so you needn't worry about violating
them.
More information about Async PRAW can be found at https://github.com/praw-dev/asyncpraw
More information about Async PRAW can be found at https://github.com/praw-dev/asyncpraw.
"""

from .const import __version__ # NOQA
from .reddit import Reddit # NOQA
from .const import __version__
from .reddit import Reddit
Loading

0 comments on commit 951c81c

Please sign in to comment.