From 176605ccd43287b18e8bca980d03dcf8384fc773 Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Fri, 21 Jun 2024 09:48:17 -0400 Subject: [PATCH 1/3] removing ttl and nt files from pre-commit --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8d06d530..194810bf3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,8 @@ repos: (?x)^( docs/specification/.* | mkdocs.yml + | .*\.ttl + | .*\.nt )$ - id: check-json - id: check-ast From e37b5bdf61f7b3fa379f3a2aabb4ee362f2575af Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Fri, 21 Jun 2024 10:04:59 -0400 Subject: [PATCH 2/3] removing flake8 for releases for now --- .pre-commit-config.yaml | 7 ++++--- releases/1.0.0/reproschema.jsonld | 1 - releases/1.0.0/reproschema.nt | 1 - releases/1.0.0/reproschema.ttl | 2 -- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 194810bf3..0930fc61e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,8 +11,9 @@ repos: (?x)^( docs/specification/.* | mkdocs.yml - | .*\.ttl - | .*\.nt + | releases/*/*.ttl + | releases/*/*.nt + | releases/*/*.jsonld )$ - id: check-json - id: check-ast @@ -42,5 +43,5 @@ repos: rev: 7.1.0 hooks: - id: flake8 - args: [--config, .flake8, --verbose] + args: [--config, .flake8, --verbose, --exclude=releases/] additional_dependencies: [flake8-bugbear] diff --git a/releases/1.0.0/reproschema.jsonld b/releases/1.0.0/reproschema.jsonld index c935b697b..e47a54745 100644 --- a/releases/1.0.0/reproschema.jsonld +++ b/releases/1.0.0/reproschema.jsonld @@ -2384,4 +2384,3 @@ } ] } - diff --git a/releases/1.0.0/reproschema.nt b/releases/1.0.0/reproschema.nt index 33cbb252a..ad52f28c6 100644 --- a/releases/1.0.0/reproschema.nt +++ b/releases/1.0.0/reproschema.nt @@ -1727,4 +1727,3 @@ _:c14n99 "linkml:types"@en . _:c14n99 "If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"objectidentifier\"."@en . _:c14n99 "str"@en . _:c14n99 "http://www.w3.org/ns/shex#iri"@en . - diff --git a/releases/1.0.0/reproschema.ttl b/releases/1.0.0/reproschema.ttl index c1270050d..da768dc1b 100644 --- a/releases/1.0.0/reproschema.ttl +++ b/releases/1.0.0/reproschema.ttl @@ -1559,5 +1559,3 @@ rs: a ns1:SchemaDefinition ; ns1:imported_from "linkml:types"@en ; ns1:notes "In RDF serializations, a slot with range of string is treated as a literal or type xsd:string. If you are authoring schemas in LinkML YAML, the type is referenced with the lower case \"string\"."@en ; ns1:uri "http://www.w3.org/2001/XMLSchema#string"@en ] . - - From 1a62bd2673859ebb6753987c43e5061b7342b29c Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Fri, 21 Jun 2024 10:23:06 -0400 Subject: [PATCH 3/3] fixing flake exclude --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0930fc61e..b9ebe47e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,5 +43,5 @@ repos: rev: 7.1.0 hooks: - id: flake8 - args: [--config, .flake8, --verbose, --exclude=releases/] + args: [--config, .flake8, --verbose, --exclude=releases/*] additional_dependencies: [flake8-bugbear]