Commit Graph

419 Commits

Author SHA1 Message Date
3d9b35ca8b
Hello Woodpecker 2023-03-28 16:09:43 +02:00
302204b787
In case reservation is cached and it's no longer reserved: unreserve-it. 2023-03-13 16:15:51 +01:00
4a75c8d819
Don't configure logging in arguments_handling. 2023-03-13 16:12:11 +01:00
7fa84874bc
typing 2023-03-13 15:50:46 +01:00
a06e02d00e
Also cache excluded files to avoid reparsing them too. 2023-03-13 15:50:46 +01:00
20a32fb658
From 800k to 2k calls to __eq__ (tested on python-docs-fr). 2023-03-13 15:50:46 +01:00
9dc5e28764
Change PoFileStats lazy loading strategy to avoid storing actual entries in pickle cache. 2023-03-13 15:50:45 +01:00
15efeaa3de
Saving two lines with suppress! 2023-03-13 15:50:45 +01:00
045aea56c8
Renaming variables for readability. 2023-03-13 13:49:33 +01:00
186e35ffba
PoDirectoryStats can only be compared to itself. 2023-03-13 13:46:16 +01:00
e180762be6
Disambiguate: this store file stats, not files. 2023-03-13 13:28:06 +01:00
a2e198c49c
FIX: This if was invalid, leading to duplicate files in self.files. 2023-03-13 13:25:40 +01:00
1c983004e3
FIX: Lazily parse po files to avoid parsing ignored ones. 2023-03-13 13:15:42 +01:00
3a928ef053
Found a regression: potodo now parses ignored files even if it don't use them. 2023-03-13 13:10:39 +01:00
ece04451e2
Don't hardcode git.afpy.org 2023-03-13 13:10:39 +01:00
0162f63a22
Bump version (cache file incompatibility). 2023-03-13 09:26:16 +01:00
0ffab39591
Move logging a bit for readability. 2023-03-13 09:21:15 +01:00
372cbf1c85
Dropping now unused line. 2023-03-13 09:20:03 +01:00
8b4a6d7dec
The function declaration was way longer than its body. 2023-03-13 09:18:59 +01:00
2bf68dc6e7
Move argparse definitions to argument_handling.py 2023-03-13 09:17:22 +01:00
10c21bbc44
The function declaration was way longer than its body. 2023-03-13 09:14:56 +01:00
d620496b61
It's not needed to store PoFileStats along with their paths, they know it. 2023-03-13 09:11:55 +01:00
e85286bf63
Do all the filtering at the same place. 2023-03-13 09:00:59 +01:00
edecf0fa4c
Faster tests (from 6.007 s ± 1.061 s to 456.8 ms ± 72.1 ms).
By avoiding forks.
2023-03-13 08:59:20 +01:00
6c9994705a
Proofreading json writer. 2023-03-12 22:53:55 +01:00
e8fcd50d22
Saving two lines. 2023-03-12 22:42:38 +01:00
ebd2a2271c
Small deduplication. 2023-03-12 22:39:05 +01:00
bedc1597c8
Rename for consistency. 2023-03-12 22:37:17 +01:00
72778eec4c
Formatting goes with formatting. 2023-03-12 22:24:17 +01:00
37737a2af6
Deduplicate code. 2023-03-12 22:21:10 +01:00
f2fd1ffcc1
Deduplicate code. 2023-03-12 22:17:00 +01:00
7749ed2bd7
Untangle printing procedure. 2023-03-12 22:11:17 +01:00
c93cbc8760
Matching files gets its own output function. 2023-03-12 22:10:08 +01:00
fb72a694a8
Merge 'print_dir_stats' where it's used. 2023-03-12 22:00:58 +01:00
4e316e00e5
Shorter syntax. 2023-03-12 21:56:49 +01:00
90b876279e
Unused argument. 2023-03-12 21:55:15 +01:00
f224a10fa5
Simplify 'hide_reserved' handling. 2023-03-12 21:54:04 +01:00
7b566e0e4b
Unused argument. 2023-03-12 21:51:06 +01:00
7aa68d9db3
Use a selector function instead of 6 arguments. 2023-03-12 21:49:19 +01:00
ede1868dbb
Split human and json outputs. 2023-03-12 21:27:33 +01:00
649fe3c3b4
Extract 'data acquisition' step. 2023-03-12 21:15:57 +01:00
856a1142b0
Move total_translated and total_entries in PoProjectStats. 2023-03-12 21:11:35 +01:00
acf226b2bc
I don't think this condition is usefull: False is never looked up in this list. 2023-03-12 21:05:16 +01:00
8aa6dca2da
De Morgan helping unindenting. 2023-03-12 20:46:07 +01:00
c21f0c9093
Merge 'buffer_add' function. 2023-03-12 20:42:55 +01:00
65e669bc28
Move translated and total as attributes of PoDirectoryStats. 2023-03-12 20:42:55 +01:00
db35f55277
Hello PoDirectoryStats. 2023-03-12 20:42:54 +01:00
06c240a83d
Run tests in fixtures/ dir to avoid potodo to find vanishing files in .tox/. 2023-03-12 20:42:54 +01:00
d38a28a5ab
Rename for consistency: That's not an instance per directory but per project. 2023-03-12 11:36:03 +01:00
86f961a311
Reservation formatting to PoFileStats class. 2023-03-11 23:02:32 +01:00