Commit graph

26 commits

Author SHA1 Message Date
Hugo Osvaldo Barrera
a910e9f446 Stop marking wheels as universal
We don't support Python 2, so they're not universal.
2021-08-04 00:18:22 +02:00
Hugo Osvaldo Barrera
f3714fc493 Add type hints and configure mypy
Configure mypy as a pre-commit hook and add all type hints necessary for
mypy to pass.

There's still more work to be done here typing a lot more code, but this
provides a clear starting point.
2021-08-03 19:23:37 +02:00
Hugo Osvaldo Barrera
0556e53e0c Use isort to reorder python imports
reorder-python-imports is hard to set up correctly.

isort is a lot simpler to set to set up it locally, and is kinda
becoming the standard in the python world.

The import style remains the same, and is tweaked to minimise conflicts.
2021-07-25 18:35:04 +02:00
Hugo Osvaldo Barrera
a9f1a5195a Tweak output when running tests 2021-06-26 19:59:56 +02:00
Hugo Osvaldo Barrera
1a1f6f0788 Initial async support
Add asyncio to the storage backends and most of the codebase. A lot of
it merely uses asyncio APIs, but still doesn't actually run several
things concurrently internally. Further improvements will be added on
top of these changes

Thanks to  Thomas Grainger (@graingert) for a few useful pointers
related to asyncio.
2021-06-26 13:40:35 +02:00
Hugo Osvaldo Barrera
5a97307a2f Remove unecessary exclusion 2021-06-12 13:08:25 +02:00
Hugo Osvaldo Barrera
320ac6020b Tweak linter to ignore less issues 2021-06-12 12:58:13 +02:00
Hugo Osvaldo Barrera
47caebe843 Simplify coverage handling
- Always install coverage tools.
- Show coverage if all tests pass.
- Less conditional code.
2020-06-09 14:57:58 +02:00
Hugo Osvaldo Barrera
0f3b2e74c0 Test xandikos running it in docker
The main advantage here is that its dependencies are TOTALLY separate
from vdirsyncer's, keeping the runtime environment for vdirsyncer
cleaner.

It also makes testing locally not only possible, but fast and pleasant.
2020-06-09 09:49:03 +02:00
Hugo Osvaldo Barrera
7e4a0be674 Upgrade flake8
Update to the latest flake8, and fix all code warnings related to that.
2020-06-08 18:40:31 +02:00
Markus Unterwaditzer
dde30c22be Ignore new flake8 linters 2018-02-05 15:45:31 +01:00
Markus Unterwaditzer
250bd974f3 Flake8: ignore eggs dir 2018-02-05 15:45:09 +01:00
Markus Unterwaditzer
7f80251527 Test development Radicale again (#428)
* Revert "Don't test development Radicale"

This reverts commit 7a5241101e.

* Fix Radicale test setup

* Radicale is very tolerant

* Simplify test such that output is more predictable

* Runtime version check for Radicale

* Don't create user explicitly

* stylefix

* Shorter tracebacks

Travis logs are very hard to read
2017-05-30 09:12:00 +02:00
Markus Unterwaditzer
c15a04a1de Expand flake8 to submodules 2017-03-08 10:08:24 +01:00
Markus Unterwaditzer
ae2542c992 flake8: Enable B902 2017-03-02 21:30:42 +01:00
Hugo Osvaldo Barrera
76d7dcd281 Check for W503 2017-02-20 21:53:56 -03:00
Markus Unterwaditzer
1790fdd7cc Turn on all opinionated checks 2017-02-20 00:51:50 +01:00
Markus Unterwaditzer
b2422dbea6 Reorganize testsuite
The end goal here is to independently measure coverage of each of those
testsuites.
2017-01-18 22:42:42 +01:00
Markus Unterwaditzer
68d2647e38 Add flake8-bugbear 2016-10-01 16:01:12 +02:00
Markus Unterwaditzer
12f5d32251 Fix up pytest deprecation warning 2016-08-26 08:35:22 +02:00
Markus Unterwaditzer
7f124494ee Exclude servers from flake8 2016-03-11 12:14:10 +01:00
Markus Unterwaditzer
893f29dbaf Flake8 fixes 2016-01-14 02:51:22 +01:00
Markus Unterwaditzer
5f682cadb9 Make server config management generic 2015-09-24 17:01:23 +02:00
Markus Unterwaditzer
665b0cefaf Move ignored warnings into setup.cfg 2015-02-23 14:31:35 +01:00
Markus Unterwaditzer
9d9f193513 Move testserver-specific code into different repos 2014-04-12 16:23:32 +02:00
Markus Unterwaditzer
ca92d9a428 Copyright headers, more docstrings 2014-02-28 14:44:07 +01:00