Git Product home page Git Product logo

bazel-examples's Introduction

bazel-examples's People

Contributors

limdor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bazel-examples's Issues

Integrate buildifier for bazel examples

The examples in this repository want to show bazel best practices and recommended usages. One of the way to achieve this is doing linting in the BUILD files.
Bazel provides buildifier to achieve this goal.
In this task buildifier should be integrated in all examples and configured to run on the CI.

Migrate examples to Bzlmod once buildtools module is available

Most of the examples use third party dependencies only for the buildifier rule.
In order to have it reproducible, we ping the version of rules_go, skylib, protobuf, and buildtools.
With Bzlmod it would be much simpler because then we only pin builtools and we check in the log file.

Unfortunately buildtools does not have yet a module. Once it is available, examples should be migrated.
bazelbuild/bazel-central-registry#380

The only example that should not be migrated is the one that shows how to deal with third party dependencies without Bzlmod

Execute in the CI the build commands from readme files

For each example there are several build commands that we want to show to the user. To make sure that these build commands are working all the time, they are executed in the CI adding them in the appveyor file.
The problem with this approach is that the commands are repeated, appearing once in the appveyor file and once in the Readme file.
The goal of this task is to have a script that parse the readme files to find bazel commands and these commands are executed in the CI.

Add linter for markdown files

Readme files are the base of this repository. With them the user will learn bazel.
Because of that it is important that they do not have problems like visualization issues.
To achieve that a linter for markdown files should be added and integrated with the CI.

Show how to do linting for python code in Bazel

This example should show a small Python application that contains a python test, a py_binary and an py_library and it shows how linting using pylint can be automatically done in bazel with an additional py test target.
It should take into consideration the files declared in the bazel target and not analyze everything in the folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.