From af5e62ea306137737484ac20515cbd374db7a957 Mon Sep 17 00:00:00 2001 From: jposada202020 Date: Thu, 13 Jul 2023 18:34:43 -0400 Subject: [PATCH] update --- .gitignore | 35 +---------------------------------- .pre-commit-config.yaml | 15 ++++----------- .readthedocs.yaml | 2 +- examples.json | 2 +- package.json | 2 +- 5 files changed, 8 insertions(+), 48 deletions(-) diff --git a/.gitignore b/.gitignore index 15107ae..93aae9e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,48 +1,15 @@ -# SPDX-FileCopyrightText: 2022 Kattni Rembor, written for Adafruit Industries +# SPDX-FileCopyrightText: 2023 Jose D. Montoya # # SPDX-License-Identifier: MIT -# Do not include files and directories created by your personal work environment, such as the IDE -# you use, except for those already listed here. Pull requests including changes to this file will -# not be accepted. - -# This .gitignore file contains rules for files generated by working with MicroPython libraries, -# including building Sphinx, testing with pip, and creating a virual environment, as well as the -# MacOS and IDE-specific files generated by using MacOS in general, or the PyCharm or VSCode IDEs. - -# If you find that there are files being generated on your machine that should not be included in -# your git commit, you should create a .gitignore_global file on your computer to include the -# files created by your personal setup. To do so, follow the two steps below. - -# First, create a file called .gitignore_global somewhere convenient for you, and add rules for -# the files you want to exclude from git commits. - -# Second, configure Git to use the exclude file for all Git repositories by running the -# following via commandline, replacing "path/to/your/" with the actual path to your newly created -# .gitignore_global file: -# git config --global core.excludesfile path/to/your/.gitignore_global - -# MicroPython-specific files *.mpy - -# Python-specific files __pycache__ *.pyc - -# Sphinx build-specific files _build - -# This file results from running `pip -e install .` in a local repository *.egg-info - -# Virtual environment-specific files .env .venv - -# MacOS-specific files *.DS_Store - -# IDE-specific files .idea .vscode *~ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3aeac95..d000ade 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,24 +4,24 @@ repos: - repo: https://github.com/python/black - rev: 22.3.0 + rev: 23.3.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.4.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/pylint - rev: v2.15.5 + rev: v2.17.4 hooks: - id: pylint name: pylint (library code) types: [python] args: - --disable=consider-using-f-string - exclude: "^(docs/|examples/|tests/|setup.py$)" + exclude: "^(docs/|examples/|tests/)" - id: pylint name: pylint (example code) description: Run pylint rules on "examples/*.py" files @@ -29,10 +29,3 @@ repos: files: "^examples/" args: - --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code - - id: pylint - name: pylint (test code) - description: Run pylint rules on "tests/*.py" files - types: [python] - files: "^tests/" - args: - - --disable=missing-docstring,consider-using-f-string,duplicate-code diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 94e63f2..097d102 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,7 +5,7 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: python: "3" diff --git a/examples.json b/examples.json index 44115e0..6d9a419 100644 --- a/examples.json +++ b/examples.json @@ -6,5 +6,5 @@ ["micropython_mcp9808/examples/mcp9808_temperature_limits.py", "github:jposada202020/MicroPython_MCP9808/examples/mcp9808_temperature_limits.py"], ["micropython_mcp9808/examples/mcp9808_temperature_resolution.py", "github:jposada202020/MicroPython_MCP9808/examples/mcp9808_temperature_resolution.py"] ], - "version": "0.1" + "version": "1" } diff --git a/package.json b/package.json index d42b1fd..d7d34c8 100644 --- a/package.json +++ b/package.json @@ -4,5 +4,5 @@ ["micropython_mcp9808/i2c_helpers.py", "github:jposada202020/MicroPython_MCP9808/micropython_mcp9808/i2c_helpers.py"], ["micropython_mcp9808/mcp9808.py", "github:jposada202020/MicroPython_MCP9808/micropython_mcp9808/mcp9808.py"] ], - "version": "0.1" + "version": "1" }