##// END OF EJS Templates
tests: enforce the use of `from __future__ import annotations`...
tests: enforce the use of `from __future__ import annotations` A recent MR and a separate recently landed MR that extracted code to a new file overlooked this, so I think it's worth flagging to ensure consistency. We don't enforce the import for empty files (like `__init__.py`). I'd rather this go into `import-checker.py`, but the import of interest only happens at the top of the file, and its `verify_modern_convention()` calls itself recursively as it transits the AST where the annotations might be. After a few hours of hacking on trying to get it to enforce the import, but only if annotations are used in the module (we generally don't have or check annotations in test files, so don't need this import), I gave up and resorted to this. It won't handle multi-line imports, but this isn't something I'd expect to change often, so this is good enough for now.

File last commit:

r53206:56e8841a default
r53246:662b08ac default
Show More
Cargo.toml
26 lines | 563 B | application/toml | TOMLLexer
Antoine Cezar
rhg: add rhg crate...
r45503 [package]
name = "rhg"
version = "0.1.0"
Raphaël Gomès
rhg: use `format_bytes!` for error messages...
r46598 authors = [
"Antoine Cezar <antoine.cezar@octobus.net>",
"Raphaël Gomès <raphael.gomes@octobus.net>",
]
Raphaël Gomès
rust: move all crates in the main workspace to edition 2021...
r50524 edition = "2021"
Antoine Cezar
rhg: add rhg crate...
r45503
[dependencies]
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 hg-core = { path = "../hg-core"}
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 chrono = "0.4.23"
Raphaël Gomès
rust: update `clap` to the latest 4.x version...
r53204 clap = { version = "4", features = ["cargo"] }
Raphaël Gomès
rhg: upgrade dependencies...
r49807 derive_more = "0.99.17"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 home = "0.5.4"
Simon Sapin
rhg: Fall back to Python on --repository with an URL...
r47463 lazy_static = "1.4.0"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 log = "0.4.17"
Raphaël Gomès
rust: use `logging_timer` instead of `micro_timer`...
r50808 logging_timer = "1.1.0"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 regex = "1.7.0"
Raphaël Gomès
rust: update `env_logger` dependency...
r53205 env_logger = "0.11"
Simon Sapin
rust: Upgrade to format-bytes 0.3...
r49323 format-bytes = "0.3.0"
Raphaël Gomès
rhg: expand user and environment variables in ignore includes...
r52644 shellexpand = { version = "3.1", features = ["full"]}
Raphaël Gomès
rust-dependencies: switch from `users` to `whoami`...
r51576 whoami = "1.4"
Raphaël Gomès
rhg: upgrade the remainder of the dependencies...
r50535 which = "4.3.0"
Raphaël Gomès
rust: upgrade `rayon` dependency...
r51221 rayon = "1.7.0"
Arseniy Alekseyev
rhg: ignore readonly FS error when saving dirstate...
r52652 libc = "0.2.155"