Update get_weekly_artist_charts docstring (#311)

Update get_weekly_artist_charts docstring
This commit is contained in:
Hugo van Kemenade 2019-09-26 11:01:14 +03:00 committed by GitHub
commit 7383fa20cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 47 additions and 21 deletions

36
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,36 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v1.24.0
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
language_version: python3.7
# override until resolved: https://github.com/psf/black/issues/402
files: \.pyi?$
types: []
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.8
hooks:
- id: flake8
additional_dependencies: [flake8-2020]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
language_version: python3.7
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.4.1
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml

View file

@ -13,12 +13,12 @@ env:
- secure: SsKJoJwtDVWrL5xxl9C/gTRy6FhfRQQNNAFOogl9mTs/WeI2t9QTYoKsxLPXOdoRdu4MvT3h/B2sjwggt7zP81fBVxQRTkg4nq0zSHlj0NqclbFa6I5lUYdGwH9gPk/HWJJwXhKRDsqn/iRw2v+qBDs/j3kIgPQ0yjM58LEPXic= - secure: SsKJoJwtDVWrL5xxl9C/gTRy6FhfRQQNNAFOogl9mTs/WeI2t9QTYoKsxLPXOdoRdu4MvT3h/B2sjwggt7zP81fBVxQRTkg4nq0zSHlj0NqclbFa6I5lUYdGwH9gPk/HWJJwXhKRDsqn/iRw2v+qBDs/j3kIgPQ0yjM58LEPXic=
matrix: matrix:
fast_finish: true
include: include:
- python: 3.6 - python: 3.7
env: TOXENV=lint env: TOXENV=lint
- python: 3.7 - python: 3.7
env: TOXENV=py37 env: TOXENV=py37
dist: xenial
- python: 3.6 - python: 3.6
env: TOXENV=py36 env: TOXENV=py36
- python: 3.5 - python: 3.5
@ -27,10 +27,8 @@ matrix:
env: TOXENV=pypy3 env: TOXENV=pypy3
- python: 3.8-dev - python: 3.8-dev
env: TOXENV=py38dev env: TOXENV=py38dev
dist: xenial
allow_failures: allow_failures:
- env: TOXENV=pypy3 - env: TOXENV=pypy3
fast_finish: true
install: install:
- travis_retry pip install --upgrade pip - travis_retry pip install --upgrade pip
@ -51,7 +49,7 @@ deploy:
tags: false tags: false
repo: pylast/pylast repo: pylast/pylast
branch: master branch: master
condition: $TOXENV = py37 condition: $TOXENV = lint
user: hugovk user: hugovk
password: password:
secure: "OCNT7Sf7TpS6aKuqBXEWxJZjmEpdERTBp/yllOd9xnpFt2ZL96CyKtAhPA8zu5OP58QFEZSafZRfXYJoz78RDrx3gOdRXCFT00vXIMnjVvrAlieNEHCVAT0kRW9lYK1Cf5baHYsOYIs6EZf2fEAhdzvmh83G4Y1Y+FPR9tA6uy8=" secure: "OCNT7Sf7TpS6aKuqBXEWxJZjmEpdERTBp/yllOd9xnpFt2ZL96CyKtAhPA8zu5OP58QFEZSafZRfXYJoz78RDrx3gOdRXCFT00vXIMnjVvrAlieNEHCVAT0kRW9lYK1Cf5baHYsOYIs6EZf2fEAhdzvmh83G4Y1Y+FPR9tA6uy8="
@ -62,7 +60,7 @@ deploy:
tags: true tags: true
repo: pylast/pylast repo: pylast/pylast
branch: master branch: master
condition: $TOXENV = py37 condition: $TOXENV = lint
user: hugovk user: hugovk
password: password:
secure: "OCNT7Sf7TpS6aKuqBXEWxJZjmEpdERTBp/yllOd9xnpFt2ZL96CyKtAhPA8zu5OP58QFEZSafZRfXYJoz78RDrx3gOdRXCFT00vXIMnjVvrAlieNEHCVAT0kRW9lYK1Cf5baHYsOYIs6EZf2fEAhdzvmh83G4Y1Y+FPR9tA6uy8=" secure: "OCNT7Sf7TpS6aKuqBXEWxJZjmEpdERTBp/yllOd9xnpFt2ZL96CyKtAhPA8zu5OP58QFEZSafZRfXYJoz78RDrx3gOdRXCFT00vXIMnjVvrAlieNEHCVAT0kRW9lYK1Cf5baHYsOYIs6EZf2fEAhdzvmh83G4Y1Y+FPR9tA6uy8="

View file

@ -1251,7 +1251,7 @@ class _Chartable:
""" """
Returns the weekly artist charts for the week starting from the Returns the weekly artist charts for the week starting from the
from_date value to the to_date value. from_date value to the to_date value.
Only for Tag or User. Only for User.
""" """
return self.get_weekly_charts("artist", from_date, to_date) return self.get_weekly_charts("artist", from_date, to_date)

View file

@ -4,9 +4,8 @@ Integration (not unit) tests for pylast.py
""" """
import unittest import unittest
from flaky import flaky
import pylast import pylast
from flaky import flaky
from .test_pylast import PyLastTestCase, load_secrets from .test_pylast import PyLastTestCase, load_secrets

View file

@ -7,12 +7,10 @@ import sys
import time import time
import unittest import unittest
import pylast
import pytest import pytest
from flaky import flaky from flaky import flaky
import pylast
PY37 = sys.version_info[:2] == (3, 7) PY37 = sys.version_info[:2] == (3, 7)

View file

@ -1,8 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import mock import mock
import pytest
import pylast import pylast
import pytest
def mock_network(): def mock_network():

10
tox.ini
View file

@ -23,10 +23,6 @@ deps = ipdb
commands = {posargs} commands = {posargs}
[testenv:lint] [testenv:lint]
deps = deps = pre-commit
flake8 commands = pre-commit run --all-files
pep8-naming skip_install = true
black
commands =
flake8 .
black --check --diff .