foursquare / fsqio

A monorepo that holds all of Foursquare's opensource projects
Apache License 2.0
252 stars 54 forks source link

Installing tag validation on a new repo #30

Closed toddgardner closed 6 years ago

toddgardner commented 7 years ago

Took a stab at this also, seems straight forward.

Copy these files from the foursquare/fsqio repo to your repo:

src/python/fsqio/__init__.py
src/python/fsqio/pants/__init__.py
src/python/fsqio/pants/register.py
src/python/fsqio/pants/validate.py

Add a:

 [GLOBAL]
pythonpath: +[
    "%(buildroot)s/src/python",
  ]
backend_packages: +[
    "pants.contrib.node",
    "pants.contrib.python.checks",
    "fsqio.pants",
  ]

[tag]
by_prefix:  {
    "3rdparty": ["exempt"],
    "tests": ["tests"],
    "src": ["dependencies_cannot_have:tests"]
  }
mateor commented 7 years ago

I could possibly publish the tag backend separately.

I am going to try and find some time to figure out how to publish the plugins from Fsq.io. That would make this a lot saner, and also enable users to tweak and republish locally if necessary.

mateor commented 6 years ago

I moved this into its own plugin (not published to Pypi though) and wrote up these as a README. Thanks Todd!