Giter VIP home page Giter VIP logo

plugincode's Introduction

PluginCode

  • license: Apache-2.0
  • copyright: copyright (c) nexB. Inc. and others
  • homepage_url: https://github.com/nexB/plugincode
  • keywords: plugins, utilities, scancode-toolkit, plugincode

PluginCode is a library that provides plugable functionality with plugins, including Click plugins. It is used by ScanCode toolkit and related projects

Visit https://aboutcode.org and https://github.com/nexB/ for support and download.

To set up the development environment:

source configure

To run unit tests:

pytest -vvs -n 2

To clean up development environment:

./configure --clean

plugincode's People

Contributors

abhishek-dev09 avatar agustinhenze avatar arijitde92 avatar arnav-mandal1234 avatar ayansinhamahapatra avatar chinyeungli avatar jonoyang avatar jpopelka avatar keshav-space avatar pombredanne avatar qduanmu avatar steven-esser avatar swastkk avatar tg1999 avatar yashdsaraf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

plugincode's Issues

Support simple dependencies or ordering between plugins

I have faced this problem: I have several post scan plugins, and some need to run first some later.
There is no way to ensure this for now.
Ideally we would want to have a proper, sat-like dependency resolution mechanism. But a cruder, static way based on a relative ordering (for instance using the sort_order plugin class attribute) would be plenty good enough.
@yashdsaraf what do you think?

Review test failures for doc-related issues

These tests are failing https://github.com/nexB/plugincode/actions/runs/4864893851/jobs/8674493208

2023-05-02T19:13:07.9011591Z ##[group]Run sphinx-build -E -W source build
2023-05-02T19:13:07.9012003Z �[36;1msphinx-build -E -W source build�[0m
2023-05-02T19:13:07.9065563Z shell: /usr/bin/bash -e {0}
2023-05-02T19:13:07.9065893Z env:
2023-05-02T19:13:07.9066249Z   pythonLocation: /opt/hostedtoolcache/Python/3.9.16/x64
2023-05-02T19:13:07.9066694Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.16/x64/lib
2023-05-02T19:13:07.9067073Z ##[endgroup]
2023-05-02T19:13:08.4830011Z Running Sphinx v7.0.0
2023-05-02T19:13:08.9756359Z making output directory... done
2023-05-02T19:13:09.0168635Z loading intersphinx inventory from https://aboutcode.readthedocs.io/en/latest/objects.inv...
2023-05-02T19:13:09.0175758Z loading intersphinx inventory from https://scancode-workbench.readthedocs.io/en/develop/objects.inv...
2023-05-02T19:13:09.1834927Z building [mo]: targets for 0 po files that are out of date
2023-05-02T19:13:09.1835528Z writing output... 
2023-05-02T19:13:09.1849034Z building [html]: targets for 3 source files that are out of date
2023-05-02T19:13:09.1858342Z updating environment: [new config] 3 added, 0 changed, 0 removed
2023-05-02T19:13:09.1859341Z reading sources... [ 33%] contribute/contrib_doc
2023-05-02T19:13:09.2952540Z reading sources... [ 66%] index
2023-05-02T19:13:09.3028648Z reading sources... [100%] skeleton-usage
2023-05-02T19:13:09.3236373Z 
2023-05-02T19:13:09.3239175Z looking for now-outdated files... none found
2023-05-02T19:13:09.3270677Z pickling environment... done
2023-05-02T19:13:09.3272030Z checking consistency... done
2023-05-02T19:13:09.3290533Z preparing documents... done
2023-05-02T19:13:09.3291409Z writing output... [ 33%] contribute/contrib_doc
2023-05-02T19:13:09.4946132Z 
2023-05-02T19:13:09.4946441Z Theme error:
2023-05-02T19:13:09.4946842Z An error happened in rendering the page contribute/contrib_doc.
2023-05-02T19:13:09.4947464Z Reason: UndefinedError("'style' is undefined")
2023-05-02T19:13:09.5764248Z ##[error]Process completed with exit code 2.
2023-05-02T19:13:09.5826013Z Post job cleanup.
2023-05-02T19:13:09.7120104Z [command]/usr/bin/git version
2023-05-02T19:13:09.7169253Z git version 2.40.1
2023-05-02T19:13:09.7208366Z Temporarily overriding HOME='/home/runner/work/_temp/52b3395a-3bf4-4adc-aff8-9f3d8aa07318' before making global git config changes
2023-05-02T19:13:09.7209125Z Adding repository directory to the temporary git global config as a safe directory
2023-05-02T19:13:09.7213023Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/plugincode/plugincode
2023-05-02T19:13:09.7255841Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2023-05-02T19:13:09.7291874Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2023-05-02T19:13:09.7537827Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2023-05-02T19:13:09.7569804Z http.https://github.com/.extraheader
2023-05-02T19:13:09.7579794Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2023-05-02T19:13:09.7618411Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2023-05-02T19:13:09.8126514Z Cleaning up orphan processes

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.