This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"[javascript]": { | |
"editor.formatOnSave": false | |
}, | |
"[typescript]": { | |
"editor.formatOnSave": false | |
}, | |
"[javascriptreact]": { | |
"editor.formatOnSave": false | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import autopep8 | |
import logging | |
from bears.python.PycodestyleBear import PycodestyleBear | |
from coalib.bearlib.spacing.SpacingHelper import SpacingHelper | |
from coalib.bears.LocalBear import LocalBear | |
from coalib.results.Diff import Diff | |
from coalib.results.Result import Result | |
from coalib.settings.Section import Section | |
from coalib.settings.Setting import Setting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from queue import Queue | |
from sarge import run, Capture | |
from contextlib import suppress | |
from bears.general.AnnotationBear import AnnotationBear | |
from coalib.bears.LocalBear import LocalBear | |
from coalib.results.Result import Result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.path | |
from coalib.bears.GlobalBear import GlobalBear | |
from coalib.results.Result import Result, RESULT_SEVERITY | |
from sarge import capture_both | |
from dependency_management.requirements.PipRequirement import PipRequirement | |
class RequirementsCheckBear(GlobalBear): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from coalib.bears.GlobalBear import GlobalBear | |
from coalib.results.Result import Result, RESULT_SEVERITY | |
from sarge import capture_both | |
class RequirementsCheckBear(GlobalBear): | |
""" | |
The bear to check and find any conflicting dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def npm_outdated_command(): | |
""" | |
Executes `npm outdated --json` in the project directory and returns the | |
output in the form of json. | |
""" | |
out = run('npm outdated --json', stdout=Capture()) | |
data = json.loads(out.stdout.text) | |
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse_requirements_file(requirements_file): | |
""" | |
Parses the requirements out of the pip requirements.txt file | |
:return: | |
A list of the names of the packages found in requirements_file. | |
""" | |
data = [] | |
for line_number, line in enumerate(requirements_file): | |
if line.startswith('#'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import platform | |
import stat | |
from queue import Queue | |
from bears.general.FileModeBear import FileModeBear | |
from coalib.testing.LocalBearTestHelper import LocalBearTestHelper | |
from coalib.results.Result import RESULT_SEVERITY, Result | |
from coalib.settings.Section import Section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import stat | |
from coalib.bears.LocalBear import LocalBear | |
from coalib.results.Result import Result | |
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY | |
class FileModeBear(LocalBear): | |
def run(self, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://hib.iiit-bh.ac.in/Hibiscus/Login/?client=iiit&sub=OK | |
// @grant none | |
// ==/UserScript== |
NewerOlder