OvenWerks | pep8 is horrible!! breaks things | 01:44 |
---|---|---|
Eickmeyer | oof | 01:52 |
OvenWerks | Eickmeyer: main thing is pep8 wants all imports in the same place and before anything else... but I need to import something, change the import path (add another directory depending on where we are installed) then impirt more. | 02:52 |
Eickmeyer | Importception? | 02:52 |
OvenWerks | also gi.require_version('Gtk', '3.0') has to be before import. | 02:53 |
OvenWerks | Eickmeyer: because studio-controls may be installed from a git clone, some sites may choose to install in /usr/local/ | 02:56 |
Eickmeyer | Yeah, that's fair. | 02:56 |
OvenWerks | The standard path for python modules/libs/packages does not include local | 02:56 |
OvenWerks | so I need to import enough to find out what path we are run from, create a path and isert it... then import my module | 02:58 |
OvenWerks | pep8 does not complain about that but autopep8 changes it. | 03:00 |
Eickmeyer | Well, that's good. | 03:01 |
OvenWerks | Eickmeyer: however, as the idea behind these changes is to make things work with 3.10, and it works ok... I used autopep8 against things and will fix those few things at the top and go through the output of pep8 fixing the rest | 03:02 |
OvenWerks | Mostly lines too long and if not something in -> if something not in | 03:03 |
Eickmeyer | There was a tool that converted some Python 2 to 3.. I wish something like that existed between 3.x versions. | 03:03 |
OvenWerks | In theory anything that works in 3.0 shoulld work in 3.* | 03:04 |
OvenWerks | breaking changes belong in 4.* | 03:04 |
Eickmeyer | Yeah, the guy I work for (mmikowski) likes to get snarky about the guy who wrote Python. | 03:04 |
OvenWerks | with good reason | 03:34 |
OvenWerks | ok one file passes pep8, two more to go... | 03:37 |
OvenWerks | If I ignore E402, Studio-controls passes too. | 05:09 |
OvenWerks | E402 is the "module level import not at top of file" error | 05:10 |
OvenWerks | Eickmeyer: everything is pep8-ed and seesm to run... but I need to test everything now. | 16:37 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!