RumovZ
a765ab95ec
Enable invalid-name globally in pylib ( #1454 )
2021-10-25 19:10:56 +10:00
RumovZ
d665dbc9a7
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
7ac1fa17e6
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
185e9acd22
split out remaining tags, stats, media and rendering
2021-07-10 23:16:18 +10:00
Damien Elmes
bb29ce88f3
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
8ca023048a
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
20432ccecf
fix new pylint raise-missing-from lint
2020-08-31 12:04:14 +10:00
Damien Elmes
760ce2282d
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
50fdf9b03d
storage->collection
2020-05-20 17:58:28 +10:00
Damien Elmes
8b94d69abc
bump minimum python version from 3.6 to 3.7
2020-01-07 18:34:36 +10:00
Damien Elmes
0aa01605d7
add buildhash to rspy and aqt, and check all three modules match
2020-01-03 15:15:18 +10:00
Damien Elmes
5876866565
tweaking the folder names again
...
hopefully that's the last of it
2020-01-03 07:48:38 +10:00