Skip to content

Commit

Permalink
fix: clean up linting errors and test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis authored and steveoh committed Dec 17, 2022
1 parent 1a555bf commit f00cd54
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[pytest]
testpaths = tests
norecursedirs = data maps
log_print = False
minversion = 3.5
console_output_style = count
addopts = --pylint --cov-branch --cov=forklift --instafail --isort
Expand Down
2 changes: 1 addition & 1 deletion tests/test_change_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import logging
from pathlib import Path

import arcpy
from pytest import raises

import arcpy
from forklift import core
from forklift.change_detection import (ChangeDetection, _get_hashes,
hash_field, table_name_field)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from os import path
from pathlib import Path

import arcpy
import pytest
from mock import MagicMock, Mock, patch

import arcpy
from forklift import core, engine
from forklift.change_detection import ChangeDetection
from forklift.exceptions import ValidationException
Expand Down
2 changes: 1 addition & 1 deletion tests/test_crate.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import unittest
from os import path

from arcpy import SpatialReference, env
from mock import patch
from xxhash import xxh64

from arcpy import SpatialReference, env
from forklift.models import Crate, names_cache

current_folder = path.dirname(path.abspath(__file__))
Expand Down
3 changes: 2 additions & 1 deletion tests/test_lift.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import unittest
from os import path

import arcpy
from mock import Mock, patch

import arcpy
from forklift import core, engine, lift
from forklift.models import Crate, Pallet

Expand Down Expand Up @@ -118,6 +118,7 @@ def test_process_pallets_resets_arcpy(self):
import arcpy

def modify_workspace(value):
# pylint: disable-next=assigning-non-slot
arcpy.env.workspace = value

# pylint: disable=assignment-from-no-return
Expand Down

0 comments on commit f00cd54

Please sign in to comment.