Commit graph

2338 commits

Author SHA1 Message Date
pre-commit-ci[bot]
246568f149 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-07-14 11:55:08 +02:00
Justin !
439f1e6f50 Run ruff --fix vdirsyncer 2023-07-14 11:55:08 +02:00
Justin !
ef8e8980d1 Add Typing annotation to cli/config.py 2023-07-14 11:55:08 +02:00
Justin !
08616abbb5 Add typing annotation to cli/__init__.py 2023-07-14 11:55:08 +02:00
Hugo Osvaldo Barrera
4237ff863c Slightly improve docs for configuring google 2023-07-13 12:34:57 +02:00
Hugo Osvaldo Barrera
1a6ad54543 ci: Standardise jobs a bit 2023-07-13 12:33:58 +02:00
Claudio Noguera
203468fd25 Update config.rst
This is the way it actually works.
With web application, a 400 is returned. With desktop it works fine
2023-07-13 12:32:00 +02:00
Hugo Osvaldo Barrera
6368af1365 ci: remove superfluous export
We're now using a virtualenv.
2023-06-26 19:25:53 +02:00
Hugo Osvaldo Barrera
b38306bdd0 ci: Ensure that minimal job runs on older Python
Fixes: https://github.com/pimutils/vdirsyncer/issues/1077
2023-06-26 19:25:40 +02:00
Hugo Osvaldo Barrera
d26557bee3 Python 3.10 and 3.11 are also supported
We've been running 3.11 on CI for a while now.
2023-06-26 19:04:23 +02:00
Hugo Osvaldo Barrera
b9f749467c Add forward-compatibility for storage type parameter
The Rust rewrite of vdirsyncer requires explicitly specifying what type
of "filesystem" storage is being used. These can be either
"filesystem/icalendar" or "filesystem/vcard".

Add forward-compatibility with this upcoming format, by allowing (but
ignoring) a slash and anything after it.

This makes configuration files that have been updated for the Rust
implementation compatible with the Python implementation.

Closes: https://github.com/pimutils/vdirsyncer/pull/1075
2023-06-26 19:01:52 +02:00
Hugo Osvaldo Barrera
7e5910a341 ci: use virtualenvs for jobs that use pip
Pip now refuses to tamper with the system python installation.
2023-06-26 19:00:32 +02:00
Hugo Osvaldo Barrera
7403182645 Update changelog with recent updates 2023-06-26 18:50:00 +02:00
Henning Sudbrock
bad381e5ba Fix link to GNU Guix package in documentation
Fixes #1071
2023-05-21 10:47:07 +02:00
pre-commit-ci[bot]
700586d959 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0)
- [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.2.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.2.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.249 → v0.0.265](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.249...v0.0.265)
2023-05-09 11:52:48 +02:00
Hugo Osvaldo Barrera
c1d3efb6b8 Make broken test as xfail 2023-05-09 11:52:48 +02:00
Hugo Osvaldo Barrera
c55b969791 Add some type hints 2023-05-09 11:52:48 +02:00
Florian Preinstorfer
079a156bf8 Remove superflous string quotes 2023-03-30 14:03:32 +02:00
Hugo Osvaldo Barrera
242216d85a Brain typo 2023-03-28 23:23:44 +02:00
Hugo Osvaldo Barrera
b1ef68089b Properly populate cache during SingleFileStorage._at_once
The call to `list` was never awaited and the stream never drained, so
the cache remained empty.
2023-03-10 12:27:48 +01:00
Enrico Guiraud
85ae33955f
Prevent single file storage from performing unnecessary N^2 loop
For single file storage we wrap the logic of get_multi with the
at_once context manager so that `self.list()` (which is called by
`self.get()`) actually caches the items rather than re-computing
them at every call.

This should largely mitigate the performance issue describe at
https://github.com/pimutils/vdirsyncer/issues/818 . The issue
discussion also contains more background about this patch.
2023-03-09 17:59:20 -06:00
Timo Ludwig
54a90aa5dd Document caveats of Google contacts storage
- Group labels are not mapped to CATEGORIES property
- BDAY property is missing when date is incomplete
2023-03-06 09:57:00 +01:00
Hugo Osvaldo Barrera
443ae3d3e7 Fix crash when using auth certs
Fixes: https://github.com/pimutils/vdirsyncer/issues/1033
2023-02-28 16:21:28 +01:00
pre-commit-ci[bot]
3bf9a3d684 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.0 → v1.0.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.0...v1.0.1)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.246 → v0.0.249](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.246...v0.0.249)
2023-02-21 10:57:28 +01:00
Hugo Osvaldo Barrera
2138c43456 Update docs for Google storages
References: https://github.com/pimutils/vdirsyncer/pull/985
References: https://github.com/pimutils/vdirsyncer/issues/975
Closes: https://github.com/pimutils/vdirsyncer/issues/1028
Closes: https://github.com/pimutils/vdirsyncer/issues/808
2023-02-16 23:17:27 +01:00
Hugo Osvaldo Barrera
5a46c93987 mypy: Drop unnecessary rule exclusion 2023-02-16 16:51:12 +01:00
Hugo Osvaldo Barrera
180f91f0fe Move mypy config to pyproject.toml 2023-02-16 16:51:12 +01:00
Hugo Osvaldo Barrera
6443d37c97 Move pytest config to pyproject.toml 2023-02-16 16:51:12 +01:00
pre-commit-ci[bot]
13ca008380 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-mypy: v0.991 → v1.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.991...v1.0.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.243 → v0.0.246](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.243...v0.0.246)
2023-02-14 10:09:36 +01:00
Hugo Osvaldo Barrera
24cb49f64c Remove superfluous exception parens 2023-02-10 16:57:39 +01:00
Hugo Osvaldo Barrera
defe8e2591 Fix broken BSD link
pkgsrc.se is no more.
2023-02-10 16:54:08 +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
pre-commit-ci[bot]
e20a65793e [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.238 → v0.0.243](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.238...v0.0.243)
2023-02-07 12:21:17 +01:00
pre-commit-ci[bot]
df14865f43 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.237 → v0.0.238](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.237...v0.0.238)
2023-01-31 10:09:31 +01:00
Hugo Osvaldo Barrera
f45ecf6ad0 Simplify management of documentation dependencies 2023-01-31 01:11:24 +01:00
Hugo Osvaldo Barrera
72bcef282d Remove another unnecessary wrapper 2023-01-31 01:11:24 +01:00
Hugo Osvaldo Barrera
3a56f26d05 Drop unnecessary wrapping 2023-01-31 01:11:24 +01:00
Hugo Osvaldo Barrera
4dd17c7f59 This make target is gone; use pytest directly 2023-01-31 01:11:04 +01:00
Hugo Osvaldo Barrera
73f2554932 Check typos via pre-commit
So this runs more often (and also in CI).
2023-01-31 01:11:04 +01:00
Hugo Osvaldo Barrera
627f574777 Remove unnecessary param 2023-01-31 01:11:04 +01:00
Hugo Osvaldo Barrera
37a7f9bea8 This test is not async 2023-01-31 00:21:04 +01:00
Hugo Osvaldo Barrera
d2d1532883 Remove indirection 2023-01-31 00:21:04 +01:00
Hugo Osvaldo Barrera
0dcef26b9d Update build jobs with more descriptive names 2023-01-31 00:21:04 +01:00
Hugo Osvaldo Barrera
d646357cd3 Use ruff for code checking and linting
`isort` is failing in pre-commit.ci right now, so this might be good
timing.

See: https://whynothugo.nl/journal/2023/01/20/notes-on-ruff/
2023-01-31 00:19:14 +01:00
Hugo Osvaldo Barrera
8c6c0be15a This mutation of the control variable is intended 2023-01-31 00:19:14 +01:00
Hugo Osvaldo Barrera
dfc29db312 Use dict literal instead of dict() call 2023-01-31 00:19:14 +01:00
Hugo Osvaldo Barrera
a41cf64b6c Update ArchLinux CI setup 2023-01-31 00:19:14 +01:00
Hugo Osvaldo Barrera
a2eda52b71 Hottub expect DOS-style extensions 2023-01-31 00:19:14 +01:00
Hugo Osvaldo Barrera
61006f0685 Improve installation documentation
`pipx` is a lot simpler on any setup where this it is available.
2023-01-26 18:53:19 +01:00
Hugo Osvaldo Barrera
9b48bccde2 Fix return type
Fixes: https://github.com/pimutils/vdirsyncer/issues/1036
2023-01-26 18:01:08 +01:00