Skip to content

Commit

Permalink
move line length back to 108
Browse files Browse the repository at this point in the history
remove pylint
  • Loading branch information
kjmeagher committed Aug 20, 2024
1 parent 88f5b02 commit 5707487
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ repos:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/pycqa/pylint
rev: v3.2.6
hooks:
- id: pylint
files: ehist
args: [--ignore=E401]
additional_dependencies: [numpy, matplotlib]
- repo: https://github.com/fsfe/reuse-tool
rev: v4.0.3
hooks:
Expand Down
1 change: 0 additions & 1 deletion ehist/bayesian_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: BSD-2-Clause

# pylint: skip-file
# Licensed under a 3-clause BSD style license - see LICENSE.rst

"""Bayesian Blocks for Time Series Analysis
Expand Down
4 changes: 2 additions & 2 deletions ehist/hist1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import numpy as np
import pylab as plt
from scipy import integrate, optimize # pylint: disable=import-error
from scipy.stats import poisson # pylint: disable=import-error
from scipy import integrate, optimize
from scipy.stats import poisson

from .axis import IntAxis, LogIntAxis, auto_axis
from .util import HorizontalPlot, VerticalPlot, handle_weights
Expand Down
2 changes: 1 addition & 1 deletion examples/plot_ehist.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import numpy as np
import pylab as plt
from scipy import stats # pylint: disable=import-error
from scipy import stats

from ehist import Hist1D as h1

Expand Down
15 changes: 5 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ test = ["pytest", "pytest-cov"]
testpaths = ["tests"]
addopts = ["--cov"]

[tool.pylint.messages_control]
disable = "C0103,C0104,C0114,C0115,C0116,W0603,R0902,R0903,R0912,R0913,R0914,W0201,W0622"

[tool.pylint.format]
max-line-length = "128"

[tool.ruff]
line-length = 108
target-version = "py38"

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
Expand All @@ -57,12 +55,9 @@ ignore = [
"PLR0912", # Too many branches
"ERA001", # Found commented-out code
]
line-length = 128
target-version = "py38"
fixable = ["I"]


[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"ehist/bayesian_blocks.py" = [
"N","A","RET","EM","TRY","PLR","ISC","B","FBT"
]
Expand Down

0 comments on commit 5707487

Please sign in to comment.