Move some configs out of the root directory (#910)

* Move flake8 configuration out of root directory

* Move PHPStan configuration out of root directory
This commit is contained in:
Zach Borboa
2025-01-12 12:39:31 -05:00
committed by GitHub
parent bd793d1287
commit 29cca2e48b
6 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ jobs:
- name: flake8 changed files
if: steps.changed-files.outputs.any_changed == 'true'
run: |
flake8 ${{ steps.changed-files.outputs.all_changed_files }}
flake8 --config="tests/setup.cfg" ${{ steps.changed-files.outputs.all_changed_files }}
- name: isort changed files
if: steps.changed-files.outputs.any_changed == 'true'
+1
View File
@@ -21,6 +21,7 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
args: ["--config", "tests/setup.cfg"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
@@ -4,10 +4,10 @@ parameters:
message: '#^Class CurlHandle not found\.$#'
identifier: class.notFound
count: 2
path: src/Curl/Curl.php
path: ../src/Curl/Curl.php
-
message: '#^Class CurlMultiHandle not found\.$#'
identifier: class.notFound
count: 2
path: src/Curl/MultiCurl.php
path: ../src/Curl/MultiCurl.php
+4 -4
View File
@@ -9,7 +9,7 @@ parameters:
# TODO: Remove all exclusions except vendor/ and fix related errors.
excludePaths:
- examples/*
- tests/*
- vendor/*
- www/*
- ../examples/*
- ../tests/*
- ../vendor/*
- ../www/*
+1 -1
View File
@@ -11,7 +11,7 @@ pushd ..
set -x
if [[ $(echo "${CI_PHP_VERSION} >= 7.4" | bc -l) -eq 1 ]]; then
vendor/bin/phpstan analyse --ansi --configuration="phpstan.neon" .
vendor/bin/phpstan analyse --ansi --configuration="tests/phpstan.neon" .
if [[ "${?}" -ne 0 ]]; then
echo "Error: phpstan static analysis check failed"
errors+=("phpstan static analysis check failed")
View File