summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 13:21:39 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 13:21:46 -0700
commitd5309e6e2d8d8cd4244e24ac1773ce76434ce46d (patch)
treee5d97e44d5786f72c7b8275fafce69db424481f0 /python
parent7d90315279d02b0d02d566a2b84231986bc43e59 (diff)
downloadfatcat-d5309e6e2d8d8cd4244e24ac1773ce76434ce46d.tar.gz
fatcat-d5309e6e2d8d8cd4244e24ac1773ce76434ce46d.zip
pytest improvements: squelch raven deprecation; run pylint
Diffstat (limited to 'python')
-rw-r--r--python/Pipfile1
-rw-r--r--python/Pipfile.lock56
-rw-r--r--python/pytest.ini6
3 files changed, 28 insertions, 35 deletions
diff --git a/python/Pipfile b/python/Pipfile
index 321b2d50..09a5327c 100644
--- a/python/Pipfile
+++ b/python/Pipfile
@@ -11,6 +11,7 @@ name = "pypi"
[dev-packages]
pytest = ">=4"
pytest-pythonpath = "*"
+pytest-pylint = "*"
ipython = "*"
responses = ">=0.10"
pytest-cov = "*"
diff --git a/python/Pipfile.lock b/python/Pipfile.lock
index 3aaa0c66..9fa8f4ba 100644
--- a/python/Pipfile.lock
+++ b/python/Pipfile.lock
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256": "fa764b53404517e2f5e60b61fa8083f0ef50499e9b9b537994720abf85f2aac9"
+ "sha256": "e071955278eb60cf551da9368dbb8878ce90a4d4ece74f5fba9513793412f802"
},
"pipfile-spec": 6,
"requires": {
@@ -697,38 +697,19 @@
},
"psycopg2": {
"hashes": [
- "sha256:02445ebbb3a11a3fe8202c413d5e6faf38bb75b4e336203ee144ca2c46529f94",
- "sha256:0e9873e60f98f0c52339abf8f0339d1e22bfe5aae0bcf7aabd40c055175035ec",
- "sha256:1148a5eb29073280bf9057c7fc45468592c1bb75a28f6df1591adb93c8cb63d0",
- "sha256:259a8324e109d4922b0fcd046e223e289830e2568d6f4132a3702439e5fd532b",
- "sha256:28dffa9ed4595429e61bacac41d3f9671bb613d1442ff43bcbec63d4f73ed5e8",
- "sha256:314a74302d4737a3865d40ea50e430ce1543c921ba10f39d562e807cfe2edf2a",
- "sha256:36b60201b6d215d7658a71493fdf6bd5e60ad9a0cffed39906627ff9f4f3afd3",
- "sha256:3f9d532bce54c4234161176ff3b8688ff337575ca441ea27597e112dfcd0ee0c",
- "sha256:5d222983847b40af989ad96c07fc3f07e47925e463baa5de716be8f805b41d9b",
- "sha256:6757a6d2fc58f7d8f5d471ad180a0bd7b4dd3c7d681f051504fbea7ae29c8d6f",
- "sha256:6a0e0f1e74edb0ab57d89680e59e7bfefad2bfbdf7c80eb38304d897d43674bb",
- "sha256:6ca703ccdf734e886a1cf53eb702261110f6a8b0ed74bcad15f1399f74d3f189",
- "sha256:8513b953d8f443c446aa79a4cc8a898bd415fc5e29349054f03a7d696d495542",
- "sha256:9262a5ce2038570cb81b4d6413720484cb1bc52c064b2f36228d735b1f98b794",
- "sha256:97441f851d862a0c844d981cbee7ee62566c322ebb3d68f86d66aa99d483985b",
- "sha256:a07feade155eb8e69b54dd6774cf6acf2d936660c61d8123b8b6b1f9247b67d6",
- "sha256:a9b9c02c91b1e3ec1f1886b2d0a90a0ea07cc529cb7e6e472b556bc20ce658f3",
- "sha256:ae88216f94728d691b945983140bf40d51a1ff6c7fe57def93949bf9339ed54a",
- "sha256:b360ffd17659491f1a6ad7c928350e229c7b7bd83a2b922b6ee541245c7a776f",
- "sha256:b4221957ceccf14b2abdabef42d806e791350be10e21b260d7c9ce49012cc19e",
- "sha256:b90758e49d5e6b152a460d10b92f8a6ccf318fcc0ee814dcf53f3a6fc5328789",
- "sha256:c669ea986190ed05fb289d0c100cc88064351f2b85177cbfd3564c4f4847d18c",
- "sha256:d1b61999d15c79cf7f4f7cc9021477aef35277fc52452cf50fd13b713c84424d",
- "sha256:de7bb043d1adaaf46e38d47e7a5f703bb3dab01376111e522b07d25e1a79c1e1",
- "sha256:e393568e288d884b94d263f2669215197840d097c7e5b0acd1a51c1ea7d1aba8",
- "sha256:ed7e0849337bd37d89f2c2b0216a0de863399ee5d363d31b1e5330a99044737b",
- "sha256:f153f71c3164665d269a5d03c7fa76ba675c7a8de9dc09a4e2c2cdc9936a7b41",
- "sha256:f1fb5a8427af099beb7f65093cbdb52e021b8e6dbdfaf020402a623f4181baf5",
- "sha256:f36b333e9f86a2fba960c72b90c34be6ca71819e300f7b1fc3d2b0f0b2c546cd",
- "sha256:f4526d078aedd5187d0508aa5f9a01eae6a48a470ed678406da94b4cd6524b7e"
- ],
- "version": "==2.7.7"
+ "sha256:2433931723bf6be4bd342e003ffa9a1cef2cb4de7735d5b063fd554fd64a744c",
+ "sha256:2a0497c8ade1a5a0dc3d62b7f1a4fbcbccfa15d9ef69cce064119cd723566392",
+ "sha256:3ad3cf4732ff7d87dc12031836e5097fc42be767193771da90b8b5038cdca412",
+ "sha256:453c5bc0563c9b9601ef9243c095da9e327f24da6917b7c3ede8e0cd9dd9477d",
+ "sha256:49c5838d90e83217909db3789d30a105385b5e696ec5168cda645546c542f35a",
+ "sha256:6d849117337afd1aa0a74ab9a6c9d2160228d25d5babfa4d9a98bf4a4dad8062",
+ "sha256:8980dbabfb2ed0866b6bd5687d1407c3bccaac1f2f496f1206472108be69b92d",
+ "sha256:a286480430af972be9c30333c48883890dc8d87eab0d591e24975dcf99abff6c",
+ "sha256:bc7ec9ab1f33edd5db40edfb407aabdc92e573c4fcacd9093a9a6f3dd93c7af2",
+ "sha256:d303d9f88ec839a51b430bbec0f4a8314d0d2a53f760e67e95e25e39f6d6fb5f",
+ "sha256:e9836455931ac3d91b71312fa3bb2b9db8c42720a53b7de7db082406e4828585"
+ ],
+ "version": "==2.8"
},
"ptyprocess": {
"hashes": [
@@ -775,6 +756,15 @@
"index": "pypi",
"version": "==2.6.1"
},
+ "pytest-pylint": {
+ "hashes": [
+ "sha256:0dcb6cd429281f7493994e65324937bb295ef28f7632c046b45828380f4fe88a",
+ "sha256:45d2209b65989c8981289c8e75d0fde8c55e87cef27e97facb49f14773a8d3fb",
+ "sha256:7bfbb66fc6dc160193a9e813a7c55e5ae32028f18660deeb90e1cb7e980cbbac"
+ ],
+ "index": "pypi",
+ "version": "==0.14.0"
+ },
"pytest-pythonpath": {
"hashes": [
"sha256:63fc546ace7d2c845c1ee289e8f7a6362c2b6bae497d10c716e58e253e801d62"
diff --git a/python/pytest.ini b/python/pytest.ini
index afdebabc..1acfdfc8 100644
--- a/python/pytest.ini
+++ b/python/pytest.ini
@@ -1,10 +1,12 @@
-
[pytest]
ignore = setup.py
-# allow imports from files in current directory
python_paths = .
# search for 'test_*' functions in all python files, not just under tests
python_files = *.py
+
+addopts = --pylint --pylint-rcfile=.pylintrc --pylint-error-types=EF --pylint-jobs=4
+
+filterwarnings = ignore:.*common_exception_handling.*StopIteration:PendingDeprecationWarning