Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff Adoption & Linting Reset #166

Merged
merged 10 commits into from
Jun 26, 2024
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Adopting ruff in place of flake8 & pylint, and cleaning up the previously ignored errors
faeab2d971c6de9d1afbb7f8b63c0c8dfc4c85ec
66a52fa234cb3296a28b06cb2f5ccf42637326bb
14 changes: 6 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,16 @@ repos:
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
args: [--unsafe] # allow Python constructors
- id: check-merge-conflict
- id: check-symlinks
- id: flake8
name: flake8
additional_dependencies: [Flake8-pyproject]
- id: mixed-line-ending
- id: pretty-format-json
args: [--autofix]

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a5
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.10
hooks:
- id: pylint
name: pylint
exclude: ^tests/
- id: ruff
args: [--fix]
2 changes: 1 addition & 1 deletion ORBIT/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Initializes ORBIT and provides the top-level import objects."""
"""Initializes ORBIT and provides the top-level import objects."""

__author__ = ["Jake Nunemaker", "Matt Shields", "Rob Hammond"]
__copyright__ = "Copyright 2020, National Renewable Energy Laboratory"
Expand Down
2 changes: 1 addition & 1 deletion ORBIT/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""ORBIT API's"""
"""ORBIT API's."""

__author__ = ["Jake Nunemaker"]
__copyright__ = "Copyright 2020, National Renewable Energy Laboratory"
Expand Down
Loading
Loading