Project-config

Latest version: v0.9.7

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

0.7.0

New features:

- Added `project-config fix` subcommand to apply manual and automatic fixes to errors. See [best practices guide](https://mondeja.github.io/project-config/0.7.0/tutorials/pages/best-practices.html#best-practices).
- Added new custom JMESPath function [`os()`](https://mondeja.github.io/project-config/0.7.0/reference/plugins.html#os) to get the platform in which the current execution is running.
- Added new option [`--only-hints`](https://mondeja.github.io/project-config/0.7.0/reference/cli.html#project-config---only-hints) / [`only_hints = true`](https://mondeja.github.io/project-config/0.7.0/reference/config.html#cli-only-hints-boolean) to only show hints rather than messages in errors.

0.6.0

New features:

- Added [`rootdir_name`](https://mondeja.github.io/project-config/0.6.0/reference/plugins.html#rootdir_name) custom function to jmespath plugin.
- Allow to override serializer used for other files in [`crossJMESPathsMatch` verb](https://mondeja.github.io/project-config/0.6.0/reference/plugins.html#crossjmespathsmatch).
- Added new subcommand `project-config init` to initialize a minimal configuration.
- Added [MegaLinter](https://megalinter.github.io) plugin descriptor for project-config. See [Installation](https://mondeja.github.io/project-config/0.6.0/install.html).

0.5.0

New features:

- A lot of custom functions have been added to [`jmespath` plugin](https://mondeja.github.io/project-config/0.5.0/reference/plugins.html#jmespath).

Enhancements:

- Concurrent fetching for faster caching of remote style files when they have not been cached yet.

0.4.0

Deprecations:

- The custom JMESPath function `regex_matchall` has been deprecated and will be removed in v1.0.0. Rewrite `regex_matchall('^foo$', ['foo', 'bar'])` as `op(length(['foo', 'bar'][?regex_match('^foo$', )]), '==', length(['foo', 'bar']))`.

New features:

- New [`crossJMESPathsMatch` verb](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#crossjmespathsmatch) for [`jmespath` plugin](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#jmespath).
- New [`ifFilesExist` conditional](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#iffilesexist).
- New custom functions for [`jmespath` plugin](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#jmespath): [`shlex_split`](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#shlex_split) and [`shlex_join`](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#shlex_join).
- Custom function [`op`](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#op) now can handle [sets](https://docs.python.org/3/library/stdtypes.html#set) operations.
- New [text serializer](https://mondeja.github.io/project-config/0.4.0/in-depth/serialization.html#text) as fallback for all text files.

Enhancements:

- Better errors catching fetching and serializing files.
- Values validation in [`inclusion` plugin](https://mondeja.github.io/project-config/0.4.0/reference/plugins.html#inclusion) actions.

0.3.1

Bug fixes:

- Fix error fetching styles when `rootdir` not specified.

0.3.0

New features:

- Accept recursive globs in `files` properties of rules.
- New verb [`excludeContent`](https://mondeja.github.io/project-config/0.3.0/reference/plugins.html#excludecontent) to assert that content does not exist in files.
- Allow to specify [hints](https://mondeja.github.io/project-config/0.3.0/reference/styling.html#hint-string) in rules.
- Add `show plugins` command.
- Allow to specify custom colors in CLI reporters.
- Allow to configure CLI execution from configuration file.

Bug fixes:

- Fix error processing multiple conditionals in the same rule.
- Fix encoding error on Windows.

Enhancements:

- Allow to pass options in flexible order to CLI.
- Set environment variable `PROJECT_CONFIG` while CLI is running.
- Added `--no-cache` option to CLI.
- Retry connections in requests.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.