Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

Commit fdf756b

Browse files
committed
Bump versions. Tweak pre-commit. pre-commit run --all-files
1 parent e63adb2 commit fdf756b

5 files changed

Lines changed: 23 additions & 24 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
---
22
exclude: '(venv|.vscode)' # regex
33
repos:
4+
- repo: https://github.com/asottile/pyupgrade
5+
rev: v2.7.3
6+
hooks:
7+
- id: pyupgrade
8+
args: ['--py37-plus']
49
- repo: https://github.com/asottile/reorder_python_imports
510
rev: v2.3.5
611
hooks:
712
- id: reorder-python-imports
8-
- repo: local
9-
hooks:
10-
- id: flynt
11-
name: flynt
12-
entry: flynt
13-
args: ['--fail-on-change', '--quiet']
14-
types: [python]
15-
language: python
16-
additional_dependencies: ['flynt']
1713
- repo: https://github.com/psf/black
1814
rev: 20.8b1
1915
hooks:
@@ -28,14 +24,15 @@ repos:
2824
hooks:
2925
- id: pydocstyle
3026
- repo: https://gitlab.com/pycqa/flake8
31-
rev: 3.8.3
27+
rev: 3.8.4
3228
hooks:
3329
- id: flake8
3430
- repo: https://github.com/pre-commit/pre-commit-hooks
35-
rev: v3.2.0
31+
rev: v3.3.0
3632
hooks:
3733
- id: check-byte-order-marker
3834
- id: check-case-conflict
35+
- id: check-executables-have-shebangs
3936
- id: check-docstring-first
4037
- id: check-json
4138
- id: check-merge-conflict
@@ -46,18 +43,21 @@ repos:
4643
- id: debug-statements
4744
- id: detect-private-key
4845
- id: end-of-file-fixer
46+
- id: file-contents-sorter
47+
files: .gitignore
4948
- id: mixed-line-ending
5049
args: ['--fix=lf']
50+
- id: pretty-format-json
5151
- id: requirements-txt-fixer
5252
- id: sort-simple-yaml
5353
- id: trailing-whitespace
5454
- repo: https://github.com/pre-commit/mirrors-mypy
55-
rev: v0.782
55+
rev: v0.790
5656
hooks:
5757
- id: mypy
5858
args: ['--no-strict-optional', '--ignore-missing-imports', '--python-version', '3.7']
5959
- repo: https://github.com/adrienverge/yamllint.git
60-
rev: v1.24.2
60+
rev: v1.25.0
6161
hooks:
6262
- id: yamllint
6363
- repo: https://github.com/Lucas-C/pre-commit-hooks
@@ -66,11 +66,10 @@ repos:
6666
- id: remove-tabs
6767
exclude_types: [makefile, binary]
6868
- repo: https://github.com/danielhoherd/pre-commit-hooks
69-
rev: ac0637d7febb88d1b01f876e47bb5224a9a63eae
69+
rev: fdcede7a5c8ea762c903f242279112161cf35d9f
7070
hooks:
7171
- id: CVE-2017-18342
7272
- id: remove-en-dashes
7373
- id: remove-unicode-non-breaking-spaces
7474
- id: remove-unicode-zero-width-non-breaking-spaces
7575
- id: remove-unicode-zero-width-space
76-
- id: sort-gitignore

plexdl/__init__.py

100755100644
File mode changed.

plexdl/cli.py

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_logger(ctx, param, value):
3030
@option("-u", "--username", help="Your Plex username (env PLEXDL_USER)", envvar="PLEXDL_USER")
3131
@option("-p", "--password", help="Your Plex password (env PLEXDL_PASS)", envvar="PLEXDL_PASS")
3232
@option("-r", "--relay/--no-relay", default=False, help="Output relay servers along with direct servers")
33-
@option("--item-prefix", default=str(""), help="String to prefix to each item (eg: curl -o)", envvar="PLEXDL_ITEM_PREFIX")
33+
@option("--item-prefix", default="", help="String to prefix to each item (eg: curl -o)", envvar="PLEXDL_ITEM_PREFIX")
3434
@option("--server-info/--no-server-info", default=False, help="Output summary about each server")
3535
@option("--summary/--no-summary", default=False, help="Output summary about each result")
3636
@option("--ratings/--no-ratings", default=False, help="Output rating information for each result")

plexdl/plexdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
locale.setlocale(locale.LC_ALL, "")
1313

1414

15-
class Client(object):
15+
class Client:
1616
"""A client interface to plex for finding direct download URLs."""
1717

1818
def __init__(self, **kwargs):

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ plexdl = 'plexdl.cli:main'
1919
[tool.poetry.dependencies]
2020
python = "^3.7"
2121
click = "^7.1.2"
22-
PlexAPI = "^4.0.0"
22+
PlexAPI = "^4.1.2"
2323
humanfriendly = "^8.2"
2424
importlib_metadata = "^1.6.1"
25-
requests = "^2.23.0"
25+
requests = "^2.24.0"
2626

2727
[tool.poetry.dev-dependencies]
28-
black = "^19.10b0"
29-
flake8 = "^3.7"
30-
tox = "^3.15.2"
31-
pytest = "^5.4.3"
28+
black = "^20.8b1"
29+
flake8 = "^3.8.4"
30+
tox = "^3.20.1"
31+
pytest = "^6.1.1"
3232

3333
[tool.black]
3434
line-length = 132
@@ -53,5 +53,5 @@ commands =
5353
ignore = E265
5454
"""
5555
[build-system]
56-
requires = ["poetry>=1.0.2"]
56+
requires = ["poetry>=1.1.4"]
5757
build-backend = "poetry.masonry.api"

0 commit comments

Comments
 (0)