Skip to content

Commit

Permalink
Merge pull request #219 from gauge-sh/update-yml-schema
Browse files Browse the repository at this point in the history
update yml schema
  • Loading branch information
caelean authored Jul 30, 2024
2 parents 60b3780 + 0a232fa commit eea1c25
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tach"
version = "0.9.0"
version = "0.9.1"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ If you use the [pre-commit framework](https://github.com/pre-commit/pre-commit),
```yaml
repos:
- repo: https://github.com/gauge-sh/tach-pre-commit
rev: v0.9.0 # change this to the latest tag!
rev: v0.9.1 # change this to the latest tag!
hooks:
- id: tach
```
Expand Down
13 changes: 12 additions & 1 deletion public/tach-yml-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@
"depends_on": {
"type": "array",
"items": {
"type": "string"
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "Path to the dependency"
},
"deprecated": {
"type": "boolean",
"default": false,
"description": "Flag usages of this dependency without failing tach check"
}
}
},
"default": [],
"description": "List of dependencies for the module"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "tach"
version = "0.9.0"
version = "0.9.1"
authors = [
{ name="Caelean Barnes", email="[email protected]" },
{ name="Evan Doyle", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion python/tach/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import annotations

__version__ = "0.9.0"
__version__ = "0.9.1"

__all__ = ["__version__"]
2 changes: 1 addition & 1 deletion python/tach/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PACKAGE_FILE_NAME = "package"
ROOT_MODULE_SENTINEL_TAG = "<root>"
TACH_YML_SCHEMA_URL = (
"https://raw.githubusercontent.com/gauge-sh/tach/v0.9.0/public/tach-yml-schema.json"
"https://raw.githubusercontent.com/gauge-sh/tach/v0.9.1/public/tach-yml-schema.json"
)

DEFAULT_EXCLUDE_PATHS = ["tests", "docs", "venv", ".*__pycache__", ".*egg-info"]
Expand Down
2 changes: 1 addition & 1 deletion python/tests/example/cycles/tach.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.0/public/tach-yml-schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.1/public/tach-yml-schema.json
modules:
- path: domain_one
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion python/tests/example/monorepo/tach.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.0/public/tach-yml-schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.1/public/tach-yml-schema.json
modules:
- path: mod1
depends_on: []
Expand Down
2 changes: 1 addition & 1 deletion python/tests/example/valid/tach.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.0/public/tach-yml-schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.1/public/tach-yml-schema.json
modules:
- path: domain_one
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion tach.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.0/public/tach-yml-schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.1/public/tach-yml-schema.json
modules:
- path: tach
depends_on: []
Expand Down

0 comments on commit eea1c25

Please sign in to comment.