From 83b58655ea72980c9633f393ff49f1e63d348c7c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 29 Sep 2019 23:07:49 -0400 Subject: [PATCH] Experiment with DeepSource --- .deepsource.toml | 13 +++++++++++++ README.rst | 2 +- docs/integration.rst | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .deepsource.toml diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 0000000..9af5e82 --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,13 @@ +version = 1 + +test_patterns = [ + '/tests/*' +] + +exclude_patterns = [ +] + +[[analyzers]] +name = 'python' +enabled = true +runtime_version = '3.x.x' diff --git a/README.rst b/README.rst index 9428997..343e762 100644 --- a/README.rst +++ b/README.rst @@ -182,8 +182,8 @@ Python 3 code (using the API_ and the requests_ library): .. code-block:: python - import requests import mwparserfromhell + import requests API_URL = "https://en.wikipedia.org/w/api.php" diff --git a/docs/integration.rst b/docs/integration.rst index b1c2df4..8054d9f 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -21,8 +21,8 @@ If you're using Pywikibot_, your code might look like this: If you're not using a library, you can parse any page with the following Python 3 code (using the API_ and the requests_ library): - import requests import mwparserfromhell + import requests API_URL = "https://en.wikipedia.org/w/api.php"