Huji created this task.
Huji added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
If you save a PEP8-uncompliant bot script in `./scripts/userscripts` and run
`pycodestyles` on it, you will not get any warnings back. But if you copy that
file elsewhere and run `pycodestyle` there, you will get warnings.
Reproduction steps
------------------
Save this file both in `/tmp` and in `./scripts/userscripts`:
name=sample.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
Note that last line in the file contains white-spaces, which is a violation
of PEP8.
Here is the output of `pycodestyles`, first in the `./scripts/userscripts/`
directory and next in `/tmp`:
➜ userscripts git:(master) pycodestyle T.py
➜ userscripts git:(master)
➜ userscripts git:(master) cd /tmp
➜ /tmp pycodestyle T.py
T.py:3:1: W293 blank line contains whitespace
T.py:3:1: W391 blank line at end of file
➜ /tmp
TASK DETAIL
https://phabricator.wikimedia.org/T253873
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Huji
Cc: Aklapper, pywikibot-bugs-list, Xqt, Huji, JohnsonLee01, Dijkstra, Zkhalido,
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs