mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-11 19:06:36 +00:00
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:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
@@ -9,7 +9,7 @@ parameters:
|
||||
|
||||
# TODO: Remove all exclusions except vendor/ and fix related errors.
|
||||
excludePaths:
|
||||
- examples/*
|
||||
- tests/*
|
||||
- vendor/*
|
||||
- www/*
|
||||
- ../examples/*
|
||||
- ../tests/*
|
||||
- ../vendor/*
|
||||
- ../www/*
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user