Hugo Osvaldo Barrera
c3262d88cc
Mark unused variables as such
2025-11-06 01:05:48 +01:00
cbb4e314f6
cli/discover: add implicit config to pair for collection creation
...
Adds support for auto-creating collections when they exist only on
one side and `implicit = 'create'` is set in the pair config.
2025-11-06 00:04:22 +00:00
Hugo Osvaldo Barrera
a4ceabf80b
Organise imports
...
And update imports from deprecated locations.
2025-09-20 13:05:14 +02:00
Hugo Osvaldo Barrera
3488f77cd6
Remove unused variables
2025-09-20 13:05:14 +02:00
Hugo Osvaldo Barrera
19120422a7
Use ternary operator for trivial assignment
2025-09-20 13:05:14 +02:00
Hugo Osvaldo Barrera
1502f5b5f4
Execute one assertion per line
2025-09-20 12:45:56 +02:00
Hugo Osvaldo Barrera
a4d4bf8fd1
Normalise pytest syntax
2025-09-20 12:45:56 +02:00
Hugo Osvaldo Barrera
e3b2473383
Use list expansion instead of concatenation
2025-09-20 12:45:56 +02:00
Hugo Osvaldo Barrera
424cfc5799
ruff: ignore false positive
2025-09-20 12:45:56 +02:00
Hugo Osvaldo Barrera
29312e87c5
Close status even if assertions fail
2025-09-20 12:45:56 +02:00
Samuel Maynard
605f878f9b
test_retry: remove unneeded decorator
...
Co-authored-by: Hugo <hugo@whynothugo.nl>
2025-09-13 12:22:25 +03:00
samm81
0d741022a9
http: add rate limiting (mainly for google)
...
- google calendar uses the `403` and `429` codes to perform rate limiting [1][2]. this pr adds `tenacity` to perform exponential back off as suggested in google calendar's docs [3].
[1]: https://developers.google.com/workspace/calendar/api/guides/errors#403_rate_limit_exceeded
[2]: https://developers.google.com/workspace/calendar/api/guides/errors#429_too_many_requests
[3]: https://developers.google.com/workspace/calendar/api/guides/quota#backoff
2025-09-12 16:20:44 +07:00
Hugo Osvaldo Barrera
b5d3b7e578
Apply auto-fixes for RUF rule
2025-08-29 10:17:44 +02:00
Hugo Osvaldo Barrera
9677cf9812
Simplify some statements
2025-08-29 10:17:44 +02:00
Hugo Osvaldo Barrera
20cc1247ed
ruff: apply auto-fixes
2025-08-29 10:03:24 +02:00
Hugo Osvaldo Barrera
78f41d32ce
Explicitly close status database
...
Using `__del__` often closes the database on a different thread, which
is not supported by the sqlite module and produces a different warning.
Explicitly close the status database everywhere it is used.
2025-08-25 17:33:20 +02:00
Hugo Osvaldo Barrera
164559ad7a
Remove references to obsolete event_loop fixture
...
It's gone from the latest pytest-asyncio.
2025-08-25 17:12:21 +02:00
Hugo Osvaldo Barrera
2b4496fea4
Update linting tools
2025-04-07 18:42:07 +02:00
Hugo Osvaldo Barrera
cce8fef8de
Auto-format using ruff
2025-04-07 18:40:34 +02:00
Hugo Osvaldo Barrera
a934d5ec66
Keep test for duplicate consecutive keys
...
See: https://github.com/pimutils/vdirsyncer/pull/1153
2024-12-21 16:49:50 +01:00
Hugo Osvaldo Barrera
688d6f907f
Update deprecated usages of hypothesis
2024-12-09 01:30:44 +01:00
Mike A.
35f299679f
Rewrite guess auth test for unsupported status
2024-09-11 12:04:05 +02:00
Mike A.
67e1c0ded5
Make tests pass
2024-09-11 12:04:05 +02:00
Hugo Osvaldo Barrera
42c5dba208
Pre-commit autoupdate
2024-01-31 19:08:25 +01:00
Jason Cox
7a387b8efe
Require matching BEGIN and END lines in vobjects
...
Raise an error when parsing a vobject that has mismatched `BEGIN` and
`END` lines (e.g., `BEGIN:FOO` followed by `END:BAR`) or missing `END`
lines (e.g., `BEGIN:FOO` with no subsequent `END:FOO`).
Fixes #1102 .
2023-12-13 10:31:32 -05:00
Kai Herlemann
889e1f9ea2
Implement a no_delete flag
...
See: https://github.com/pimutils/vdirsyncer/pull/1090
2023-11-29 23:50:32 +08:00
Hugo Osvaldo Barrera
b50f9def00
Ensure type annotations are backwards compatible
...
Related: https://github.com/pimutils/todoman/issues/544
2023-10-29 16:04:23 +01:00
Hugo Osvaldo Barrera
301aa0e16f
pre-commit run --all
2023-09-24 12:41:56 +02:00
Hugo Osvaldo Barrera
c1d3efb6b8
Make broken test as xfail
2023-05-09 11:52:48 +02:00
Hugo Osvaldo Barrera
24cb49f64c
Remove superfluous exception parens
2023-02-10 16:57:39 +01:00
pre-commit-ci[bot]
e11fa357ff
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-07 12:21:17 +01:00
Hugo Osvaldo Barrera
37a7f9bea8
This test is not async
2023-01-31 00:21:04 +01:00
Hugo Osvaldo Barrera
b26e771865
Fix bad syntax for adding finalizers
2022-11-07 17:21:10 +01:00
Hugo Osvaldo Barrera
2fbb0ab7a5
Clean up some invalid TLS configuration branches
2022-09-20 23:01:50 +02:00
Hugo Osvaldo Barrera
60352f84fe
Untangle auth handling
...
This was a bit entangled and messed up due to recent changes.
2022-09-20 23:01:50 +02:00
Hugo Osvaldo Barrera
b61095ad47
Async fixtures must be marked as such
...
pytest_asyncio now uses strict mode by default.
2022-09-20 23:01:47 +02:00
Hugo Osvaldo Barrera
843c58b92e
Ignore flake8-bugbear false positive
...
See: https://github.com/PyCQA/flake8-bugbear/issues/269
2022-08-09 21:10:17 +02:00
pre-commit-ci[bot]
60c3b59552
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-03-21 22:41:54 +00:00
Corey Hinshaw
4dd15716db
Adds shell strategy to config fetch params to run command string in a shell
2021-12-09 11:17:43 -05:00
pre-commit-ci[bot]
2c551afafb
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-12-06 20:14:52 +00:00
Hugo Osvaldo Barrera
c77d750ef6
Drop etesync
...
The current [experimental] implementation is stale, and hasn't been
maintained for a long time. Regrettably, not even its tests still work,
and there nobody interested in maintaining it.
If anyone is interested in re-implementing this in a third-party
package, I can consider adding support for pluggable storages.
2021-10-05 22:13:59 +02:00
Hugo Osvaldo Barrera
2e35214421
Remove unused import
2021-09-13 21:27:06 +02:00
pre-commit-ci[bot]
f5c2026dcf
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-09-13 18:57:16 +00:00
Hugo Osvaldo Barrera
955f434d9d
Also test syncing with an href with a colon
...
Since this was the actual problematic character.
2021-08-18 18:41:00 +02:00
Hugo Osvaldo Barrera
889183ec89
I think this makes sense
2021-08-18 18:20:04 +02:00
Hugo Osvaldo Barrera
0650cc3bc2
Add test for #918
...
We're doing something wrong with UID/href quoting/unquoting, but I've
yet to figure out what.
2021-08-18 18:20:04 +02:00
Hugo Osvaldo Barrera
6281e7a237
Radicale now passes for this test
2021-08-18 18:20:04 +02:00
Hugo Osvaldo Barrera
1081a15895
Work around quirk in Fastmail
...
They seem to sort the parameters in an RRULE in a specific order, so
just use that by default to avoid any mismatch.
2021-08-16 22:29:16 +02:00
Hugo Osvaldo Barrera
cf1d082628
Use context managers for aio connectors
...
Not sure why we didn't do this initially, but this ensures that we
always close all connectors properly, and also gives much clearer scope
regarding their life-cycles.
2021-08-16 21:40:11 +02:00
Hugo Osvaldo Barrera
fed1ee69c3
Run pyupgrade
2021-08-04 19:58:59 +02:00