Exclude annotations check from python snippets
@@ -8,7 +8,10 @@ spotless {
}
format 'python', {
- target '**/*.py'
+ target project.fileTree(project.rootDir) {
+ include '**/*.py'
+ exclude 'docs/src/test/python/*.py'
+ }
replaceRegex 'loggers may not use root context', /logging.(debug|info|warning|error|critical|exception|log)/, 'logging.getLogger("keanu").$1'
replaceRegex 'all tests must be type annotated', /def test_([a-z_]+)\(\):/, 'def test_$1() -> None:'
