diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddfc4f4..760e04b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,21 +29,21 @@ jobs: - name: Check Python formatting with black run: | - black --line-length 99 --diff --color . - black --line-length=99 --check . + black --diff --color . + black --check . - name: Check Cython formatting with cython-lint run: | - cython-lint --max-line-length=99 --ignore=E741 . + cython-lint . - name: Check import order with isort run: | - isort --profile=black --line-length=99 --check . + isort --profile=black --check . - name: Lint with flake8 run: | - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics || exit 1 - flake8 . --count --exit-zero --max-line-length=99 --statistics + flake8 . --count --select=E9,F7,F63,F82 --show-source --statistics || exit 1 + flake8 . --count --exit-zero --statistics - name: Test with pytest run: | diff --git a/pyproject.toml b/pyproject.toml index 7cd678e..5f31e76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,16 +11,16 @@ requires = [ [tool.black] line-length = 99 -target_version = ["py38", "py39", "py310", "py311", "py312"] preview = true +target_version = ["py38", "py39", "py310", "py311", "py312"] [tool.cython-lint] -max-line-length = 99 ignore = ["E741"] +max-line-length = 99 [tool.isort] -multi_line_output = 3 -include_trailing_comma = true force_grid_wrap = 0 -use_parentheses = true +include_trailing_comma = true line_length = 99 +multi_line_output = 3 +use_parentheses = true diff --git a/quantile_forest/_quantile_forest.py b/quantile_forest/_quantile_forest.py index 3b91ed7..07713a0 100755 --- a/quantile_forest/_quantile_forest.py +++ b/quantile_forest/_quantile_forest.py @@ -202,8 +202,8 @@ def fit(self, X, y, sample_weight=None, sparse_pickle=False): return self + @staticmethod def _map_indices_to_leaves( - self, bootstrap_indices, X_leaves_bootstrap, sample_weight, diff --git a/setup.cfg b/setup.cfg index d96c271..1c81f92 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,20 +8,20 @@ include = quantile_forest* test = pytest [tool:pytest] -testpaths = quantile_forest addopts = - --doctest-modules - --disable-pytest-warnings --color=yes + --disable-pytest-warnings + --doctest-modules +testpaths = quantile_forest [flake8] -max-line-length = 99 -ignore = E203, E266, E402, E501, W503, E731 -select = B,C,E,F,W,T4,B9 exclude = .git, build, __pycache__ +ignore = E203, E402, E731, W503 +max-line-length = 99 +select = B, B9, C, E, F, T4, W [metadata] description_file = README.md