RumovZ
805beef792
Enable invalid-name globally in pylib ( #1454 )
2021-10-25 19:10:56 +10:00
RumovZ
e37ccfdfa3
PEP8 pylib ( #1443 )
...
* PEP8 scheduler/base.py
* PEP8 _backend/__init__.py
* PEP8 _backend/genbackend.py
* PEP8 _backend/genfluent.py
* PEP8 scheduler/__init__.py
* PEP8 __init__.py
* PEP8 _legacy.py
* PEP8 syncserver/__init__.py
- Make 'ip' a good name
- Overrule `global col` being identified as a constant
* PEP8 syncserver/__main__.py
* PEP8 buildinfo.py
* Implement `DeprecatedNamesMixin` for modules
* PEP8 browser.py
* PEP8 config.py
* PEP8 consts.py
* PEP8 db.py
* Format
* Improve AttributeError for DeprecatedNamesMixin
* print the line that imported/referenced the legacy module attr (dae)
* DeprecatedNamesMixinStandalone -> ...ForModule
2021-10-22 20:39:49 +10:00
Damien Elmes
e86e0a64ea
move proto files into separate py_library in same namespace
...
Will allow importing the Protobuf without pulling in the rest of
the library. This is not a full PEP420 namespace, and the wheel still
bundles everything - it just makes things easier in a Bazel workspace.
I originally tried with PEP420, but it required more invasive changes,
and I ran into issues with mypy.
2021-07-11 14:51:25 +10:00
Damien Elmes
e3b53fc078
split out remaining tags, stats, media and rendering
2021-07-10 23:16:18 +10:00
Damien Elmes
bf7528d90a
minor code cleanups with pyupgrade
...
- pyupgrade --py38-plus --keep-runtime-typing --keep-percent-format
- third-party mpv and winpaths excluded
2021-02-11 09:43:40 +10:00
Damien Elmes
db24dcf9a7
add coding specifier to anki/__init__.py
...
older gettext versions will complain otherwise (was breaking Windows CI)
2020-11-11 21:51:11 +10:00
Damien Elmes
204db71586
fix new pylint raise-missing-from lint
2020-08-31 12:04:14 +10:00
Damien Elmes
fa9aa82830
previous fs encoding test didn't catch things like latin-1
...
https://forums.ankiweb.net/t/unicodeencodeerror-when-syncing/1746
2020-08-03 11:29:07 +10:00
Damien Elmes
068cc43095
storage->collection
2020-05-20 17:58:28 +10:00
Damien Elmes
9232414095
bump minimum python version from 3.6 to 3.7
2020-01-07 18:34:36 +10:00
Damien Elmes
a113887d56
add buildhash to rspy and aqt, and check all three modules match
2020-01-03 15:15:18 +10:00
Damien Elmes
2a00e0a6b0
tweaking the folder names again
...
hopefully that's the last of it
2020-01-03 07:48:38 +10:00