Introduce a ruff_diagnostics crate (#3409)

## Summary

This PR moves `Diagnostic`, `DiagnosticKind`, and `Fix` into their own crate, which will enable us to further split up Ruff, since sub-linter crates (which need to implement functions that return `Diagnostic`) can now depend on `ruff_diagnostics` rather than Ruff.
This commit is contained in:
Charlie Marsh 2023-03-09 15:48:57 -05:00 committed by GitHub
parent 08ec11a31e
commit 024caca233
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
349 changed files with 758 additions and 1003 deletions

View file

@ -0,0 +1,7 @@
pub use diagnostic::{Diagnostic, DiagnosticKind};
pub use fix::Fix;
pub use violation::{AlwaysAutofixableViolation, AutofixKind, Availability, Violation};
mod diagnostic;
mod fix;
mod violation;