Code Monkey home page Code Monkey logo

graffiti-wall's People

Contributors

abhik-roy avatar alandan99 avatar aneeshjalan avatar asg017 avatar bdybicz avatar bghoang avatar choyuansu avatar chrisjrobles avatar cqvu avatar ctakayama avatar elysiasmac avatar eugeneli5237 avatar harrissteven avatar jacklyn010 avatar kaustubhlall avatar kchang264 avatar mlucio123 avatar murlinwang avatar nakulgoel55 avatar phongvo0206 avatar richerdjchen avatar roryrickey avatar skydragonno1 avatar tahmid-k avatar tekunalogy avatar vidyakanekal avatar vinaypillai avatar viviaann avatar vmm2297 avatar yimingnzhao avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

graffiti-wall's Issues

Add a test for accidental top-level tag JSON placement

Whenever someone makes a PR to our graffiti wall, we run a test (with circleCI) to make sure any new .json file in the tags directory is valid (8x8, defined color, a name is provided, etc.). This test is written in python in test.py.

However, if someone accidentally adds their JSON file to the project root directory (and not in the tags directory), the test would not catch it, because the the test only looks at whatever is inside the tags directory.

How to fix this

We need a new test in the test.py file. Add a new method to class TestTags, say def test_tags_in_tags(self), that will loop through the project directory, and ensure there are not JSON files in the top-level project directory. So, get every file that's in the current directory, loop through every file and check to see if the file name ends in .json. If so, then let's just assume that the file is an accidental top-level tail, and let's have the test fail.

Example of this happening

This happened in this PR #50 . They added a emac.json file not in the tags directory, and the tests still passed. I fixed it in this commit f6933bf by just renaming the file to tags/emac.json.

If this doesn't make sense or it's confusing, just lmk! More than happy to explain further or help out a bit ๐Ÿ˜„

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.