Navjyoti Singh

29 papers B 1C 2Misc 1Journal 4Unranked 21
YearRankTypeTitle / Venue / Authors
2018 J jnl
CoRR
Sreekavitha Parupalli, Navjyoti Singh
2018 conf
CICLing (1)
Sakala Venkata Krishna Rohit, Navjyoti Singh
2018 J jnl
CoRR
Sakala Venkata Krishna Rohit, Navjyoti Singh
2018 conf
ICADL
Swati Dewan, Shubham Agarwal, Navjyoti Singh
2018 conf
SW4CH@ESWC
Toshant Sharma, Navjyoti Singh
2018 conf
CICLing (1)
Sreekavitha Parupalli, Navjyoti Singh
2018 J jnl
CoRR
Sreekavitha Parupalli, Navjyoti Singh
2018 conf
NLPCC (2)
Vikram Ahuja, Radhika Mamidi, Navjyoti Singh
2018 conf
Text2Story@ECIR
VenuMadhav Kattagoni, Navjyoti Singh
2018 conf
CICLing (2)
Jyoti Jha, Sreekavitha Parupalli, Navjyoti Singh
2018 J jnl
CoRR
Jyoti Jha, Sreekavitha Parupalli, Navjyoti Singh
2018 B conf
ICPR
Swati Dewan, Shubham Agarwal, Navjyoti Singh
2018 conf
JOWO
Rajesh Tavva, Navjyoti Singh
2018 conf
PEOPLES@NAACL-HTL
Vikram Ahuja, Taradheesh Bali, Navjyoti Singh
2017 C conf
ICMV
Swati Dewan, Shubham Agarwal, Navjyoti Singh
2017 conf
CODS
Arpit Merchant, Navjyoti Singh
2017 C conf
ICMV
Swati Dewan, Shubham Agarwal, Navjyoti Singh
2017 conf
CDH@TLT
Priyanka Suresh, Navjyoti Singh
2016 conf
Wiki@ICWSM
Arpit Merchant, Darshit Shah, Navjyoti Singh
2016 conf
IJCCI (ECTA)
Shikhar Raje, Navjyoti Singh, Shobhit Mohan
2016 conf
PEOPLES@COLING
Taradheesh Bali, Navjyoti Singh
2016 conf
WWW (Companion Volume)
Arpit Merchant, Tushant Jha, Navjyoti Singh
2016 conf
WWW (Companion Volume)
Shivani Poddar, Sindhu Kiranmai Ernala, Navjyoti Singh, Ashin Samvara
2015 conf
WWW (Companion Volume)
Akshay Minocha, Navjyoti Singh, Arjit Srivastava
2015 conf
JOWO@IJCAI
Rajesh Tavva, Navjyoti Singh
2015 conf
MTSR
Sandeep Reddy Biddala, Navjyoti Singh
2015 Misc conf
IVCNZ
Bharat Munshi, Navjyoti Singh
2015 conf
BD
Shivani Poddar, VenuMadhav Kattagoni, Navjyoti Singh
2010 conf
Sanskrit Computational Linguistics
Rajesh Tavva, Navjyoti Singh
lint.sh
← Index lint.sh bash
#!/bin/bash

# Linting script for REDB project
# Usage: ./lint.sh [--fix] [--check-only]

set -e

# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Default values
FIX=false
CHECK_ONLY=false

# Parse arguments
while [[ $# -gt 0 ]]; do
    case $1 in
        --fix)
            FIX=true
            shift
            ;;
        --check-only)
            CHECK_ONLY=true
            shift
            ;;
        *)
            echo "Unknown option: $1"
            echo "Usage: $0 [--fix] [--check-only]"
            exit 1
            ;;
    esac
done

echo -e "${GREEN}Running linting checks on REDB project...${NC}"

# Check if we're in a virtual environment
if [[ "$VIRTUAL_ENV" == "" ]]; then
    echo -e "${YELLOW}Warning: Not in a virtual environment. Consider activating one.${NC}"
fi

# Function to run a command and check its exit status
run_check() {
    local name="$1"
    local command="$2"
    
    echo -e "\n${YELLOW}Running $name...${NC}"
    if eval "$command"; then
        echo -e "${GREEN}✓ $name passed${NC}"
    else
        echo -e "${RED}✗ $name failed${NC}"
        return 1
    fi
}

# Track overall success
overall_success=true

# 1. isort (import sorting)
if [[ "$FIX" == true ]]; then
    run_check "isort" "isort redb/" || overall_success=false
else
    run_check "isort" "isort --check-only --diff redb/" || overall_success=false
fi

# 2. black (code formatting)
if [[ "$FIX" == true ]]; then
    run_check "black" "black redb/" || overall_success=false
else
    run_check "black" "black --check --diff redb/" || overall_success=false
fi

# 3. flake8 (style and error checking)
run_check "flake8" "flake8 redb/" || overall_success=false

# 4. pylint (comprehensive analysis)
run_check "pylint" "pylint --rcfile=pyproject.toml redb/" || overall_success=false

echo -e "\n${GREEN}Linting completed!${NC}"

if [[ "$overall_success" == true ]]; then
    echo -e "${GREEN}All checks passed! ✨${NC}"
    exit 0
else
    echo -e "${RED}Some checks failed. Please fix the issues above.${NC}"
    exit 1
fi