aboutsummaryrefslogtreecommitdiff
path: root/lib.bzl
AgeCommit message (Collapse)Author
2019-07-22`print`->`fail` and suppress the warning in another case. (#177)Thomas Van Lenten
2018-11-26Fix up lint issues. (#77)Thomas Van Lenten
Fixed via `buildifier --lint=fix` with buildifier 0.19.2.1
2018-11-21buildifier lint issues/validationThomas Van Lenten
* Fix lint issues - Move the doc string into the `doc` attributes on the rule/attr calls. - Move the print() below the load() statements. * Also run buildifier in --lint=fix mode to catch issues on Travis.
2018-09-24deprecate lib.bzl. (#58)Thomas Van Lenten
- tag the :lib target as such. - print() a warning when lib.bzl is loaded.
2018-06-13Reformat .bzl files with buildifier and add format check.Thomas Van Lenten
Buildifier 0.12.0 includes initial support for reformatting .bzl files. - Reformat all the bzl files. - Expand the travis check to check the .bzl files also.
2018-05-09Add type checking functions.Taras Tsugrii
Even though it's not great to use type checks, they are frequently useful for checking input types of macros. Because there is no standard way of checking types, at least 2 types of checks are used: - `type(foo) == type([])` - `type(foo) == "list"` The first option is not very readable and the second option seem to be relying on an Bazel implementation detail. Encapsulating type checks into this library enables consistent and easy to understand type checking without explicitly relying on implementation details.
2018-04-26Doc and code fixes found via skylint. (#38)Thomas Van Lenten
* Fix up the skylint warning about depset usage. * Remove the reassignment of max_bazel_version. This was flagged by skylint, the reality is _is_at_most() does the parsing so it shouldn't be parsed before sent on the way. * Fix up the skylint warning about depset usage. * Fixup the skylint warning about re-exports. Just move to the explicit re-export form. * Fix the fail() call to use the right variable. skylint flagged this variable as undefined, but it it seems like this was never right and should have been "key" all along. * Fixup docstring formatting for skylint.
2018-04-20Introduce new_sets.bzl (#32)Nicholas Titcombe
This version is hash-based (implemented on top of a dictionary) and doesn't suffer the performance problems of the current version. It will eventually replace the old one after a deprecation period.
2018-04-17Add support for 'functools.partial' like functionality. (#34)dmaclach
* Add support for 'functools.partial' like functionality. https://docs.python.org/3/library/functools.html#functools.partial
2018-01-12Added a lib for version checking and comparison (#13)Jingwen
2017-10-10Initial check-in.Tony Allevato