diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..c73e032c --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 00000000..af6a923b --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,29 @@ +# This workflow executes several linters on changed files based on languages used in your code base whenever +# you push a code or open a pull request. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/github/super-linter +name: Lint Code Base + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + run-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: "main" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json new file mode 100644 index 00000000..38ae6850 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "MrClean", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "start": "node index.js", + "dev": "nodemon index.js", + "lint": "eslint .", + "format": "prettier --write .", + "test": "echo \"No test specified\" && exit 0", + "prepare": "npm run lint && npm run format" + }, + "dependencies": { + "express": "^4.18.2", + "lodash": "^4.17.21" + }, + "devDependencies": { + "nodemon": "^3.1.0", + "eslint": "^8.57.0", + "prettier": "^3.2.5" + }, + "keywords": [ + "nodejs", + "automation", + "productivity" + ] +} diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..cd7686e2 --- /dev/null +++ b/renovate.json @@ -0,0 +1,11 @@ +{ + "extends": ["config:recommended"], + "dependencyDashboard": true, + "labels": ["dependencies", "renovate"], + "packageRules": [ + { + "matchUpdateTypes": ["minor", "patch"], + "automerge": true + } + ] +} diff --git a/requirements.txt b/requirements.txt index 97dc7cd8..bbec78b0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,15 @@ -fastapi -uvicorn +# Key Node.js dependencies (see package.json for install) + +canvas +tone +plop + +# Dev tools +nodemon +eslint +prettier + +# APIs used + + +# Usage: For actual installs, use 'npm install'; this file is for ecosystem reference/documentation.