Commit graph

50 commits

Author SHA1 Message Date
Hugo Osvaldo Barrera
c3262d88cc Mark unused variables as such 2025-11-06 01:05:48 +01:00
Hugo Osvaldo Barrera
1502f5b5f4 Execute one assertion per line 2025-09-20 12:45:56 +02: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
24cb49f64c Remove superfluous exception parens 2023-02-10 16:57:39 +01:00
Hugo Osvaldo Barrera
5b8f00e720 Sort imports 2021-07-25 18:35:47 +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
d6c1b1847c Fix a few linting errors 2021-06-12 10:59:44 +02:00
Bernhard Reiter
9b5e01ab38
Improve storage/test_filesystem
with one additional test and fixing of the documentation.
2021-05-20 12:50:05 +02:00
Bernhard Reiter
804b9f0429
Add tests to filesystem storage for file ignorance
that ignore .tmp files even when fileext is empty.
Prepares to make the filesystem storage more universal as part of #881 .
2021-05-19 17:40:04 +02:00
Hugo Osvaldo Barrera
d2d41e5df1 Use black to auto-format the codebase 2021-05-06 19:28:54 +02:00
Hugo Osvaldo Barrera
b1b4dd92fe Sort imports
I don't want to ever have to sort imports again. It's a poor use of
developer time. Automate this with a pre-commit hook, and check this on
CI.

Developers: I suggest you configure your editor to use
`reorder_python_imports`. It uses the standard sorting, and detects
first/third party libs well.
2020-06-09 14:34:45 +02:00
Hugo Osvaldo Barrera
308289febf Remove python2 leftover code 2020-06-08 18:40:33 +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
Hugo Osvaldo Barrera
cb4ba5b38c Fix linting errors
One more green checkmark! 
2020-06-08 15:39:01 +02:00
Markus Unterwaditzer
a285c555f0 Ignore fs collections that have subfolders (#591)
Fix #588
2017-03-09 13:40:27 +01:00
Markus Unterwaditzer
76f794eef3 Module restructuring 2017-02-27 21:19:27 +01:00
Markus Unterwaditzer
73e2ccf46a Create always safe hrefs
The set of safe characters was inspired by the set of safe characters in
URLs.

Fixes #229
2015-07-12 23:42:49 +02:00
Markus Unterwaditzer
cbc00630f2 style fix 2015-03-08 15:35:56 +01:00
Markus Unterwaditzer
264023c30d Fix bug in filesystem's create_collection 2015-03-08 15:00:51 +01:00
Markus Unterwaditzer
91d83d1b79 Style fixes 2015-02-09 15:45:01 +01:00
Markus Unterwaditzer
6207d9419c Don't actually tolerate this 2015-02-08 19:55:47 +01:00
Markus Unterwaditzer
ef18e78ca0 style fixes 2015-02-08 19:53:05 +01:00
Michael Adler
208453408f Introduce post_hook for filesystem storage 2015-02-08 19:37:10 +01:00
Markus Unterwaditzer
6d91c95b30 Fix broken import 2015-02-08 14:50:13 +01:00
Markus Unterwaditzer
847f3b5142 Expect test to fail on case insensitive filesystems 2015-02-08 14:47:35 +01:00
Markus Unterwaditzer
4ddcb0fef4 Retry with random filename if UID is rejected.
see #173
2015-01-30 15:14:39 +01:00
Markus Unterwaditzer
5ce0d97f91 Remove copyright headers 2015-01-21 13:02:30 +01:00
Markus Unterwaditzer
e76fd29aec Unify collection creation 2015-01-01 22:01:23 +01:00
Markus Unterwaditzer
06a701bc10 Handle collections correctly
Fix #132

Passing the collections parameter used to mean that the storage should
append its value to the URL or path. This was a leaky abstraction for
the reasons explained in #132.

The new behavior removes this meaning from this parameter. Vdirsyncer
now maintains a cache of discovered collections.
2014-12-15 21:57:56 +01:00
Markus Unterwaditzer
566a988f32 Remove indirection for get_storage_args fixture 2014-12-01 00:11:23 +01:00
Markus Unterwaditzer
3fccfe19e7 Enforce alphabetic import order 2014-10-29 23:03:58 +01:00
Markus Unterwaditzer
9e12e29db6 Properly deal with invalid filename characters
Fix #110
2014-09-03 20:35:31 +02:00
Markus Unterwaditzer
201c840e88 Import beautification 2014-06-19 00:07:54 +02:00
Markus Unterwaditzer
c1eb55c241 Copyright and contributor stuff
Fix #60
2014-05-22 12:50:43 +02:00
Markus Unterwaditzer
98a9748392 Ident is now a property of Item 2014-05-14 15:40:06 +02:00
Markus Unterwaditzer
bb579a8879 Fix some imports 2014-05-02 19:30:38 +02:00
Markus Unterwaditzer
e66b43c839 Be Python 3 compatible
Not that anybody actually uses Python 3, but this helps very much with
finding obscure bugs.
2014-04-16 15:28:01 +02:00
Markus Unterwaditzer
65e6397806 Flake8 2014-04-11 15:49:15 +02:00
Markus Unterwaditzer
9b78360515 Use safer write to avoid corruption of data. 2014-04-09 18:36:46 +02:00
Markus Unterwaditzer
e9f1273fa8 Fix case where path exists but is not a dir 2014-04-06 13:49:08 +02:00
Markus Unterwaditzer
46910dbc4f Fix #20 2014-04-06 13:43:34 +02:00
Markus Unterwaditzer
d14dfcd5f8 More copyright headers
[ci skip]
2014-04-01 21:09:40 +02:00
Markus Unterwaditzer
1ff6469767 Remove ugly fixture, at least make it local 2014-03-28 21:42:07 +01:00
Markus Unterwaditzer
17f9ccc895 Remove unittest inheritance 2014-03-17 19:30:39 +01:00
Markus Unterwaditzer
8c120d84ef More tests 2014-03-09 20:13:51 +01:00
Markus Unterwaditzer
03b6d11ac8 Deduplication 2014-03-09 17:08:07 +01:00
Markus Unterwaditzer
bcc3dc560e Flake 8 2014-03-09 03:40:24 +01:00
Markus Unterwaditzer
ef786c3586 Add basic discover tests 2014-03-09 03:35:32 +01:00
Markus Unterwaditzer
26a3932289 Fix tmpdir teardown 2014-03-03 17:55:11 +01:00
Markus Unterwaditzer
5c91f48f0e Move tests outside package
These tests will get so big we won't want to distribute them to users
2014-03-02 19:21:15 +01:00
Renamed from vdirsyncer/tests/storage/test_filesystem.py (Browse further)