Skip to content

Commit

Permalink
General cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Dec 7, 2022
1 parent 8edcd93 commit 2ba823b
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 35 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ repos:
- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
- id: docstrfmt
require_serial: true
rev: v1.5.1

- repo: https://github.com/pycqa/flake8
Expand Down
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
4 changes: 0 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
include CHANGES.rst LICENSE.txt README.rst praw_license.txt
include asyncpraw/praw.ini
include "asyncpraw/images/PRAW logo.png"
include docs/Makefile
recursive-include docs *.png *.py *.rst
recursive-include tests *.json *.py
recursive-include tests/files *
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ extend_exclude = ['./docs/examples/']
[tool.isort]
profile = 'black'
skip_glob = '.venv*'

[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = "ignore::DeprecationWarning"
testpaths = "tests"
5 changes: 0 additions & 5 deletions pytest.ini

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
with open(path.join(HERE, "README.rst"), encoding="utf-8") as fp:
README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp:
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
VERSION = re.search(r'__version__ = "([^"]+)"', fp.read()).group(1)

extras = {
"ci": ["coveralls"],
Expand Down
2 changes: 1 addition & 1 deletion tools/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main():
line = sys.stdin.readline()
if not line.startswith(COMMIT_PREFIX):
sys.stderr.write(
f"Commit message does not begin with `{COMMIT_PREFIX}`.\nMessage:\n\n{line}"
f"Commit message does not begin with '{COMMIT_PREFIX}'.\nMessage:\n\n{line}"
)
return 1
print(line[len(COMMIT_PREFIX) : -1])
Expand Down
2 changes: 1 addition & 1 deletion tools/check_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DocumentationChecker:
ModmailObject, # is never publicly accessed
}
HAS_CODE_BLOCK = re.compile(r".. code-block::")
HAS_ATTRIBUTE_TABLE = re.compile(r"Attribute[ ]+Description")
HAS_ATTRIBUTE_TABLE = re.compile(r"Attribute +Description")
METHOD_EXCEPTIONS = {"from_data", "id_from_url", "parse", "sluggify", "gild"}
subclasses = set()

Expand Down
Empty file removed tools/generate_award_table.py
Empty file.
2 changes: 1 addition & 1 deletion tools/set_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

CHANGELOG_HEADER = (
"Change Log\n==========\n\n"
"Async PRAW follows `semantic versioning <http://semver.org/>`_.\n\n"
"Async PRAW follows `semantic versioning <https://semver.org/>`_.\n\n"
)
UNRELEASED_HEADER = "Unreleased\n----------\n\n"

Expand Down
2 changes: 1 addition & 1 deletion tools/static_word_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class StaticChecker:
def __init__(self, replace: bool):
"""Initialize a :class:`.StaticChecker` instance.
:param replace: Whether or not to make replacements.
:param replace: Whether to make replacements.
"""
self.full_file_checks = [
Expand Down
20 changes: 3 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
[tox]
envlist = py36,py37,py38
skip_missing_interpreters = true
skipsdist = true
envlist = py37,py38,py39,py310
skip_missing_interpreters = false

[testenv]
deps =
betamax >=0.8, <0.9
betamax-matchers >=0.3.0, <0.5
pytest >=2.7.3
flake8
commands =
pytest
flake8 --exclude=.eggs,build,docs
passenv =
prawtest_client_id
prawtest_client_secret
prawtest_password
prawtest_refresh_token
prawtest_test_subreddit
prawtest_username
prawtest_user_agent
extras = dev

0 comments on commit 2ba823b

Please sign in to comment.