mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-23 09:19:39 +00:00
`logging.basicConfig` should not be called at a global module scope, as that produces a race condition to configure logging based on which module gets imported first. Logging should instead be initialized in an entrypoint to the program, either in a `main()` or in the typical `if __name__ == "__main__"` block. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||