ruff/crates/ruff_cli/src
Thomas de Zeeuw 1c638264b2
Keep track of when files are last seen in the cache (#5214)
## Summary

And remove cached files that we haven't seen for a certain period of
time, currently 30 days.

For the last seen timestamp we actually use an `u64`, it's smaller on
disk than `SystemTime` (which size is OS dependent) and fits in an
`AtomicU64` which we can use to update it without locks.

## Test Plan

Added a new unit test, run by `cargo test`.
2023-06-23 15:40:35 +02:00
..
bin Add support for providing command-line arguments via `argfile` (#4087) 2023-04-25 17:58:21 -06:00
commands Initialize caches for packages and standalone files (#5237) 2023-06-21 17:29:09 +00:00
args.rs Add option (`-o`/`--output-file`) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
cache.rs Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
diagnostics.rs Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
lib.rs Add option (`-o`/`--output-file`) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
panic.rs Disallow `unreachable_pub` (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Add option (`-o`/`--output-file`) to write output to a file (#4950) 2023-06-20 22:16:49 +05:30
resolve.rs Add a script that tests formatter stability on repositories (#5055) 2023-06-19 14:13:38 +00:00