Skip to content

Instantly share code, notes, and snippets.

@txomon
Created August 4, 2015 17:41
Show Gist options
  • Save txomon/418f3386ac078d0f55c1 to your computer and use it in GitHub Desktop.
Save txomon/418f3386ac078d0f55c1 to your computer and use it in GitHub Desktop.
SpockBot tox output
GLOB sdist-make: /home/javier/proyectos/minecraft/spockbot/setup.py
py27 inst-nodeps: /home/javier/proyectos/minecraft/spockbot/.tox/dist/spock-1.2.zip
py27 installed: Beaker==1.7.0.dev0,CherryPy==3.6.0,coverage==3.7.1,execnet==1.3.0,functools32==3.2.3.post1,httplib2==0.9.1,ipython==3.2.1,Jinja2==2.8,jsonschema==2.5.1,louis==2.6.3,lxml==3.4.4,M2Crypto==0.22.3,Mako==1.0.1,MarkupSafe==0.23,matplotlib==1.4.3,meld==3.14.0,msgpack-python==0.4.6,nose==1.3.7,numpy==1.9.2,openshot==1.4.3,Pillow==2.9.0,py==1.4.30,pycrypto==2.6.1,pygobject==3.16.2,pyparsing==2.0.3,pytest==2.7.2,pytest-capturelog==0.7,pytest-cov==2.0.0,pytest-xdist==1.12,python-dateutil==2.4.2,python-sane==2.8,pytz==2015.4,pyxdg==0.25,PyYAML==3.11,pyzmq==14.7.0,requests==2.7.0,salt==2015.5.3,scipy==0.16.0,six==1.9.0,spock==1.2,team==1.0,tornado==4.2.1,virtualenv==13.1.0,wheel==0.24.0,ws4py==0.3.4,zenmap==6.47
py27 runtests: PYTHONHASHSEED='1998975469'
py27 runtests: commands[0] | py.test --basetemp=/home/javier/proyectos/minecraft/spockbot/.tox/py27/tmp --junit-xml=xunit-py27.xml --cov=spock --cov-report=term-missing -n 4
============================= test session starts ==============================
platform linux2 -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.2
rootdir: /home/javier/proyectos/minecraft/spockbot, inifile:
plugins: xdist, cov, capturelog
gw0 I / gw1 I / gw2 I / gw3 I
gw0 [3] / gw1 [3] / gw2 [3] / gw3 [3]
scheduling tests via LoadScheduling
...
- generated xml file: /home/javier/proyectos/minecraft/spockbot/xunit-py27.xml -
--------------- coverage: platform linux2, python 2.7.10-final-0 ---------------
Name Stmts Miss Cover Missing
----------------------------------------------------------------
spock/__init__ 9 0 100%
spock/mcmap/__init__ 0 0 100%
spock/mcmap/mapdata 1533 37 98% 66-69, 82, 85, 89, 93-99, 103-113, 117-118, 122, 126-134, 138, 896, 1522
spock/mcmap/smpmap 187 142 24% 33-34, 37, 40-41, 44-45, 48-49, 57-58, 61-62, 75-81, 84-90, 94-96, 101-102, 107-112, 115-119, 122-126, 129-133, 139-140, 143-157, 160-174, 177-190, 193-211, 214-225, 228-247, 250-256, 259-268
spock/mcp/__init__ 0 0 100%
spock/mcp/datautils 195 173 11% 17-28, 31-42, 46-57, 60-71, 76-84, 87-90, 95-97, 100-101, 108-121, 124-137, 146-161, 164-179, 184-209, 212-237
spock/mcp/mcdata 97 0 100%
spock/mcp/mcpacket 82 62 24% 15-16, 23-25, 32-40, 43, 46, 49-78, 82-104, 107-109
spock/mcp/mcpacket_extensions 440 345 22% 27-31, 35-39, 46-50, 54-58, 65-69, 73-77, 84-88, 92-95, 102-116, 120-129, 136-137, 141-143, 150-159, 163-171, 178-187, 191-198, 205-211, 215-222, 229-232, 236-239, 246-248, 252-253, 261-264, 268-271, 279-294, 298-311, 320-329, 333-340, 347-351, 355-359, 366-390, 395-416, 423-426, 430-433, 440-444, 448-453, 460-462, 466-469, 476-492, 496-513, 522-523, 527-528, 535-542, 546-554, 561-577, 581-598, 605-612, 616-624, 631-635, 639-644, 652-654, 658-661
spock/mcp/nbt 315 183 42% 11-13, 38-39, 43, 46, 51, 56, 60, 65, 69, 75, 80-82, 87, 90, 98-100, 103, 144-146, 150-151, 154-156, 160, 163, 166, 169, 173, 176, 180, 184, 187, 189, 198-200, 204, 208-210, 213-216, 220, 223, 226, 229, 232, 235, 238, 242, 252-254, 258-262, 265-268, 272, 275, 278, 281, 285, 294-303, 307-311, 314-321, 325, 328, 331, 334, 337, 340, 343, 347, 351, 353, 355, 358-363, 372-376, 380-392, 395-399, 403, 406-407, 410-419, 422-431, 434-444, 447-452, 455, 458-459, 463, 465, 468, 471-476
spock/mcp/yggdrasil 70 54 23% 5, 17-22, 27-30, 33-38, 41, 47-65, 71-79, 84-88, 93-97, 102-105
spock/plugins/__init__ 3 0 100%
spock/plugins/base 19 4 79% 5-6, 25, 35
spock/plugins/core/__init__ 0 0 100%
spock/plugins/core/auth 87 57 34% 10, 27-32, 36-41, 44-61, 64-65, 80-85, 88, 91-92, 96-132
spock/plugins/core/event 31 17 45% 14-17, 20-23, 26, 29-41, 44, 49
spock/plugins/core/net 190 143 25% 23-24, 27, 30, 34-41, 44-63, 66-68, 72-82, 85-97, 100-101, 104-106, 109-113, 116, 119-138, 141-142, 145-146, 149-151, 177-183, 186-194, 199-208, 213-221, 225-230, 234-239, 243, 247, 251, 254-255, 259-262
spock/plugins/core/settings 20 12 40% 6-7, 10, 13, 18-25
spock/plugins/core/ticker 11 4 64% 16, 19-21
spock/plugins/core/timer 97 59 39% 14-15, 18, 21, 24, 27-28, 31-35, 38, 41, 46-48, 51-52, 55-56, 59, 64-67, 70-71, 74, 78-80, 83-86, 89-93, 96, 99, 103, 113-118, 121-128, 132, 135
spock/plugins/helpers/__init__ 0 0 100%
spock/plugins/helpers/clientinfo 122 90 26% 17-21, 25-30, 34-36, 40-43, 47-51, 55-63, 66, 84-88, 92-94, 98-100, 104-105, 109-112, 116-124, 128-159, 163-164, 168, 173-174, 177
spock/plugins/helpers/entities 138 71 49% 70-77, 106-108, 112, 115-116, 119-123, 126-130, 133-137, 140-144, 147-151, 154-158, 161-177, 180-187, 190-191
spock/plugins/helpers/inventory 347 206 41% 26-31, 34, 37-42, 48-59, 63-69, 72, 75, 78-82, 86-90, 106-119, 122, 126, 130, 134, 140, 149-151, 155, 159, 163, 177, 181, 191, 195, 199, 203, 207, 219, 223, 233, 237, 241, 256, 260, 264, 268, 280, 295-296, 307, 315, 323-326, 332-333, 336-341, 344-349, 352-355, 358, 362-365, 368, 376-392, 396-397, 400-402, 410-415, 422-426, 433-438, 447-460, 463-466, 469-470, 473-475, 479, 483, 490, 494, 511-518, 521-522, 525-527, 530-532, 535, 538-540, 543-549, 552, 555-556, 559-575, 583-598
spock/plugins/helpers/keepalive 8 2 75% 17-18
spock/plugins/helpers/move 45 25 44% 18, 20, 32-35, 38, 41, 44-45, 48, 51-76
spock/plugins/helpers/physics 96 58 40% 51-52, 55-57, 60-64, 67-71, 81-86, 89-91, 94-114, 117-133, 136, 139-140, 143-146
spock/plugins/helpers/respawn 9 1 89% 19
spock/plugins/helpers/start 21 11 48% 23-24, 27-36, 39, 47
spock/plugins/helpers/world 51 30 41% 15-17, 20-21, 24, 27, 43-45, 49-50, 54-55, 59, 63-70, 81-84, 88, 91-92
spock/plugins/loader 46 36 22% 14-37, 41-55, 58
spock/utils 87 46 47% 10-11, 15-17, 20, 23, 26, 31-36, 39, 45, 49-57, 65-66, 69-73, 76, 79-82, 85, 88, 91, 94, 97, 109-112, 118, 121
spock/vector 107 57 47% 6, 9, 12, 17, 20, 23, 31, 34, 39, 42, 47, 53, 60, 63, 66, 71, 74, 77, 80, 83, 88-89, 94, 98, 102, 106, 110, 114, 120-132, 135-138, 141, 148-149, 155, 159, 164, 169, 173, 178, 182-185
----------------------------------------------------------------
TOTAL 4463 1925 57%
=========================== 3 passed in 0.85 seconds ===========================
py30 inst-nodeps: /home/javier/proyectos/minecraft/spockbot/.tox/dist/spock-1.2.zip
py30 installed: Brlapi==0.6.3,CherryPy==3.6.0,coverage==3.7.1,Cython==0.22.1,execnet==1.3.0,ipython==3.2.1,Jinja2==2.8,jsonschema==2.5.1,louis==2.6.3,MarkupSafe==0.23,numpy==1.9.2,pm2ml==2014.12.31.0.54.48,py==1.4.30,pyalpm==0.7,pycrypto==2.6.1,pygobject==3.16.2,pytest==2.7.2,pytest-capturelog==0.7,pytest-cov==2.0.0,pytest-xdist==1.12,pyxdg==0.25,pyzmq==14.7.0,Reflector==2014.11.1.16.22.45,requests==2.7.0,scipy==0.16.0,spock==1.2,team==1.0,tornado==4.2.1,virtualenv==13.1.0,wheel==0.24.0,ws4py==0.3.4
py30 runtests: PYTHONHASHSEED='1998975469'
py30 runtests: commands[0] | py.test --basetemp=/home/javier/proyectos/minecraft/spockbot/.tox/py30/tmp --junit-xml=xunit-py30.xml --cov=spock --cov-report=term-missing -n 4
============================= test session starts ==============================
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.2
rootdir: /home/javier/proyectos/minecraft/spockbot, inifile:
plugins: xdist, cov, capturelog
gw0 I / gw1 I / gw2 I / gw3 I
gw0 [3] / gw1 [3] / gw2 [3] / gw3 [3]
scheduling tests via LoadScheduling
...
- generated xml file: /home/javier/proyectos/minecraft/spockbot/xunit-py30.xml -
---------------- coverage: platform linux, python 3.4.3-final-0 ----------------
Name Stmts Miss Cover Missing
----------------------------------------------------------------
spock/__init__ 9 0 100%
spock/mcmap/__init__ 0 0 100%
spock/mcmap/mapdata 1533 37 98% 66-69, 82, 85, 89, 93-99, 103-113, 117-118, 122, 126-134, 138, 896, 1522
spock/mcmap/smpmap 187 142 24% 33-34, 37, 40-41, 44-45, 48-49, 57-58, 61-62, 75-81, 84-90, 94-96, 101-102, 107-112, 115-119, 122-126, 129-133, 139-140, 143-157, 160-174, 177-190, 193-211, 214-225, 228-247, 250-256, 259-268
spock/mcp/__init__ 0 0 100%
spock/mcp/datautils 195 173 11% 17-28, 31-42, 46-57, 60-71, 76-84, 87-90, 95-97, 100-101, 108-121, 124-137, 146-161, 164-179, 184-209, 212-237
spock/mcp/mcdata 97 0 100%
spock/mcp/mcpacket 82 60 27% 23-25, 32-40, 43, 46, 49-78, 82-104, 107-109
spock/mcp/mcpacket_extensions 440 345 22% 27-31, 35-39, 46-50, 54-58, 65-69, 73-77, 84-88, 92-95, 102-116, 120-129, 136-137, 141-143, 150-159, 163-171, 178-187, 191-198, 205-211, 215-222, 229-232, 236-239, 246-248, 252-253, 261-264, 268-271, 279-294, 298-311, 320-329, 333-340, 347-351, 355-359, 366-390, 395-416, 423-426, 430-433, 440-444, 448-453, 460-462, 466-469, 476-492, 496-513, 522-523, 527-528, 535-542, 546-554, 561-577, 581-598, 605-612, 616-624, 631-635, 639-644, 652-654, 658-661
spock/mcp/nbt 315 181 43% 10, 38-39, 43, 46, 51, 56, 60, 65, 69, 75, 80-82, 87, 90, 98-100, 103, 144-146, 150-151, 154-156, 160, 163, 166, 169, 173, 176, 180, 184, 187, 189, 198-200, 204, 208-210, 213-216, 220, 223, 226, 229, 232, 235, 238, 242, 252-254, 258-262, 265-268, 272, 275, 278, 281, 285, 294-303, 307-311, 314-321, 325, 328, 331, 334, 337, 340, 343, 347, 351, 353, 355, 358-363, 372-376, 380-392, 395-399, 403, 406-407, 410-419, 422-431, 434-444, 447-452, 455, 458-459, 463, 465, 468, 471-476
spock/mcp/yggdrasil 70 56 20% 6-8, 17-22, 27-30, 33-38, 41, 47-65, 71-79, 84-88, 93-97, 102-105
spock/plugins/__init__ 3 0 100%
spock/plugins/base 19 2 89% 25, 35
spock/plugins/core/__init__ 0 0 100%
spock/plugins/core/auth 87 59 32% 11-13, 27-32, 36-41, 44-61, 64-65, 80-85, 88, 91-92, 96-132
spock/plugins/core/event 31 17 45% 14-17, 20-23, 26, 29-41, 44, 49
spock/plugins/core/net 190 143 25% 23-24, 27, 30, 34-41, 44-63, 66-68, 72-82, 85-97, 100-101, 104-106, 109-113, 116, 119-138, 141-142, 145-146, 149-151, 177-183, 186-194, 199-208, 213-221, 225-230, 234-239, 243, 247, 251, 254-255, 259-262
spock/plugins/core/settings 20 12 40% 6-7, 10, 13, 18-25
spock/plugins/core/ticker 11 4 64% 16, 19-21
spock/plugins/core/timer 97 59 39% 14-15, 18, 21, 24, 27-28, 31-35, 38, 41, 46-48, 51-52, 55-56, 59, 64-67, 70-71, 74, 78-80, 83-86, 89-93, 96, 99, 103, 113-118, 121-128, 132, 135
spock/plugins/helpers/__init__ 0 0 100%
spock/plugins/helpers/clientinfo 122 90 26% 17-21, 25-30, 34-36, 40-43, 47-51, 55-63, 66, 84-88, 92-94, 98-100, 104-105, 109-112, 116-124, 128-159, 163-164, 168, 173-174, 177
spock/plugins/helpers/entities 138 71 49% 70-77, 106-108, 112, 115-116, 119-123, 126-130, 133-137, 140-144, 147-151, 154-158, 161-177, 180-187, 190-191
spock/plugins/helpers/inventory 347 206 41% 26-31, 34, 37-42, 48-59, 63-69, 72, 75, 78-82, 86-90, 106-119, 122, 126, 130, 134, 140, 149-151, 155, 159, 163, 177, 181, 191, 195, 199, 203, 207, 219, 223, 233, 237, 241, 256, 260, 264, 268, 280, 295-296, 307, 315, 323-326, 332-333, 336-341, 344-349, 352-355, 358, 362-365, 368, 376-392, 396-397, 400-402, 410-415, 422-426, 433-438, 447-460, 463-466, 469-470, 473-475, 479, 483, 490, 494, 511-518, 521-522, 525-527, 530-532, 535, 538-540, 543-549, 552, 555-556, 559-575, 583-598
spock/plugins/helpers/keepalive 8 2 75% 17-18
spock/plugins/helpers/move 45 25 44% 18, 20, 32-35, 38, 41, 44-45, 48, 51-76
spock/plugins/helpers/physics 96 58 40% 51-52, 55-57, 60-64, 67-71, 81-86, 89-91, 94-114, 117-133, 136, 139-140, 143-146
spock/plugins/helpers/respawn 9 1 89% 19
spock/plugins/helpers/start 21 11 48% 23-24, 27-36, 39, 47
spock/plugins/helpers/world 51 30 41% 15-17, 20-21, 24, 27, 43-45, 49-50, 54-55, 59, 63-70, 81-84, 88, 91-92
spock/plugins/loader 46 36 22% 14-37, 41-55, 58
spock/utils 87 44 49% 15-17, 20, 23, 26, 31-36, 39, 45, 49-57, 65-66, 69-73, 76, 79-82, 85, 88, 91, 94, 97, 109-112, 118, 121
spock/vector 107 57 47% 6, 9, 12, 17, 20, 23, 31, 34, 39, 42, 47, 53, 60, 63, 66, 71, 74, 77, 80, 83, 88-89, 94, 98, 102, 106, 110, 114, 120-132, 135-138, 141, 148-149, 155, 159, 164, 169, 173, 178, 182-185
----------------------------------------------------------------
TOTAL 4463 1921 57%
=========================== 3 passed in 1.15 seconds ===========================
py31 inst-nodeps: /home/javier/proyectos/minecraft/spockbot/.tox/dist/spock-1.2.zip
py31 installed: Brlapi==0.6.3,CherryPy==3.6.0,coverage==3.7.1,Cython==0.22.1,execnet==1.3.0,ipython==3.2.1,Jinja2==2.8,jsonschema==2.5.1,louis==2.6.3,MarkupSafe==0.23,numpy==1.9.2,pm2ml==2014.12.31.0.54.48,py==1.4.30,pyalpm==0.7,pycrypto==2.6.1,pygobject==3.16.2,pytest==2.7.2,pytest-capturelog==0.7,pytest-cov==2.0.0,pytest-xdist==1.12,pyxdg==0.25,pyzmq==14.7.0,Reflector==2014.11.1.16.22.45,requests==2.7.0,scipy==0.16.0,spock==1.2,team==1.0,tornado==4.2.1,virtualenv==13.1.0,wheel==0.24.0,ws4py==0.3.4
py31 runtests: PYTHONHASHSEED='1998975469'
py31 runtests: commands[0] | py.test --basetemp=/home/javier/proyectos/minecraft/spockbot/.tox/py31/tmp --junit-xml=xunit-py31.xml --cov=spock --cov-report=term-missing -n 4
============================= test session starts ==============================
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.2
rootdir: /home/javier/proyectos/minecraft/spockbot, inifile:
plugins: xdist, cov, capturelog
gw0 I / gw1 I / gw2 I / gw3 I
gw0 [3] / gw1 [3] / gw2 [3] / gw3 [3]
scheduling tests via LoadScheduling
...
- generated xml file: /home/javier/proyectos/minecraft/spockbot/xunit-py31.xml -
---------------- coverage: platform linux, python 3.4.3-final-0 ----------------
Name Stmts Miss Cover Missing
----------------------------------------------------------------
spock/__init__ 9 0 100%
spock/mcmap/__init__ 0 0 100%
spock/mcmap/mapdata 1533 37 98% 66-69, 82, 85, 89, 93-99, 103-113, 117-118, 122, 126-134, 138, 896, 1522
spock/mcmap/smpmap 187 142 24% 33-34, 37, 40-41, 44-45, 48-49, 57-58, 61-62, 75-81, 84-90, 94-96, 101-102, 107-112, 115-119, 122-126, 129-133, 139-140, 143-157, 160-174, 177-190, 193-211, 214-225, 228-247, 250-256, 259-268
spock/mcp/__init__ 0 0 100%
spock/mcp/datautils 195 173 11% 17-28, 31-42, 46-57, 60-71, 76-84, 87-90, 95-97, 100-101, 108-121, 124-137, 146-161, 164-179, 184-209, 212-237
spock/mcp/mcdata 97 0 100%
spock/mcp/mcpacket 82 60 27% 23-25, 32-40, 43, 46, 49-78, 82-104, 107-109
spock/mcp/mcpacket_extensions 440 345 22% 27-31, 35-39, 46-50, 54-58, 65-69, 73-77, 84-88, 92-95, 102-116, 120-129, 136-137, 141-143, 150-159, 163-171, 178-187, 191-198, 205-211, 215-222, 229-232, 236-239, 246-248, 252-253, 261-264, 268-271, 279-294, 298-311, 320-329, 333-340, 347-351, 355-359, 366-390, 395-416, 423-426, 430-433, 440-444, 448-453, 460-462, 466-469, 476-492, 496-513, 522-523, 527-528, 535-542, 546-554, 561-577, 581-598, 605-612, 616-624, 631-635, 639-644, 652-654, 658-661
spock/mcp/nbt 315 181 43% 10, 38-39, 43, 46, 51, 56, 60, 65, 69, 75, 80-82, 87, 90, 98-100, 103, 144-146, 150-151, 154-156, 160, 163, 166, 169, 173, 176, 180, 184, 187, 189, 198-200, 204, 208-210, 213-216, 220, 223, 226, 229, 232, 235, 238, 242, 252-254, 258-262, 265-268, 272, 275, 278, 281, 285, 294-303, 307-311, 314-321, 325, 328, 331, 334, 337, 340, 343, 347, 351, 353, 355, 358-363, 372-376, 380-392, 395-399, 403, 406-407, 410-419, 422-431, 434-444, 447-452, 455, 458-459, 463, 465, 468, 471-476
spock/mcp/yggdrasil 70 56 20% 6-8, 17-22, 27-30, 33-38, 41, 47-65, 71-79, 84-88, 93-97, 102-105
spock/plugins/__init__ 3 0 100%
spock/plugins/base 19 2 89% 25, 35
spock/plugins/core/__init__ 0 0 100%
spock/plugins/core/auth 87 59 32% 11-13, 27-32, 36-41, 44-61, 64-65, 80-85, 88, 91-92, 96-132
spock/plugins/core/event 31 17 45% 14-17, 20-23, 26, 29-41, 44, 49
spock/plugins/core/net 190 143 25% 23-24, 27, 30, 34-41, 44-63, 66-68, 72-82, 85-97, 100-101, 104-106, 109-113, 116, 119-138, 141-142, 145-146, 149-151, 177-183, 186-194, 199-208, 213-221, 225-230, 234-239, 243, 247, 251, 254-255, 259-262
spock/plugins/core/settings 20 12 40% 6-7, 10, 13, 18-25
spock/plugins/core/ticker 11 4 64% 16, 19-21
spock/plugins/core/timer 97 59 39% 14-15, 18, 21, 24, 27-28, 31-35, 38, 41, 46-48, 51-52, 55-56, 59, 64-67, 70-71, 74, 78-80, 83-86, 89-93, 96, 99, 103, 113-118, 121-128, 132, 135
spock/plugins/helpers/__init__ 0 0 100%
spock/plugins/helpers/clientinfo 122 90 26% 17-21, 25-30, 34-36, 40-43, 47-51, 55-63, 66, 84-88, 92-94, 98-100, 104-105, 109-112, 116-124, 128-159, 163-164, 168, 173-174, 177
spock/plugins/helpers/entities 138 71 49% 70-77, 106-108, 112, 115-116, 119-123, 126-130, 133-137, 140-144, 147-151, 154-158, 161-177, 180-187, 190-191
spock/plugins/helpers/inventory 347 206 41% 26-31, 34, 37-42, 48-59, 63-69, 72, 75, 78-82, 86-90, 106-119, 122, 126, 130, 134, 140, 149-151, 155, 159, 163, 177, 181, 191, 195, 199, 203, 207, 219, 223, 233, 237, 241, 256, 260, 264, 268, 280, 295-296, 307, 315, 323-326, 332-333, 336-341, 344-349, 352-355, 358, 362-365, 368, 376-392, 396-397, 400-402, 410-415, 422-426, 433-438, 447-460, 463-466, 469-470, 473-475, 479, 483, 490, 494, 511-518, 521-522, 525-527, 530-532, 535, 538-540, 543-549, 552, 555-556, 559-575, 583-598
spock/plugins/helpers/keepalive 8 2 75% 17-18
spock/plugins/helpers/move 45 25 44% 18, 20, 32-35, 38, 41, 44-45, 48, 51-76
spock/plugins/helpers/physics 96 58 40% 51-52, 55-57, 60-64, 67-71, 81-86, 89-91, 94-114, 117-133, 136, 139-140, 143-146
spock/plugins/helpers/respawn 9 1 89% 19
spock/plugins/helpers/start 21 11 48% 23-24, 27-36, 39, 47
spock/plugins/helpers/world 51 30 41% 15-17, 20-21, 24, 27, 43-45, 49-50, 54-55, 59, 63-70, 81-84, 88, 91-92
spock/plugins/loader 46 36 22% 14-37, 41-55, 58
spock/utils 87 44 49% 15-17, 20, 23, 26, 31-36, 39, 45, 49-57, 65-66, 69-73, 76, 79-82, 85, 88, 91, 94, 97, 109-112, 118, 121
spock/vector 107 57 47% 6, 9, 12, 17, 20, 23, 31, 34, 39, 42, 47, 53, 60, 63, 66, 71, 74, 77, 80, 83, 88-89, 94, 98, 102, 106, 110, 114, 120-132, 135-138, 141, 148-149, 155, 159, 164, 169, 173, 178, 182-185
----------------------------------------------------------------
TOTAL 4463 1921 57%
=========================== 3 passed in 0.91 seconds ===========================
py32 create: /home/javier/proyectos/minecraft/spockbot/.tox/py32
ERROR: InterpreterNotFound: python3.2
py33 create: /home/javier/proyectos/minecraft/spockbot/.tox/py33
ERROR: InterpreterNotFound: python3.3
py34 inst-nodeps: /home/javier/proyectos/minecraft/spockbot/.tox/dist/spock-1.2.zip
py34 installed: Brlapi==0.6.3,CherryPy==3.6.0,coverage==3.7.1,Cython==0.22.1,execnet==1.3.0,ipython==3.2.1,Jinja2==2.8,jsonschema==2.5.1,louis==2.6.3,MarkupSafe==0.23,numpy==1.9.2,pm2ml==2014.12.31.0.54.48,py==1.4.30,pyalpm==0.7,pycrypto==2.6.1,pygobject==3.16.2,pytest==2.7.2,pytest-capturelog==0.7,pytest-cov==2.0.0,pytest-xdist==1.12,pyxdg==0.25,pyzmq==14.7.0,Reflector==2014.11.1.16.22.45,requests==2.7.0,scipy==0.16.0,spock==1.2,team==1.0,tornado==4.2.1,virtualenv==13.1.0,wheel==0.24.0,ws4py==0.3.4
py34 runtests: PYTHONHASHSEED='1998975469'
py34 runtests: commands[0] | py.test --basetemp=/home/javier/proyectos/minecraft/spockbot/.tox/py34/tmp --junit-xml=xunit-py34.xml --cov=spock --cov-report=term-missing -n 4
============================= test session starts ==============================
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.2
rootdir: /home/javier/proyectos/minecraft/spockbot, inifile:
plugins: xdist, cov, capturelog
gw0 I / gw1 I / gw2 I / gw3 I
gw0 [3] / gw1 [3] / gw2 [3] / gw3 [3]
scheduling tests via LoadScheduling
...
- generated xml file: /home/javier/proyectos/minecraft/spockbot/xunit-py34.xml -
---------------- coverage: platform linux, python 3.4.3-final-0 ----------------
Name Stmts Miss Cover Missing
----------------------------------------------------------------
spock/__init__ 9 0 100%
spock/mcmap/__init__ 0 0 100%
spock/mcmap/mapdata 1533 37 98% 66-69, 82, 85, 89, 93-99, 103-113, 117-118, 122, 126-134, 138, 896, 1522
spock/mcmap/smpmap 187 142 24% 33-34, 37, 40-41, 44-45, 48-49, 57-58, 61-62, 75-81, 84-90, 94-96, 101-102, 107-112, 115-119, 122-126, 129-133, 139-140, 143-157, 160-174, 177-190, 193-211, 214-225, 228-247, 250-256, 259-268
spock/mcp/__init__ 0 0 100%
spock/mcp/datautils 195 173 11% 17-28, 31-42, 46-57, 60-71, 76-84, 87-90, 95-97, 100-101, 108-121, 124-137, 146-161, 164-179, 184-209, 212-237
spock/mcp/mcdata 97 0 100%
spock/mcp/mcpacket 82 60 27% 23-25, 32-40, 43, 46, 49-78, 82-104, 107-109
spock/mcp/mcpacket_extensions 440 345 22% 27-31, 35-39, 46-50, 54-58, 65-69, 73-77, 84-88, 92-95, 102-116, 120-129, 136-137, 141-143, 150-159, 163-171, 178-187, 191-198, 205-211, 215-222, 229-232, 236-239, 246-248, 252-253, 261-264, 268-271, 279-294, 298-311, 320-329, 333-340, 347-351, 355-359, 366-390, 395-416, 423-426, 430-433, 440-444, 448-453, 460-462, 466-469, 476-492, 496-513, 522-523, 527-528, 535-542, 546-554, 561-577, 581-598, 605-612, 616-624, 631-635, 639-644, 652-654, 658-661
spock/mcp/nbt 315 181 43% 10, 38-39, 43, 46, 51, 56, 60, 65, 69, 75, 80-82, 87, 90, 98-100, 103, 144-146, 150-151, 154-156, 160, 163, 166, 169, 173, 176, 180, 184, 187, 189, 198-200, 204, 208-210, 213-216, 220, 223, 226, 229, 232, 235, 238, 242, 252-254, 258-262, 265-268, 272, 275, 278, 281, 285, 294-303, 307-311, 314-321, 325, 328, 331, 334, 337, 340, 343, 347, 351, 353, 355, 358-363, 372-376, 380-392, 395-399, 403, 406-407, 410-419, 422-431, 434-444, 447-452, 455, 458-459, 463, 465, 468, 471-476
spock/mcp/yggdrasil 70 56 20% 6-8, 17-22, 27-30, 33-38, 41, 47-65, 71-79, 84-88, 93-97, 102-105
spock/plugins/__init__ 3 0 100%
spock/plugins/base 19 2 89% 25, 35
spock/plugins/core/__init__ 0 0 100%
spock/plugins/core/auth 87 59 32% 11-13, 27-32, 36-41, 44-61, 64-65, 80-85, 88, 91-92, 96-132
spock/plugins/core/event 31 17 45% 14-17, 20-23, 26, 29-41, 44, 49
spock/plugins/core/net 190 143 25% 23-24, 27, 30, 34-41, 44-63, 66-68, 72-82, 85-97, 100-101, 104-106, 109-113, 116, 119-138, 141-142, 145-146, 149-151, 177-183, 186-194, 199-208, 213-221, 225-230, 234-239, 243, 247, 251, 254-255, 259-262
spock/plugins/core/settings 20 12 40% 6-7, 10, 13, 18-25
spock/plugins/core/ticker 11 4 64% 16, 19-21
spock/plugins/core/timer 97 59 39% 14-15, 18, 21, 24, 27-28, 31-35, 38, 41, 46-48, 51-52, 55-56, 59, 64-67, 70-71, 74, 78-80, 83-86, 89-93, 96, 99, 103, 113-118, 121-128, 132, 135
spock/plugins/helpers/__init__ 0 0 100%
spock/plugins/helpers/clientinfo 122 90 26% 17-21, 25-30, 34-36, 40-43, 47-51, 55-63, 66, 84-88, 92-94, 98-100, 104-105, 109-112, 116-124, 128-159, 163-164, 168, 173-174, 177
spock/plugins/helpers/entities 138 71 49% 70-77, 106-108, 112, 115-116, 119-123, 126-130, 133-137, 140-144, 147-151, 154-158, 161-177, 180-187, 190-191
spock/plugins/helpers/inventory 347 206 41% 26-31, 34, 37-42, 48-59, 63-69, 72, 75, 78-82, 86-90, 106-119, 122, 126, 130, 134, 140, 149-151, 155, 159, 163, 177, 181, 191, 195, 199, 203, 207, 219, 223, 233, 237, 241, 256, 260, 264, 268, 280, 295-296, 307, 315, 323-326, 332-333, 336-341, 344-349, 352-355, 358, 362-365, 368, 376-392, 396-397, 400-402, 410-415, 422-426, 433-438, 447-460, 463-466, 469-470, 473-475, 479, 483, 490, 494, 511-518, 521-522, 525-527, 530-532, 535, 538-540, 543-549, 552, 555-556, 559-575, 583-598
spock/plugins/helpers/keepalive 8 2 75% 17-18
spock/plugins/helpers/move 45 25 44% 18, 20, 32-35, 38, 41, 44-45, 48, 51-76
spock/plugins/helpers/physics 96 58 40% 51-52, 55-57, 60-64, 67-71, 81-86, 89-91, 94-114, 117-133, 136, 139-140, 143-146
spock/plugins/helpers/respawn 9 1 89% 19
spock/plugins/helpers/start 21 11 48% 23-24, 27-36, 39, 47
spock/plugins/helpers/world 51 30 41% 15-17, 20-21, 24, 27, 43-45, 49-50, 54-55, 59, 63-70, 81-84, 88, 91-92
spock/plugins/loader 46 36 22% 14-37, 41-55, 58
spock/utils 87 44 49% 15-17, 20, 23, 26, 31-36, 39, 45, 49-57, 65-66, 69-73, 76, 79-82, 85, 88, 91, 94, 97, 109-112, 118, 121
spock/vector 107 57 47% 6, 9, 12, 17, 20, 23, 31, 34, 39, 42, 47, 53, 60, 63, 66, 71, 74, 77, 80, 83, 88-89, 94, 98, 102, 106, 110, 114, 120-132, 135-138, 141, 148-149, 155, 159, 164, 169, 173, 178, 182-185
----------------------------------------------------------------
TOTAL 4463 1921 57%
=========================== 3 passed in 1.18 seconds ===========================
flake8 inst-nodeps: /home/javier/proyectos/minecraft/spockbot/.tox/dist/spock-1.2.zip
flake8 installed: Brlapi==0.6.3,CherryPy==3.6.0,Cython==0.22.1,flake8==2.4.1,flake8-import-order==0.6.1,ipython==3.2.1,Jinja2==2.8,jsonschema==2.5.1,louis==2.6.3,MarkupSafe==0.23,mccabe==0.3.1,numpy==1.9.2,pep8==1.5.7,pep8-naming==0.3.3,pm2ml==2014.12.31.0.54.48,pyalpm==0.7,pyflakes==0.8.1,pygobject==3.16.2,pyxdg==0.25,pyzmq==14.7.0,Reflector==2014.11.1.16.22.45,requests==2.7.0,scipy==0.16.0,spock==1.2,team==1.0,tornado==4.2.1,virtualenv==13.1.0,wheel==0.24.0,ws4py==0.3.4
flake8 runtests: PYTHONHASHSEED='1998975469'
flake8 runtests: commands[0] | flake8 --show-source --statistics spock tests
spock/__init__.py:3:1: I100 Imports statements are in the wrong order. import logging should be before from spock.plugins.loader
import logging
^
spock/plugins/__init__.py:1:1: I101 Imported names are in the wrong order. Should be auth, event, net, ticker, timer
from spock.plugins.core import event, net, auth, timer, ticker
^
spock/plugins/__init__.py:2:1: I101 Imported names are in the wrong order. Should be clientinfo, entities, inventory, keepalive, move, physics, respawn, start, world
from spock.plugins.helpers import start, keepalive, clientinfo, entities, world, move, respawn, physics, inventory
^
spock/plugins/__init__.py:2:80: E501 line too long (114 > 79 characters)
from spock.plugins.helpers import start, keepalive, clientinfo, entities, world, move, respawn, physics, inventory
^
spock/plugins/__init__.py:5:1: W191 indentation contains tabs
('event', event.EventPlugin),
^
spock/plugins/__init__.py:6:1: W191 indentation contains tabs
('net', net.NetPlugin),
^
spock/plugins/__init__.py:7:1: W191 indentation contains tabs
('auth', auth.AuthPlugin),
^
spock/plugins/__init__.py:8:1: W191 indentation contains tabs
('ticker', ticker.TickerPlugin),
^
spock/plugins/__init__.py:9:1: W191 indentation contains tabs
('timers', timer.TimerPlugin),
^
spock/plugins/__init__.py:10:1: W191 indentation contains tabs
('start', start.StartPlugin),
^
spock/plugins/__init__.py:11:1: W191 indentation contains tabs
('keepalive', keepalive.KeepalivePlugin),
^
spock/plugins/__init__.py:12:1: W191 indentation contains tabs
('respawn', respawn.RespawnPlugin),
^
spock/plugins/__init__.py:13:1: W191 indentation contains tabs
('move', move.MovementPlugin),
^
spock/plugins/__init__.py:14:1: W191 indentation contains tabs
('world', world.WorldPlugin),
^
spock/plugins/__init__.py:15:1: W191 indentation contains tabs
('clientinfo', clientinfo.ClientInfoPlugin),
^
spock/plugins/__init__.py:16:1: W191 indentation contains tabs
('entities', entities.EntityPlugin),
^
spock/plugins/__init__.py:17:1: W191 indentation contains tabs
('physics', physics.PhysicsPlugin),
^
spock/plugins/__init__.py:18:1: W191 indentation contains tabs
('inventory', inventory.InventoryPlugin),
^
spock/plugins/__init__.py:20:1: W391 blank line at end of file
^
spock/plugins/base.py:4:3: E111 indentation is not a multiple of four
basestring
^
spock/plugins/base.py:6:3: E111 indentation is not a multiple of four
basestring = str
^
spock/plugins/base.py:8:1: E302 expected 2 blank lines, found 1
class PluginBase(object):
^
spock/plugins/base.py:11:1: E101 indentation contains mixed spaces and tabs
Extending from PluginBase allows you to declare any requirements, default
^
spock/plugins/base.py:11:1: W191 indentation contains tabs
Extending from PluginBase allows you to declare any requirements, default
^
spock/plugins/base.py:12:1: W191 indentation contains tabs
settings, and event listeners in a declarative way. Define the appropriate
^
spock/plugins/base.py:13:1: W191 indentation contains tabs
attributes on your subclass and enjoy cleaner code.
^
spock/plugins/base.py:14:1: W191 indentation contains tabs
"""
^
spock/plugins/base.py:15:1: W191 indentation contains tabs
requires = ()
^
spock/plugins/base.py:16:1: W191 indentation contains tabs
defaults = {}
^
spock/plugins/base.py:17:1: W191 indentation contains tabs
events = {}
^
spock/plugins/base.py:19:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/base.py:20:1: W191 indentation contains tabs
# Load the plugin's settings.
^
spock/plugins/base.py:21:1: W191 indentation contains tabs
self.settings = get_settings(self.defaults, settings)
^
spock/plugins/base.py:23:1: W191 indentation contains tabs
# Load all the plugin's dependencies.
^
spock/plugins/base.py:24:1: W191 indentation contains tabs
if isinstance(self.requires, basestring):
^
spock/plugins/base.py:25:1: W191 indentation contains tabs
setattr(self, self.requires.lower(), ploader.requires(self.requires))
^
spock/plugins/base.py:26:1: W191 indentation contains tabs
else:
^
spock/plugins/base.py:27:1: W191 indentation contains tabs
for requirement in self.requires:
^
spock/plugins/base.py:28:1: W191 indentation contains tabs
setattr(self, requirement.lower(), ploader.requires(requirement))
^
spock/plugins/base.py:30:1: W191 indentation contains tabs
# Setup the plugin's event handlers.
^
spock/plugins/base.py:31:1: W191 indentation contains tabs
for event in self.events.keys():
^
spock/plugins/base.py:32:1: W191 indentation contains tabs
if hasattr(self, self.events[event]):
^
spock/plugins/base.py:33:1: W191 indentation contains tabs
ploader.reg_event_handler(event, getattr(self, self.events[event]))
^
spock/plugins/base.py:34:1: W191 indentation contains tabs
else:
^
spock/plugins/base.py:35:1: W191 indentation contains tabs
raise AttributeError("'%s' object has no attribute '%s'"
^
spock/plugins/base.py:36:1: E101 indentation contains mixed spaces and tabs
% (self.__class__.__name__, self.events[event]))
^
spock/plugins/base.py:36:34: E127 continuation line over-indented for visual indent
% (self.__class__.__name__, self.events[event]))
^
spock/plugins/base.py:36:80: E501 line too long (81 > 79 characters)
% (self.__class__.__name__, self.events[event]))
^
spock/plugins/helpers/keepalive.py:6:1: F401 'mcdata' imported but unused
from spock.mcp import mcdata, mcpacket
^
spock/plugins/helpers/keepalive.py:6:1: F401 'mcpacket' imported but unused
from spock.mcp import mcdata, mcpacket
^
spock/plugins/helpers/keepalive.py:9:1: E302 expected 2 blank lines, found 1
class KeepalivePlugin(PluginBase):
^
spock/plugins/helpers/keepalive.py:10:1: W191 indentation contains tabs
requires = ('Net')
^
spock/plugins/helpers/keepalive.py:11:1: W191 indentation contains tabs
events = {
^
spock/plugins/helpers/keepalive.py:12:1: W191 indentation contains tabs
'PLAY<Keep Alive': 'handle_keep_alive',
^
spock/plugins/helpers/keepalive.py:13:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/keepalive.py:15:1: W191 indentation contains tabs
#Keep Alive - Reflects data back to server
^
spock/plugins/helpers/keepalive.py:15:2: E265 block comment should start with '# '
#Keep Alive - Reflects data back to server
^
spock/plugins/helpers/keepalive.py:16:1: W191 indentation contains tabs
def handle_keep_alive(self, name, packet):
^
spock/plugins/helpers/keepalive.py:17:1: W191 indentation contains tabs
packet.new_ident('PLAY>Keep Alive')
^
spock/plugins/helpers/keepalive.py:18:1: W191 indentation contains tabs
self.net.push(packet)
^
spock/plugins/loader.py:5:1: I100 Imports statements are in the wrong order. import traceback should be before from spock.plugins.core.settings
import traceback
^
spock/plugins/loader.py:5:1: I201 Missing newline before sections or imports.
import traceback
^
spock/plugins/loader.py:6:1: I100 Imports statements are in the wrong order. import logging should be before import traceback
import logging
^
spock/plugins/loader.py:12:1: E302 expected 2 blank lines, found 1
class PluginLoader:
^
spock/plugins/loader.py:13:1: W191 indentation contains tabs
def __init__(self, **kwargs):
^
spock/plugins/loader.py:14:1: W191 indentation contains tabs
self.announce = {}
^
spock/plugins/loader.py:15:1: W191 indentation contains tabs
self.extensions = {}
^
spock/plugins/loader.py:16:1: W191 indentation contains tabs
self.events = []
^
spock/plugins/loader.py:17:1: W191 indentation contains tabs
kwargs.get('settings_mixin', SettingsPlugin)(self, kwargs)
^
spock/plugins/loader.py:18:1: W191 indentation contains tabs
self.fetch = self.requires('PloaderFetch')
^
spock/plugins/loader.py:19:1: W191 indentation contains tabs
self.plugins = self.fetch.get_plugins()
^
spock/plugins/loader.py:21:1: W191 indentation contains tabs
for plugin in self.plugins:
^
spock/plugins/loader.py:22:1: W191 indentation contains tabs
if hasattr(plugin, 'pl_announce'):
^
spock/plugins/loader.py:23:1: W191 indentation contains tabs
for ident in plugin.pl_announce:
^
spock/plugins/loader.py:24:1: W191 indentation contains tabs
self.announce[ident] = plugin
^
spock/plugins/loader.py:25:1: W191 indentation contains tabs
if hasattr(plugin, 'pl_event'):
^
spock/plugins/loader.py:26:1: W191 indentation contains tabs
for ident in plugin.pl_event:
^
spock/plugins/loader.py:27:1: W191 indentation contains tabs
self.events.append(ident)
^
spock/plugins/loader.py:29:1: W191 indentation contains tabs
event = self.requires('Event')
^
spock/plugins/loader.py:30:1: W191 indentation contains tabs
self.reg_event_handler = event.reg_event_handler if event else None
^
spock/plugins/loader.py:31:1: W191 indentation contains tabs
while self.plugins:
^
spock/plugins/loader.py:32:1: W191 indentation contains tabs
plugin = self.plugins.pop()
^
spock/plugins/loader.py:33:1: W191 indentation contains tabs
try:
^
spock/plugins/loader.py:34:1: W191 indentation contains tabs
plugin(self, self.fetch.get_plugin_settings(plugin))
^
spock/plugins/loader.py:35:1: W191 indentation contains tabs
except Exception as e:
^
spock/plugins/loader.py:35:4: F841 local variable 'e' is assigned to but never used
except Exception as e:
^
spock/plugins/loader.py:36:1: W191 indentation contains tabs
logger.error('LOADER: Plugin %s failed to load', plugin.__name__)
^
spock/plugins/loader.py:37:1: W191 indentation contains tabs
print(traceback.format_exc())
^
spock/plugins/loader.py:40:1: W191 indentation contains tabs
def requires(self, ident, soft = False, warning = None):
^
spock/plugins/loader.py:40:2: E303 too many blank lines (2)
def requires(self, ident, soft = False, warning = None):
^
spock/plugins/loader.py:40:32: E251 unexpected spaces around keyword / parameter equals
def requires(self, ident, soft = False, warning = None):
^
spock/plugins/loader.py:40:34: E251 unexpected spaces around keyword / parameter equals
def requires(self, ident, soft = False, warning = None):
^
spock/plugins/loader.py:40:49: E251 unexpected spaces around keyword / parameter equals
def requires(self, ident, soft = False, warning = None):
^
spock/plugins/loader.py:40:51: E251 unexpected spaces around keyword / parameter equals
def requires(self, ident, soft = False, warning = None):
^
spock/plugins/loader.py:41:1: W191 indentation contains tabs
if ident not in self.extensions:
^
spock/plugins/loader.py:42:1: W191 indentation contains tabs
if ident in self.announce:
^
spock/plugins/loader.py:43:1: W191 indentation contains tabs
plugin = self.announce[ident]
^
spock/plugins/loader.py:44:1: W191 indentation contains tabs
self.plugins.remove(plugin)
^
spock/plugins/loader.py:45:1: W191 indentation contains tabs
plugin(self, self.fetch.get_plugin_settings(plugin))
^
spock/plugins/loader.py:46:1: W191 indentation contains tabs
elif ident in self.events:
^
spock/plugins/loader.py:47:1: W191 indentation contains tabs
return True
^
spock/plugins/loader.py:48:1: W191 indentation contains tabs
else:
^
spock/plugins/loader.py:49:1: W191 indentation contains tabs
softness = "soft" if soft else "hard"
^
spock/plugins/loader.py:50:1: W191 indentation contains tabs
if warning:
^
spock/plugins/loader.py:51:1: W191 indentation contains tabs
logger.warn(pl_warn, softness, ident, warning)
^
spock/plugins/loader.py:52:1: W191 indentation contains tabs
else:
^
spock/plugins/loader.py:53:1: W191 indentation contains tabs
logger.warn(base_warn, softness, ident)
^
spock/plugins/loader.py:54:1: W191 indentation contains tabs
return None
^
spock/plugins/loader.py:55:1: W191 indentation contains tabs
return self.extensions[ident]
^
spock/plugins/loader.py:57:1: W191 indentation contains tabs
def provides(self, ident, obj):
^
spock/plugins/loader.py:58:1: W191 indentation contains tabs
self.extensions[ident] = obj
^
spock/plugins/helpers/respawn.py:8:1: I100 Imports statements are in the wrong order. import logging should be before from spock.plugins.base
import logging
^
spock/plugins/helpers/respawn.py:11:1: E302 expected 2 blank lines, found 1
class RespawnPlugin(PluginBase):
^
spock/plugins/helpers/respawn.py:12:1: W191 indentation contains tabs
requires = ('Net', 'ClientInfo')
^
spock/plugins/helpers/respawn.py:13:1: W191 indentation contains tabs
events = {
^
spock/plugins/helpers/respawn.py:14:1: W191 indentation contains tabs
'cl_death': 'handle_death'
^
spock/plugins/helpers/respawn.py:15:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/respawn.py:17:1: W191 indentation contains tabs
#You be dead
^
spock/plugins/helpers/respawn.py:17:2: E265 block comment should start with '# '
#You be dead
^
spock/plugins/helpers/respawn.py:18:1: W191 indentation contains tabs
def handle_death(self, name, data):
^
spock/plugins/helpers/respawn.py:19:1: W191 indentation contains tabs
self.net.push_packet(
^
spock/plugins/helpers/respawn.py:20:1: W191 indentation contains tabs
'PLAY>Client Status', {'action': mcdata.CL_STATUS_RESPAWN}
^
spock/plugins/helpers/respawn.py:21:1: W191 indentation contains tabs
)
^
spock/utils.py:4:1: E265 block comment should start with '# '
#silly python2
^
spock/utils.py:6:1: F401 'math' imported but unused
import math
^
spock/utils.py:7:1: I201 Missing newline before sections or imports.
from spock.vector import Vector3
^
spock/utils.py:9:1: W191 indentation contains tabs
string_types = unicode
^
spock/utils.py:11:1: W191 indentation contains tabs
string_types = str
^
spock/utils.py:13:1: E302 expected 2 blank lines, found 1
class Info(object):
^
spock/utils.py:14:1: W191 indentation contains tabs
def set_dict(self, data):
^
spock/utils.py:15:1: W191 indentation contains tabs
for key in data:
^
spock/utils.py:16:1: W191 indentation contains tabs
if hasattr(self, key):
^
spock/utils.py:17:1: W191 indentation contains tabs
setattr(self, key, data[key])
^
spock/utils.py:19:1: W191 indentation contains tabs
def get_dict(self):
^
spock/utils.py:20:1: W191 indentation contains tabs
return self.__dict__
^
spock/utils.py:22:1: W191 indentation contains tabs
def __repr__(self):
^
spock/utils.py:23:1: W191 indentation contains tabs
return repr(self.__dict__)
^
spock/utils.py:25:1: W191 indentation contains tabs
def __str__(self):
^
spock/utils.py:26:1: W191 indentation contains tabs
return str(self.__dict__)
^
spock/utils.py:28:1: E302 expected 2 blank lines, found 1
class Position(Info):
^
spock/utils.py:29:1: W191 indentation contains tabs
"Used for things that require encoding position for the protocol, use spock.vector.Vector3 if you want higher level vector functions"
^
spock/utils.py:29:80: E501 line too long (134 > 79 characters)
"Used for things that require encoding position for the protocol, use spock.vector.Vector3 if you want higher level vector functions"
^
spock/utils.py:30:1: W191 indentation contains tabs
def __init__(self, x=0.0, y=0.0, z=0.0, vec=None):
^
spock/utils.py:31:1: W191 indentation contains tabs
if vec:
^
spock/utils.py:32:1: W191 indentation contains tabs
self.x, self.y, self.z = vec[:3]
^
spock/utils.py:33:1: W191 indentation contains tabs
else:
^
spock/utils.py:34:1: W191 indentation contains tabs
self.x = x
^
spock/utils.py:35:1: W191 indentation contains tabs
self.y = y
^
spock/utils.py:36:1: W191 indentation contains tabs
self.z = z
^
spock/utils.py:38:1: W191 indentation contains tabs
def __str__(self):
^
spock/utils.py:39:1: W191 indentation contains tabs
return "({:.2f}, {:.2f}, {:.2f})".format(self.x, self.y, self.z)
^
spock/utils.py:41:1: W191 indentation contains tabs
def vec3(self):
^
spock/utils.py:43:1: W191 indentation contains tabs
Return a Vector3 object from this one
^
spock/utils.py:44:1: W191 indentation contains tabs
"""
^
spock/utils.py:45:1: W191 indentation contains tabs
return Vector3(self.x, self.y, self.z)
^
spock/utils.py:47:1: E302 expected 2 blank lines, found 1
class BoundingBox:
^
spock/utils.py:48:1: W191 indentation contains tabs
def __init__(self, w, h, d=None, offset=(0,0,0)):
^
spock/utils.py:48:44: E231 missing whitespace after ','
def __init__(self, w, h, d=None, offset=(0,0,0)):
^
spock/utils.py:48:46: E231 missing whitespace after ','
def __init__(self, w, h, d=None, offset=(0,0,0)):
^
spock/utils.py:49:1: W191 indentation contains tabs
self.x = offset[0]
^
spock/utils.py:50:1: W191 indentation contains tabs
self.y = offset[1]
^
spock/utils.py:51:1: W191 indentation contains tabs
self.z = offset[2]
^
spock/utils.py:52:1: W191 indentation contains tabs
self.w = w #x
^
spock/utils.py:52:13: E261 at least two spaces before inline comment
self.w = w #x
^
spock/utils.py:52:14: E262 inline comment should start with '# '
self.w = w #x
^
spock/utils.py:53:1: W191 indentation contains tabs
self.h = h #y
^
spock/utils.py:53:13: E261 at least two spaces before inline comment
self.h = h #y
^
spock/utils.py:53:14: E262 inline comment should start with '# '
self.h = h #y
^
spock/utils.py:54:1: W191 indentation contains tabs
if d:
^
spock/utils.py:55:1: W191 indentation contains tabs
self.d = d #z
^
spock/utils.py:55:14: E261 at least two spaces before inline comment
self.d = d #z
^
spock/utils.py:55:15: E262 inline comment should start with '# '
self.d = d #z
^
spock/utils.py:56:1: W191 indentation contains tabs
else:
^
spock/utils.py:57:1: W191 indentation contains tabs
self.d = w
^
spock/utils.py:59:1: E302 expected 2 blank lines, found 1
class BufferUnderflowException(Exception):
^
spock/utils.py:60:1: W191 indentation contains tabs
pass
^
spock/utils.py:62:1: E302 expected 2 blank lines, found 1
class BoundBuffer:
^
spock/utils.py:63:1: W191 indentation contains tabs
backup = b''
^
spock/utils.py:64:1: W191 indentation contains tabs
def __init__(self, *args):
^
spock/utils.py:64:2: E301 expected 1 blank line, found 0
def __init__(self, *args):
^
spock/utils.py:65:1: W191 indentation contains tabs
self.count = 0
^
spock/utils.py:66:1: W191 indentation contains tabs
self.buff = (args[0] if args else b'')
^
spock/utils.py:68:1: W191 indentation contains tabs
def recv(self, bytes):
^
spock/utils.py:69:1: W191 indentation contains tabs
if len(self.buff) < bytes:
^
spock/utils.py:70:1: W191 indentation contains tabs
raise BufferUnderflowException()
^
spock/utils.py:71:1: W191 indentation contains tabs
self.count += bytes
^
spock/utils.py:72:1: W191 indentation contains tabs
o, self.buff = self.buff[:bytes], self.buff[bytes:]
^
spock/utils.py:73:1: W191 indentation contains tabs
return o
^
spock/utils.py:75:1: W191 indentation contains tabs
def append(self, bytes):
^
spock/utils.py:76:1: W191 indentation contains tabs
self.buff += bytes
^
spock/utils.py:78:1: W191 indentation contains tabs
def flush(self):
^
spock/utils.py:79:1: W191 indentation contains tabs
out = self.buff
^
spock/utils.py:80:1: W191 indentation contains tabs
self.buff = b''
^
spock/utils.py:81:1: W191 indentation contains tabs
self.save()
^
spock/utils.py:82:1: W191 indentation contains tabs
return out
^
spock/utils.py:84:1: W191 indentation contains tabs
def save(self):
^
spock/utils.py:85:1: W191 indentation contains tabs
self.backup = self.buff
^
spock/utils.py:87:1: W191 indentation contains tabs
def revert(self):
^
spock/utils.py:88:1: W191 indentation contains tabs
self.buff = self.backup
^
spock/utils.py:90:1: W191 indentation contains tabs
def tell(self):
^
spock/utils.py:91:1: W191 indentation contains tabs
return self.count
^
spock/utils.py:93:1: W191 indentation contains tabs
def __len__(self):
^
spock/utils.py:94:1: W191 indentation contains tabs
return self.buff.__len__()
^
spock/utils.py:96:1: W191 indentation contains tabs
def __repr__(self):
^
spock/utils.py:97:1: W191 indentation contains tabs
return 'BoundBuffer: ' + str(self.buff)
^
spock/utils.py:99:1: W191 indentation contains tabs
read = recv
^
spock/utils.py:100:1: W191 indentation contains tabs
write = append
^
spock/utils.py:102:1: E302 expected 2 blank lines, found 1
def pl_announce(*args):
^
spock/utils.py:103:1: W191 indentation contains tabs
def inner(cl):
^
spock/utils.py:104:1: W191 indentation contains tabs
cl.pl_announce = args
^
spock/utils.py:105:1: W191 indentation contains tabs
return cl
^
spock/utils.py:106:1: W191 indentation contains tabs
return inner
^
spock/utils.py:108:1: E302 expected 2 blank lines, found 1
def pl_event(*args):
^
spock/utils.py:109:1: W191 indentation contains tabs
def inner(cl):
^
spock/utils.py:110:1: W191 indentation contains tabs
cl.pl_event = args
^
spock/utils.py:111:1: W191 indentation contains tabs
return cl
^
spock/utils.py:112:1: W191 indentation contains tabs
return inner
^
spock/utils.py:114:1: E302 expected 2 blank lines, found 1
def get_settings(defaults, settings):
^
spock/utils.py:115:1: W191 indentation contains tabs
return dict(copy.deepcopy(defaults), **settings)
^
spock/utils.py:117:1: E302 expected 2 blank lines, found 1
def mapshort2id(data):
^
spock/utils.py:118:1: W191 indentation contains tabs
return data>>4, data&0x0F
^
spock/utils.py:118:13: E227 missing whitespace around bitwise or shift operator
return data>>4, data&0x0F
^
spock/utils.py:118:22: E227 missing whitespace around bitwise or shift operator
return data>>4, data&0x0F
^
spock/utils.py:120:1: E302 expected 2 blank lines, found 1
def ByteToHex(byteStr):
^
spock/utils.py:120:5: N802 function name should be lowercase
def ByteToHex(byteStr):
^
spock/utils.py:120:5: N803 argument name should be lowercase
def ByteToHex(byteStr):
^
spock/utils.py:121:1: W191 indentation contains tabs
return ''.join( [ "%02X " % x for x in byteStr ] ).strip()
^
spock/utils.py:121:17: E201 whitespace after '('
return ''.join( [ "%02X " % x for x in byteStr ] ).strip()
^
spock/utils.py:121:19: E201 whitespace after '['
return ''.join( [ "%02X " % x for x in byteStr ] ).strip()
^
spock/utils.py:121:48: E202 whitespace before ']'
return ''.join( [ "%02X " % x for x in byteStr ] ).strip()
^
spock/utils.py:121:50: E202 whitespace before ')'
return ''.join( [ "%02X " % x for x in byteStr ] ).strip()
^
spock/plugins/helpers/move.py:3:80: E501 line too long (80 > 79 characters)
position packets so the client doesn't try to pull itself in a dozen directions.
^
spock/plugins/helpers/move.py:8:1: F401 'mcdata' imported but unused
from spock.mcp import mcdata
^
spock/plugins/helpers/move.py:8:1: I100 Imports statements are in the wrong order. from spock.mcp should be before from spock.utils
from spock.mcp import mcdata
^
spock/plugins/helpers/move.py:10:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.utils
from spock.plugins.base import PluginBase
^
spock/plugins/helpers/move.py:11:1: I100 Imports statements are in the wrong order. import math should be before from spock.plugins.base
import math
^
spock/plugins/helpers/move.py:11:1: I201 Missing newline before sections or imports.
import math
^
spock/plugins/helpers/move.py:13:1: I100 Imports statements are in the wrong order. import logging should be before import math
import logging
^
spock/plugins/helpers/move.py:16:1: E302 expected 2 blank lines, found 1
class MovementCore:
^
spock/plugins/helpers/move.py:17:1: W191 indentation contains tabs
def __init__(self):
^
spock/plugins/helpers/move.py:18:1: W191 indentation contains tabs
self.move_location = None
^
spock/plugins/helpers/move.py:19:1: W191 indentation contains tabs
def move_to(self, x, y, z):
^
spock/plugins/helpers/move.py:19:2: E301 expected 1 blank line, found 0
def move_to(self, x, y, z):
^
spock/plugins/helpers/move.py:20:1: W191 indentation contains tabs
self.move_location = Position(x, y, z)
^
spock/plugins/helpers/move.py:22:1: E302 expected 2 blank lines, found 1
@pl_announce('Movement')
^
spock/plugins/helpers/move.py:24:1: W191 indentation contains tabs
requires = ('Net', 'Physics', 'ClientInfo')
^
spock/plugins/helpers/move.py:25:1: W191 indentation contains tabs
events = {
^
spock/plugins/helpers/move.py:26:1: W191 indentation contains tabs
'client_tick': 'client_tick',
^
spock/plugins/helpers/move.py:27:1: W191 indentation contains tabs
'action_tick': 'action_tick',
^
spock/plugins/helpers/move.py:28:1: W191 indentation contains tabs
'cl_position_update': 'handle_position_update',
^
spock/plugins/helpers/move.py:29:1: W191 indentation contains tabs
'phy_collision': 'handle_collision',
^
spock/plugins/helpers/move.py:30:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/move.py:31:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/helpers/move.py:31:2: E301 expected 1 blank line, found 0
def __init__(self, ploader, settings):
^
spock/plugins/helpers/move.py:32:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/helpers/move.py:34:1: W191 indentation contains tabs
self.movement = MovementCore()
^
spock/plugins/helpers/move.py:35:1: W191 indentation contains tabs
ploader.provides('Movement', self.movement)
^
spock/plugins/helpers/move.py:37:1: W191 indentation contains tabs
def client_tick(self, name, data):
^
spock/plugins/helpers/move.py:38:1: W191 indentation contains tabs
self.net.push_packet('PLAY>Player Position', self.clientinfo.position.get_dict())
^
spock/plugins/helpers/move.py:38:80: E501 line too long (83 > 79 characters)
self.net.push_packet('PLAY>Player Position', self.clientinfo.position.get_dict())
^
spock/plugins/helpers/move.py:40:1: W191 indentation contains tabs
def handle_position_update(self, name, data):
^
spock/plugins/helpers/move.py:41:1: W191 indentation contains tabs
self.net.push_packet('PLAY>Player Position and Look', data.get_dict())
^
spock/plugins/helpers/move.py:43:1: W191 indentation contains tabs
def handle_collision(self, name, data):
^
spock/plugins/helpers/move.py:44:1: W191 indentation contains tabs
if self.movement.move_location != None:
^
spock/plugins/helpers/move.py:44:34: E711 comparison to None should be 'if cond is not None:'
if self.movement.move_location != None:
^
spock/plugins/helpers/move.py:45:1: W191 indentation contains tabs
self.physics.jump()
^
spock/plugins/helpers/move.py:47:1: W191 indentation contains tabs
def action_tick(self, name, data):
^
spock/plugins/helpers/move.py:48:1: W191 indentation contains tabs
self.do_pathfinding()
^
spock/plugins/helpers/move.py:50:1: W191 indentation contains tabs
def do_pathfinding(self):
^
spock/plugins/helpers/move.py:51:1: W191 indentation contains tabs
if self.movement.move_location != None:
^
spock/plugins/helpers/move.py:51:34: E711 comparison to None should be 'if cond is not None:'
if self.movement.move_location != None:
^
spock/plugins/helpers/move.py:52:1: W191 indentation contains tabs
if self.movement.move_location.x == math.floor(self.clientinfo.position.x) and self.movement.move_location.z == math.floor(self.clientinfo.position.z):
^
spock/plugins/helpers/move.py:52:80: E501 line too long (154 > 79 characters)
if self.movement.move_location.x == math.floor(self.clientinfo.position.x) and self.movement.move_location.z == math.floor(self.clientinfo.position.z):
^
spock/plugins/helpers/move.py:53:1: W191 indentation contains tabs
self.movement.move_location = None;
^
spock/plugins/helpers/move.py:53:39: E703 statement ends with a semicolon
self.movement.move_location = None;
^
spock/plugins/helpers/move.py:54:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/move.py:55:1: W191 indentation contains tabs
dx = self.movement.move_location.x - self.clientinfo.position.x
^
spock/plugins/helpers/move.py:56:1: W191 indentation contains tabs
dz = self.movement.move_location.z - self.clientinfo.position.z
^
spock/plugins/helpers/move.py:57:1: W191 indentation contains tabs
deg = 0
^
spock/plugins/helpers/move.py:58:1: W191 indentation contains tabs
if abs(dx) >= abs(dz):
^
spock/plugins/helpers/move.py:59:1: W191 indentation contains tabs
#we should go along x
^
spock/plugins/helpers/move.py:59:6: E265 block comment should start with '# '
#we should go along x
^
spock/plugins/helpers/move.py:60:1: W191 indentation contains tabs
if dx > 0:
^
spock/plugins/helpers/move.py:61:1: W191 indentation contains tabs
#go positive x
^
spock/plugins/helpers/move.py:61:7: E265 block comment should start with '# '
#go positive x
^
spock/plugins/helpers/move.py:62:1: W191 indentation contains tabs
deg = 90
^
spock/plugins/helpers/move.py:63:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/move.py:64:1: W191 indentation contains tabs
#go neg x
^
spock/plugins/helpers/move.py:64:7: E265 block comment should start with '# '
#go neg x
^
spock/plugins/helpers/move.py:65:1: W191 indentation contains tabs
deg = 270
^
spock/plugins/helpers/move.py:67:1: W191 indentation contains tabs
elif abs(dx) < abs(dz):
^
spock/plugins/helpers/move.py:68:1: W191 indentation contains tabs
#we should go along z
^
spock/plugins/helpers/move.py:68:6: E265 block comment should start with '# '
#we should go along z
^
spock/plugins/helpers/move.py:69:1: W191 indentation contains tabs
if dz > 0:
^
spock/plugins/helpers/move.py:70:1: W191 indentation contains tabs
#go positive z
^
spock/plugins/helpers/move.py:70:7: E265 block comment should start with '# '
#go positive z
^
spock/plugins/helpers/move.py:71:1: W191 indentation contains tabs
deg = 0
^
spock/plugins/helpers/move.py:72:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/move.py:73:1: W191 indentation contains tabs
#go neg z
^
spock/plugins/helpers/move.py:73:7: E265 block comment should start with '# '
#go neg z
^
spock/plugins/helpers/move.py:74:1: W191 indentation contains tabs
deg = 180
^
spock/plugins/helpers/move.py:76:1: W191 indentation contains tabs
self.physics.walk(deg)
^
spock/plugins/helpers/start.py:10:1: F401 'utils' imported but unused
from spock import utils
^
spock/plugins/helpers/start.py:11:1: F401 'mcpacket' imported but unused
from spock.mcp import mcpacket, mcdata
^
spock/plugins/helpers/start.py:11:1: I101 Imported names are in the wrong order. Should be mcdata, mcpacket
from spock.mcp import mcpacket, mcdata
^
spock/plugins/helpers/start.py:14:1: E302 expected 2 blank lines, found 1
class StartPlugin(PluginBase):
^
spock/plugins/helpers/start.py:15:1: W191 indentation contains tabs
requires = ('Event', 'Net', 'Auth')
^
spock/plugins/helpers/start.py:16:1: W191 indentation contains tabs
defaults = {
^
spock/plugins/helpers/start.py:17:1: W191 indentation contains tabs
'username': 'Bot',
^
spock/plugins/helpers/start.py:18:1: W191 indentation contains tabs
'password': None,
^
spock/plugins/helpers/start.py:19:1: W191 indentation contains tabs
'host': 'localhost',
^
spock/plugins/helpers/start.py:20:1: W191 indentation contains tabs
'port': 25565,
^
spock/plugins/helpers/start.py:21:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/start.py:22:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/helpers/start.py:22:2: E301 expected 1 blank line, found 0
def __init__(self, ploader, settings):
^
spock/plugins/helpers/start.py:23:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/helpers/start.py:24:1: W191 indentation contains tabs
setattr(ploader, 'start', self.start)
^
spock/plugins/helpers/start.py:26:1: W191 indentation contains tabs
def start(self, host = None, port = None):
^
spock/plugins/helpers/start.py:26:22: E251 unexpected spaces around keyword / parameter equals
def start(self, host = None, port = None):
^
spock/plugins/helpers/start.py:26:24: E251 unexpected spaces around keyword / parameter equals
def start(self, host = None, port = None):
^
spock/plugins/helpers/start.py:26:35: E251 unexpected spaces around keyword / parameter equals
def start(self, host = None, port = None):
^
spock/plugins/helpers/start.py:26:37: E251 unexpected spaces around keyword / parameter equals
def start(self, host = None, port = None):
^
spock/plugins/helpers/start.py:27:1: W191 indentation contains tabs
if 'error' not in self.auth.start_session(
^
spock/plugins/helpers/start.py:28:1: W191 indentation contains tabs
self.settings['username'],
^
spock/plugins/helpers/start.py:29:1: W191 indentation contains tabs
self.settings['password']
^
spock/plugins/helpers/start.py:30:1: W191 indentation contains tabs
):
^
spock/plugins/helpers/start.py:31:1: W191 indentation contains tabs
host = host if host else self.settings['host']
^
spock/plugins/helpers/start.py:32:1: W191 indentation contains tabs
port = port if port else self.settings['port']
^
spock/plugins/helpers/start.py:33:1: W191 indentation contains tabs
self.net.connect(host, port)
^
spock/plugins/helpers/start.py:34:1: W191 indentation contains tabs
self.handshake()
^
spock/plugins/helpers/start.py:35:1: W191 indentation contains tabs
self.login_start()
^
spock/plugins/helpers/start.py:36:1: W191 indentation contains tabs
self.event.event_loop()
^
spock/plugins/helpers/start.py:38:1: W191 indentation contains tabs
def handshake(self):
^
spock/plugins/helpers/start.py:39:1: W191 indentation contains tabs
self.net.push_packet('HANDSHAKE>Handshake', {
^
spock/plugins/helpers/start.py:40:1: W191 indentation contains tabs
'protocol_version': mcdata.MC_PROTOCOL_VERSION,
^
spock/plugins/helpers/start.py:41:1: W191 indentation contains tabs
'host': self.net.host,
^
spock/plugins/helpers/start.py:42:1: W191 indentation contains tabs
'port': self.net.port,
^
spock/plugins/helpers/start.py:43:1: W191 indentation contains tabs
'next_state': mcdata.LOGIN_STATE
^
spock/plugins/helpers/start.py:44:1: W191 indentation contains tabs
})
^
spock/plugins/helpers/start.py:46:1: W191 indentation contains tabs
def login_start(self):
^
spock/plugins/helpers/start.py:47:1: W191 indentation contains tabs
self.net.push_packet('LOGIN>Login Start', {'name': self.auth.username})
^
spock/plugins/core/event.py:5:1: I100 Imports statements are in the wrong order. import copy should be before import signal
import copy
^
spock/plugins/core/event.py:7:1: I201 Missing newline before sections or imports.
from spock.utils import pl_announce
^
spock/plugins/core/event.py:9:1: I100 Imports statements are in the wrong order. import logging should be before from spock.utils
import logging
^
spock/plugins/core/event.py:12:1: E302 expected 2 blank lines, found 1
class EventCore:
^
spock/plugins/core/event.py:13:1: W191 indentation contains tabs
def __init__(self):
^
spock/plugins/core/event.py:14:1: W191 indentation contains tabs
self.kill_event = False
^
spock/plugins/core/event.py:15:1: W191 indentation contains tabs
self.event_handlers = defaultdict(list)
^
spock/plugins/core/event.py:16:1: W191 indentation contains tabs
signal.signal(signal.SIGINT, self.kill)
^
spock/plugins/core/event.py:17:1: W191 indentation contains tabs
signal.signal(signal.SIGTERM, self.kill)
^
spock/plugins/core/event.py:19:1: W191 indentation contains tabs
def event_loop(self):
^
spock/plugins/core/event.py:20:1: W191 indentation contains tabs
while not self.kill_event:
^
spock/plugins/core/event.py:21:1: W191 indentation contains tabs
self.emit('event_tick')
^
spock/plugins/core/event.py:22:1: W191 indentation contains tabs
logger.info('EVENTCORE: Kill called, shutting down')
^
spock/plugins/core/event.py:23:1: W191 indentation contains tabs
self.emit('kill')
^
spock/plugins/core/event.py:25:1: W191 indentation contains tabs
def reg_event_handler(self, event, handler):
^
spock/plugins/core/event.py:26:1: W191 indentation contains tabs
self.event_handlers[event].append(handler)
^
spock/plugins/core/event.py:28:1: W191 indentation contains tabs
def emit(self, event, data = None):
^
spock/plugins/core/event.py:28:28: E251 unexpected spaces around keyword / parameter equals
def emit(self, event, data = None):
^
spock/plugins/core/event.py:28:30: E251 unexpected spaces around keyword / parameter equals
def emit(self, event, data = None):
^
spock/plugins/core/event.py:29:1: W191 indentation contains tabs
to_remove = []
^
spock/plugins/core/event.py:30:1: W191 indentation contains tabs
# reversed, because handlers can register themselves
^
spock/plugins/core/event.py:31:1: W191 indentation contains tabs
# for the same event they handle, and the new handler
^
spock/plugins/core/event.py:32:1: W191 indentation contains tabs
# is appended to the end of the iterated handler list
^
spock/plugins/core/event.py:33:1: W191 indentation contains tabs
# and immediately run, so an infinite loop can be created
^
spock/plugins/core/event.py:34:1: W191 indentation contains tabs
for handler in reversed(self.event_handlers[event]):
^
spock/plugins/core/event.py:35:1: W191 indentation contains tabs
if handler(
^
spock/plugins/core/event.py:36:1: W191 indentation contains tabs
event,
^
spock/plugins/core/event.py:37:1: W191 indentation contains tabs
data.clone() if hasattr(data, 'clone') else copy.deepcopy(data)
^
spock/plugins/core/event.py:38:1: W191 indentation contains tabs
):
^
spock/plugins/core/event.py:39:1: W191 indentation contains tabs
to_remove.append(handler)
^
spock/plugins/core/event.py:40:1: W191 indentation contains tabs
for handler in to_remove:
^
spock/plugins/core/event.py:41:1: W191 indentation contains tabs
self.event_handlers[event].remove(handler)
^
spock/plugins/core/event.py:43:1: W191 indentation contains tabs
def kill(self, *args):
^
spock/plugins/core/event.py:44:1: W191 indentation contains tabs
self.kill_event = True
^
spock/plugins/core/event.py:46:1: E302 expected 2 blank lines, found 1
@pl_announce('Event')
^
spock/plugins/core/event.py:48:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/core/event.py:49:1: W191 indentation contains tabs
ploader.provides('Event', EventCore())
^
spock/plugins/helpers/world.py:3:80: E501 line too long (80 > 79 characters)
Plugins interested in a more comprehensive world map view can use mcp.mapdata to
^
spock/plugins/helpers/world.py:5:80: E501 line too long (80 > 79 characters)
Planned to provide light level interpretation based on sky light and time of day
^
spock/plugins/helpers/world.py:9:1: F401 'mapdata' imported but unused
from spock.mcmap import smpmap, mapdata
^
spock/plugins/helpers/world.py:9:1: I100 Imports statements are in the wrong order. from spock.mcmap should be before from spock.utils
from spock.mcmap import smpmap, mapdata
^
spock/plugins/helpers/world.py:9:1: I101 Imported names are in the wrong order. Should be mapdata, smpmap
from spock.mcmap import smpmap, mapdata
^
spock/plugins/helpers/world.py:13:1: E302 expected 2 blank lines, found 1
class WorldData(smpmap.Dimension):
^
spock/plugins/helpers/world.py:14:1: W191 indentation contains tabs
def __init__(self, dimension = mcdata.SMP_OVERWORLD):
^
spock/plugins/helpers/world.py:14:30: E251 unexpected spaces around keyword / parameter equals
def __init__(self, dimension = mcdata.SMP_OVERWORLD):
^
spock/plugins/helpers/world.py:14:32: E251 unexpected spaces around keyword / parameter equals
def __init__(self, dimension = mcdata.SMP_OVERWORLD):
^
spock/plugins/helpers/world.py:15:1: W191 indentation contains tabs
super(self.__class__, self).__init__(dimension)
^
spock/plugins/helpers/world.py:16:1: W191 indentation contains tabs
self.age = 0
^
spock/plugins/helpers/world.py:17:1: W191 indentation contains tabs
self.time_of_day = 0
^
spock/plugins/helpers/world.py:19:1: W191 indentation contains tabs
def update_time(self, data):
^
spock/plugins/helpers/world.py:20:1: W191 indentation contains tabs
self.age = data['world_age']
^
spock/plugins/helpers/world.py:21:1: W191 indentation contains tabs
self.time_of_day = data['time_of_day']
^
spock/plugins/helpers/world.py:23:1: W191 indentation contains tabs
def new_dimension(self, dimension):
^
spock/plugins/helpers/world.py:24:1: W191 indentation contains tabs
super(self.__class__, self).__init__(dimension)
^
spock/plugins/helpers/world.py:26:1: W191 indentation contains tabs
def reset(self):
^
spock/plugins/helpers/world.py:27:1: W191 indentation contains tabs
self.__init__(self.dimension)
^
spock/plugins/helpers/world.py:29:1: E302 expected 2 blank lines, found 1
@pl_announce('World')
^
spock/plugins/helpers/world.py:31:1: W191 indentation contains tabs
requires = ('Event')
^
spock/plugins/helpers/world.py:32:1: W191 indentation contains tabs
events = {
^
spock/plugins/helpers/world.py:33:1: W191 indentation contains tabs
'PLAY<Join Game': 'handle_new_dimension',
^
spock/plugins/helpers/world.py:34:1: W191 indentation contains tabs
'PLAY<Respawn': 'handle_new_dimension',
^
spock/plugins/helpers/world.py:35:1: W191 indentation contains tabs
'PLAY<Time Update': 'handle_time_update',
^
spock/plugins/helpers/world.py:36:1: W191 indentation contains tabs
'PLAY<Chunk Data': 'handle_chunk_data',
^
spock/plugins/helpers/world.py:37:1: W191 indentation contains tabs
'PLAY<Multi Block Change': 'handle_multi_block_change',
^
spock/plugins/helpers/world.py:38:1: W191 indentation contains tabs
'PLAY<Block Change': 'handle_block_change',
^
spock/plugins/helpers/world.py:39:1: W191 indentation contains tabs
'PLAY<Map Chunk Bulk': 'handle_map_chunk_bulk',
^
spock/plugins/helpers/world.py:40:1: W191 indentation contains tabs
'disconnect': 'handle_disconnect',
^
spock/plugins/helpers/world.py:41:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/world.py:42:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/helpers/world.py:42:2: E301 expected 1 blank line, found 0
def __init__(self, ploader, settings):
^
spock/plugins/helpers/world.py:43:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/helpers/world.py:44:1: W191 indentation contains tabs
self.world = WorldData()
^
spock/plugins/helpers/world.py:45:1: W191 indentation contains tabs
ploader.provides('World', self.world)
^
spock/plugins/helpers/world.py:47:1: W191 indentation contains tabs
#Time Update - Update World Time
^
spock/plugins/helpers/world.py:47:2: E265 block comment should start with '# '
#Time Update - Update World Time
^
spock/plugins/helpers/world.py:48:1: W191 indentation contains tabs
def handle_time_update(self, name, packet):
^
spock/plugins/helpers/world.py:49:1: W191 indentation contains tabs
self.world.update_time(packet.data)
^
spock/plugins/helpers/world.py:50:1: W191 indentation contains tabs
self.event.emit('w_time_update', packet.data)
^
spock/plugins/helpers/world.py:52:1: W191 indentation contains tabs
#Join Game/Respawn - New Dimension
^
spock/plugins/helpers/world.py:52:2: E265 block comment should start with '# '
#Join Game/Respawn - New Dimension
^
spock/plugins/helpers/world.py:53:1: W191 indentation contains tabs
def handle_new_dimension(self, name, packet):
^
spock/plugins/helpers/world.py:54:1: W191 indentation contains tabs
self.world.new_dimension(packet.data['dimension'])
^
spock/plugins/helpers/world.py:55:1: W191 indentation contains tabs
self.event.emit('w_new_dimension', packet.data['dimension'])
^
spock/plugins/helpers/world.py:57:1: W191 indentation contains tabs
#Chunk Data - Update World state
^
spock/plugins/helpers/world.py:57:2: E265 block comment should start with '# '
#Chunk Data - Update World state
^
spock/plugins/helpers/world.py:58:1: W191 indentation contains tabs
def handle_chunk_data(self, name, packet):
^
spock/plugins/helpers/world.py:59:1: W191 indentation contains tabs
self.world.unpack_column(packet.data)
^
spock/plugins/helpers/world.py:61:1: W191 indentation contains tabs
#Multi Block Change - Update multiple blocks
^
spock/plugins/helpers/world.py:61:2: E265 block comment should start with '# '
#Multi Block Change - Update multiple blocks
^
spock/plugins/helpers/world.py:62:1: W191 indentation contains tabs
def handle_multi_block_change(self, name, packet):
^
spock/plugins/helpers/world.py:63:1: W191 indentation contains tabs
chunk_x = packet.data['chunk_x']*16
^
spock/plugins/helpers/world.py:64:1: W191 indentation contains tabs
chunk_z = packet.data['chunk_z']*16
^
spock/plugins/helpers/world.py:65:1: W191 indentation contains tabs
for block in packet.data['blocks']:
^
spock/plugins/helpers/world.py:66:1: W191 indentation contains tabs
x = block['x'] + chunk_x
^
spock/plugins/helpers/world.py:67:1: W191 indentation contains tabs
z = block['z'] + chunk_z
^
spock/plugins/helpers/world.py:68:1: W191 indentation contains tabs
y = block['y']
^
spock/plugins/helpers/world.py:69:1: W191 indentation contains tabs
self.world.set_block(x, y, z, data = block['block_data'])
^
spock/plugins/helpers/world.py:69:38: E251 unexpected spaces around keyword / parameter equals
self.world.set_block(x, y, z, data = block['block_data'])
^
spock/plugins/helpers/world.py:69:40: E251 unexpected spaces around keyword / parameter equals
self.world.set_block(x, y, z, data = block['block_data'])
^
spock/plugins/helpers/world.py:70:1: W191 indentation contains tabs
self.event.emit('w_block_update', {
^
spock/plugins/helpers/world.py:71:1: W191 indentation contains tabs
'location': {
^
spock/plugins/helpers/world.py:72:1: W191 indentation contains tabs
'x': x,
^
spock/plugins/helpers/world.py:73:1: W191 indentation contains tabs
'y': y,
^
spock/plugins/helpers/world.py:74:1: W191 indentation contains tabs
'z': z,
^
spock/plugins/helpers/world.py:75:1: W191 indentation contains tabs
},
^
spock/plugins/helpers/world.py:76:1: W191 indentation contains tabs
'block_data': block['block_data'],
^
spock/plugins/helpers/world.py:77:1: W191 indentation contains tabs
})
^
spock/plugins/helpers/world.py:79:1: W191 indentation contains tabs
#Block Change - Update a single block
^
spock/plugins/helpers/world.py:79:2: E265 block comment should start with '# '
#Block Change - Update a single block
^
spock/plugins/helpers/world.py:80:1: W191 indentation contains tabs
def handle_block_change(self, name, packet):
^
spock/plugins/helpers/world.py:81:1: W191 indentation contains tabs
p = packet.data['location']
^
spock/plugins/helpers/world.py:82:1: W191 indentation contains tabs
block_data = packet.data['block_data']
^
spock/plugins/helpers/world.py:83:1: W191 indentation contains tabs
self.world.set_block(p['x'], p['y'], p['z'], data = block_data)
^
spock/plugins/helpers/world.py:83:52: E251 unexpected spaces around keyword / parameter equals
self.world.set_block(p['x'], p['y'], p['z'], data = block_data)
^
spock/plugins/helpers/world.py:83:54: E251 unexpected spaces around keyword / parameter equals
self.world.set_block(p['x'], p['y'], p['z'], data = block_data)
^
spock/plugins/helpers/world.py:84:1: W191 indentation contains tabs
self.event.emit('w_block_update', packet.data)
^
spock/plugins/helpers/world.py:86:1: W191 indentation contains tabs
#Map Chunk Bulk - Update World state
^
spock/plugins/helpers/world.py:86:2: E265 block comment should start with '# '
#Map Chunk Bulk - Update World state
^
spock/plugins/helpers/world.py:87:1: W191 indentation contains tabs
def handle_map_chunk_bulk(self, name, packet):
^
spock/plugins/helpers/world.py:88:1: W191 indentation contains tabs
self.world.unpack_bulk(packet.data)
^
spock/plugins/helpers/world.py:90:1: W191 indentation contains tabs
def handle_disconnect(self, name, data):
^
spock/plugins/helpers/world.py:91:1: W191 indentation contains tabs
self.world.reset()
^
spock/plugins/helpers/world.py:92:1: W191 indentation contains tabs
self.event.emit('w_world_reset')
^
spock/vector.py:3:1: E302 expected 2 blank lines, found 1
class BaseVector(object):
^
spock/vector.py:4:1: W191 indentation contains tabs
_internal_vec_type = list
^
spock/vector.py:5:1: W191 indentation contains tabs
def __init__(self, *values):
^
spock/vector.py:5:2: E301 expected 1 blank line, found 0
def __init__(self, *values):
^
spock/vector.py:6:1: W191 indentation contains tabs
self.vector = self._internal_vec_type(values)
^
spock/vector.py:8:1: W191 indentation contains tabs
def __iter__(self):
^
spock/vector.py:9:1: W191 indentation contains tabs
return self.vector.__iter__()
^
spock/vector.py:11:1: W191 indentation contains tabs
def __repr__(self):
^
spock/vector.py:12:1: W191 indentation contains tabs
return "%s(" % self.__class__.__name__ + ", ".join(map(str, self.vector)) + ")"
^
spock/vector.py:12:80: E501 line too long (81 > 79 characters)
return "%s(" % self.__class__.__name__ + ", ".join(map(str, self.vector)) + ")"
^
spock/vector.py:14:1: W191 indentation contains tabs
__str__ = __repr__
^
spock/vector.py:16:1: W191 indentation contains tabs
def __setitem__(self, key, value):
^
spock/vector.py:17:1: W191 indentation contains tabs
self.vector[key] = value
^
spock/vector.py:19:1: W191 indentation contains tabs
def __getitem__(self, item):
^
spock/vector.py:20:1: W191 indentation contains tabs
return self.vector[item]
^
spock/vector.py:22:1: W191 indentation contains tabs
def __len__(self):
^
spock/vector.py:23:1: W191 indentation contains tabs
return len(self.vector)
^
spock/vector.py:28:1: W191 indentation contains tabs
# Math operations
^
spock/vector.py:29:1: W191 indentation contains tabs
# Is __abs__ really useful ?
^
spock/vector.py:30:1: W191 indentation contains tabs
def __abs__(self):
^
spock/vector.py:31:1: W191 indentation contains tabs
return self.__class__(*map(abs, self.vector))
^
spock/vector.py:33:1: W191 indentation contains tabs
def __add__(self, other):
^
spock/vector.py:34:1: W191 indentation contains tabs
return self.__class__(*map(sum, zip(self, other)))
^
spock/vector.py:36:1: W191 indentation contains tabs
__iadd__ = __add__
^
spock/vector.py:38:1: W191 indentation contains tabs
def __neg__(self):
^
spock/vector.py:39:1: W191 indentation contains tabs
return self.__class__(*map(lambda a:-a, self))
^
spock/vector.py:39:38: E231 missing whitespace after ':'
return self.__class__(*map(lambda a:-a, self))
^
spock/vector.py:41:1: W191 indentation contains tabs
def __sub__(self, other):
^
spock/vector.py:42:1: W191 indentation contains tabs
return self.__class__(*map(lambda a:a[0] - a[1], zip(self, other)))
^
spock/vector.py:42:38: E231 missing whitespace after ':'
return self.__class__(*map(lambda a:a[0] - a[1], zip(self, other)))
^
spock/vector.py:44:1: W191 indentation contains tabs
__isub__ = __sub__
^
spock/vector.py:46:1: W191 indentation contains tabs
def __mul__(self, other):
^
spock/vector.py:47:1: W191 indentation contains tabs
return self.__class__(*map(lambda a:a * other, self))
^
spock/vector.py:47:38: E231 missing whitespace after ':'
return self.__class__(*map(lambda a:a * other, self))
^
spock/vector.py:49:1: W191 indentation contains tabs
__imul__ = __mul__
^
spock/vector.py:50:1: W191 indentation contains tabs
__rmul__ = __mul__
^
spock/vector.py:52:1: W191 indentation contains tabs
def __truediv__(self, other):
^
spock/vector.py:53:1: W191 indentation contains tabs
return self.__class__(*map(lambda a:a / other, self))
^
spock/vector.py:53:38: E231 missing whitespace after ':'
return self.__class__(*map(lambda a:a / other, self))
^
spock/vector.py:55:1: W191 indentation contains tabs
__itruediv__ = __truediv__
^
spock/vector.py:57:1: W191 indentation contains tabs
# More advanced math
^
spock/vector.py:59:1: W191 indentation contains tabs
def trunc(self):
^
spock/vector.py:60:1: W191 indentation contains tabs
return math.trunc(self)
^
spock/vector.py:62:1: W191 indentation contains tabs
def __trunc__(self):
^
spock/vector.py:63:1: W191 indentation contains tabs
return self.__class__(*map(math.trunc, self))
^
spock/vector.py:65:1: W191 indentation contains tabs
def norm(self):
^
spock/vector.py:66:1: W191 indentation contains tabs
return math.sqrt(sum(map(lambda a:a*a, self)))
^
spock/vector.py:66:36: E231 missing whitespace after ':'
return math.sqrt(sum(map(lambda a:a*a, self)))
^
spock/vector.py:68:1: W191 indentation contains tabs
# Comparisons
^
spock/vector.py:69:1: W191 indentation contains tabs
# XXX : Maybe return another type of Vector
^
spock/vector.py:70:1: W191 indentation contains tabs
def __le__(self, other):
^
spock/vector.py:71:1: W191 indentation contains tabs
return self.__class__(*map(lambda a: a[0] <= a[1], zip(self, other)))
^
spock/vector.py:73:1: W191 indentation contains tabs
def __lt__(self, other):
^
spock/vector.py:74:1: W191 indentation contains tabs
return self.__class__(*map(lambda a: a[0] < a[1], zip(self, other)))
^
spock/vector.py:76:1: W191 indentation contains tabs
def __ge__(self, other):
^
spock/vector.py:77:1: W191 indentation contains tabs
return self.__class__(*map(lambda a: a[0] >= a[1], zip(self, other)))
^
spock/vector.py:79:1: W191 indentation contains tabs
def __gt__(self, other):
^
spock/vector.py:80:1: W191 indentation contains tabs
return self.__class__(*map(lambda a: a[0] > a[1], zip(self, other)))
^
spock/vector.py:82:1: W191 indentation contains tabs
def __eq__(self, other):
^
spock/vector.py:83:1: W191 indentation contains tabs
return self.__class__(*map(lambda a: a[0] == a[1], zip(self, other)))
^
spock/vector.py:87:1: W191 indentation contains tabs
def __init__(self, *args):
^
spock/vector.py:88:1: W191 indentation contains tabs
assert len(args)==3, "Wrong length"
^
spock/vector.py:88:19: E225 missing whitespace around operator
assert len(args)==3, "Wrong length"
^
spock/vector.py:89:1: W191 indentation contains tabs
super(self.__class__, self).__init__(*args)
^
spock/vector.py:91:1: W191 indentation contains tabs
# Some shortcuts
^
spock/vector.py:92:1: W191 indentation contains tabs
@property
^
spock/vector.py:93:1: W191 indentation contains tabs
def x(self):
^
spock/vector.py:94:1: W191 indentation contains tabs
return self.vector[0]
^
spock/vector.py:96:1: W191 indentation contains tabs
@x.setter
^
spock/vector.py:97:1: W191 indentation contains tabs
def x(self, value):
^
spock/vector.py:98:1: W191 indentation contains tabs
self.vector[0] = value
^
spock/vector.py:100:1: W191 indentation contains tabs
@property
^
spock/vector.py:101:1: W191 indentation contains tabs
def y(self):
^
spock/vector.py:102:1: W191 indentation contains tabs
return self.vector[1]
^
spock/vector.py:104:1: W191 indentation contains tabs
@y.setter
^
spock/vector.py:105:1: W191 indentation contains tabs
def y(self, value):
^
spock/vector.py:106:1: W191 indentation contains tabs
self.vector[1] = value
^
spock/vector.py:108:1: W191 indentation contains tabs
@property
^
spock/vector.py:109:1: W191 indentation contains tabs
def z(self):
^
spock/vector.py:110:1: W191 indentation contains tabs
return self.vector[2]
^
spock/vector.py:112:1: W191 indentation contains tabs
@z.setter
^
spock/vector.py:113:1: W191 indentation contains tabs
def z(self, value):
^
spock/vector.py:114:1: W191 indentation contains tabs
self.vector[2] = value
^
spock/vector.py:116:1: W191 indentation contains tabs
def yaw_pitch(self):
^
spock/vector.py:118:1: W191 indentation contains tabs
Calculate the yaw and pitch of this vector
^
spock/vector.py:119:1: W191 indentation contains tabs
"""
^
spock/vector.py:120:1: W191 indentation contains tabs
try:
^
spock/vector.py:121:1: W191 indentation contains tabs
c = math.sqrt( self.x**2 + self.z**2 )
^
spock/vector.py:121:18: E201 whitespace after '('
c = math.sqrt( self.x**2 + self.z**2 )
^
spock/vector.py:121:40: E202 whitespace before ')'
c = math.sqrt( self.x**2 + self.z**2 )
^
spock/vector.py:122:1: W191 indentation contains tabs
alpha1 = -math.asin(self.x/c)/math.pi*180
^
spock/vector.py:123:1: W191 indentation contains tabs
alpha2 = math.acos(self.z/c)/math.pi*180
^
spock/plugins/helpers/entities.py:4:1: I101 Imported names are in the wrong order. Should be Info, pl_announce
spock/vector.py:123:12: E222 multiple spaces after operator
alpha2 = math.acos(self.z/c)/math.pi*180
from spock.utils import pl_announce, Info
^
^
spock/vector.py:124:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:5:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.utils
if alpha2 > 90:
from spock.plugins.base import PluginBase
^
^
spock/vector.py:125:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:7:1: I100 Imports statements are in the wrong order. import logging should be before from spock.plugins.base
yaw = 180 - alpha1
import logging
^
^
spock/vector.py:126:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:10:1: E302 expected 2 blank lines, found 1
else:
class MCEntity(Info):
^
spock/plugins/helpers/entities.py:11:1: W191 indentation contains tabs
eid = 0
^
spock/plugins/helpers/entities.py:12:1: W191 indentation contains tabs
^
status = 0
spock/vector.py:127:1: W191 indentation contains tabs
^
yaw = alpha1
spock/plugins/helpers/entities.py:13:1: W191 indentation contains tabs
^
nbt = None
spock/vector.py:128:1: W191 indentation contains tabs
^
pitch = math.asin(-self.y/c)/math.pi*180
spock/plugins/helpers/entities.py:15:1: E302 expected 2 blank lines, found 1
^
class ClientPlayerEntity(MCEntity):
spock/vector.py:129:1: W191 indentation contains tabs
^
except ZeroDivisionError:
spock/plugins/helpers/entities.py:16:1: W191 indentation contains tabs
^
metadata = None
spock/vector.py:130:1: W191 indentation contains tabs
^
yaw = 0
spock/plugins/helpers/entities.py:18:1: E302 expected 2 blank lines, found 1
^
class MovementEntity(MCEntity):
spock/vector.py:131:1: W191 indentation contains tabs
^
pitch = 0
spock/plugins/helpers/entities.py:19:1: W191 indentation contains tabs
^
x = 0
spock/vector.py:132:1: W191 indentation contains tabs
^
return YawPitch(yaw, pitch)
spock/plugins/helpers/entities.py:20:1: W191 indentation contains tabs
^
y = 0
spock/vector.py:134:1: W191 indentation contains tabs
^
def set_dict(self, data):
spock/plugins/helpers/entities.py:21:1: W191 indentation contains tabs
^
z = 0
spock/vector.py:135:1: W191 indentation contains tabs
^
if set(("x", "y", "z")) <= set(data):
spock/plugins/helpers/entities.py:22:1: W191 indentation contains tabs
^
yaw = 0
spock/vector.py:136:1: W191 indentation contains tabs
^
self.vector[0] = data['x']
spock/plugins/helpers/entities.py:23:1: W191 indentation contains tabs
^
pitch = 0
spock/vector.py:137:1: W191 indentation contains tabs
^
self.vector[1] = data['y']
spock/plugins/helpers/entities.py:24:1: W191 indentation contains tabs
^
on_ground = True
spock/vector.py:138:1: W191 indentation contains tabs
^
self.vector[2] = data['z']
spock/plugins/helpers/entities.py:26:1: E302 expected 2 blank lines, found 1
^
class PlayerEntity(MovementEntity):
spock/vector.py:140:1: W191 indentation contains tabs
^
def get_dict(self):
spock/plugins/helpers/entities.py:27:1: W191 indentation contains tabs
^
uuid = 0
spock/vector.py:141:1: W191 indentation contains tabs
^
return {'x': self.vector[0],'y': self.vector[1],'z':self.vector[2]}
spock/plugins/helpers/entities.py:28:1: W191 indentation contains tabs
^
current_item = 0
spock/vector.py:141:30: E231 missing whitespace after ','
^
return {'x': self.vector[0],'y': self.vector[1],'z':self.vector[2]}
spock/plugins/helpers/entities.py:29:1: W191 indentation contains tabs
metadata = None
^
^
spock/vector.py:141:50: E231 missing whitespace after ','
spock/plugins/helpers/entities.py:31:1: E302 expected 2 blank lines, found 1
return {'x': self.vector[0],'y': self.vector[1],'z':self.vector[2]}
class ObjectEntity(MovementEntity):
^
^
spock/plugins/helpers/entities.py:32:1: W191 indentation contains tabs
obj_type = 0
spock/vector.py:141:54: E231 missing whitespace after ':'
return {'x': self.vector[0],'y': self.vector[1],'z':self.vector[2]}
^
spock/plugins/helpers/entities.py:33:1: W191 indentation contains tabs
obj_data = 0
^
^
spock/vector.py:143:1: E302 expected 2 blank lines, found 1
class YawPitch(BaseVector):
spock/plugins/helpers/entities.py:34:1: W191 indentation contains tabs
speed_x = 0
^
^
spock/vector.py:145:1: W191 indentation contains tabs
Store the yaw and pitch (in degrees)
spock/plugins/helpers/entities.py:35:1: W191 indentation contains tabs
^
speed_y = 0
spock/vector.py:146:1: W191 indentation contains tabs
^
"""
spock/plugins/helpers/entities.py:36:1: W191 indentation contains tabs
^
speed_z = 0
spock/vector.py:147:1: W191 indentation contains tabs
^
def __init__(self, *args):
spock/plugins/helpers/entities.py:38:1: E302 expected 2 blank lines, found 1
^
class MobEntity(MovementEntity):
spock/vector.py:148:1: W191 indentation contains tabs
^
assert len(args)==2, "Wrong length"
spock/plugins/helpers/entities.py:39:1: W191 indentation contains tabs
^
mob_type = 0
spock/vector.py:148:19: E225 missing whitespace around operator
^
assert len(args)==2, "Wrong length"
spock/plugins/helpers/entities.py:40:1: W191 indentation contains tabs
head_pitch = 0
^
^
spock/vector.py:149:1: W191 indentation contains tabs
super(self.__class__, self).__init__(*args)
spock/plugins/helpers/entities.py:41:1: W191 indentation contains tabs
head_yaw = 0
^
^
spock/vector.py:151:1: W191 indentation contains tabs
# Some shortcuts
spock/plugins/helpers/entities.py:42:1: W191 indentation contains tabs
velocity_x = 0
^
^
spock/vector.py:152:1: W191 indentation contains tabs
@property
spock/plugins/helpers/entities.py:43:1: W191 indentation contains tabs
velocity_y = 0
^
^
spock/vector.py:153:1: W191 indentation contains tabs
def yaw(self):
spock/plugins/helpers/entities.py:44:1: W191 indentation contains tabs
velocity_z = 0
^
^
spock/vector.py:154:1: W191 indentation contains tabs
"""Yaw in degrees"""
spock/plugins/helpers/entities.py:45:1: W191 indentation contains tabs
metadata = None
^
^
spock/vector.py:155:1: W191 indentation contains tabs
return self.vector[0]
spock/plugins/helpers/entities.py:47:1: E302 expected 2 blank lines, found 1
class PaintingEntity(MCEntity):
^
^
spock/vector.py:157:1: W191 indentation contains tabs
@yaw.setter
spock/plugins/helpers/entities.py:48:1: W191 indentation contains tabs
title = ""
^
^
spock/vector.py:158:1: W191 indentation contains tabs
def yaw(self, value):
spock/plugins/helpers/entities.py:49:1: W191 indentation contains tabs
^
location = {
spock/vector.py:159:1: W191 indentation contains tabs
^
self.vector[0] = value
spock/plugins/helpers/entities.py:50:1: W191 indentation contains tabs
^
'x': 0,
spock/vector.py:161:1: W191 indentation contains tabs
^
@property
spock/plugins/helpers/entities.py:51:1: W191 indentation contains tabs
^
'y': 0,
spock/vector.py:162:1: W191 indentation contains tabs
^
def ryaw(self):
spock/plugins/helpers/entities.py:52:1: W191 indentation contains tabs
^
'z': 0,
spock/vector.py:163:1: W191 indentation contains tabs
^
"""Yaw in radians"""
spock/plugins/helpers/entities.py:53:1: W191 indentation contains tabs
^
}
spock/vector.py:164:1: W191 indentation contains tabs
^
return self.vector[0]/180*math.pi
spock/plugins/helpers/entities.py:54:1: W191 indentation contains tabs
^
direction = 0
spock/vector.py:166:1: W191 indentation contains tabs
^
@property
spock/plugins/helpers/entities.py:56:1: E302 expected 2 blank lines, found 1
^
class ExpEntity(MCEntity):
spock/vector.py:167:1: W191 indentation contains tabs
^
def pitch(self):
spock/plugins/helpers/entities.py:57:1: W191 indentation contains tabs
^
x = 0
spock/vector.py:168:1: W191 indentation contains tabs
^
"""Pitch in degrees"""
spock/plugins/helpers/entities.py:58:1: W191 indentation contains tabs
^
y = 0
spock/vector.py:169:1: W191 indentation contains tabs
^
return self.vector[1]
spock/plugins/helpers/entities.py:59:1: W191 indentation contains tabs
^
z = 0
spock/vector.py:171:1: W191 indentation contains tabs
^
@pitch.setter
spock/plugins/helpers/entities.py:60:1: W191 indentation contains tabs
^
count = 0
spock/vector.py:172:1: W191 indentation contains tabs
^
def pitch(self, value):
^
spock/plugins/helpers/entities.py:62:1: E302 expected 2 blank lines, found 1
class GlobalEntity(MCEntity):
spock/vector.py:173:1: W191 indentation contains tabs
self.vector[1] = value
^
^
spock/plugins/helpers/entities.py:63:1: W191 indentation contains tabs
global_type = 0
spock/vector.py:175:1: W191 indentation contains tabs
@property
^
^
spock/plugins/helpers/entities.py:64:1: W191 indentation contains tabs
x = 0
spock/vector.py:176:1: W191 indentation contains tabs
def rpitch(self):
^
^
spock/plugins/helpers/entities.py:65:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:8:1: I101 Imported names are in the wrong order. Should be Info, pl_announce, Position
y = 0
spock/vector.py:177:1: W191 indentation contains tabs
from spock.utils import pl_announce, Info, Position
"""Pitch in radians"""
^
^
spock/plugins/helpers/entities.py:66:1: W191 indentation contains tabs
z = 0
spock/vector.py:178:1: W191 indentation contains tabs
^
return self.vector[1]/180*math.pi
^
spock/plugins/helpers/clientinfo.py:9:1: I100 Imports statements are in the wrong order. from spock.mcp should be before from spock.utils
^
spock/plugins/helpers/entities.py:68:1: E302 expected 2 blank lines, found 1
from spock.mcp import mcdata
class EntityCore:
spock/vector.py:180:1: W191 indentation contains tabs
^
def unit_vector(self):
^
^
spock/plugins/helpers/entities.py:69:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:10:1: I101 Imported names are in the wrong order. Should be FLG_XPOS_REL, FLG_XROT_REL, FLG_YPOS_REL, FLG_YROT_REL, FLG_ZPOS_REL, GS_GAMEMODE
def __init__(self):
spock/vector.py:181:1: W191 indentation contains tabs
from spock.mcp.mcdata import (
"""Generate a unit vector (norm = 1)"""
^
^
^
spock/plugins/helpers/entities.py:70:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:11:1: W191 indentation contains tabs
self.client_player = ClientPlayerEntity()
spock/vector.py:182:1: W191 indentation contains tabs
FLG_XPOS_REL, FLG_YPOS_REL, FLG_ZPOS_REL, FLG_YROT_REL, FLG_XROT_REL, GS_GAMEMODE
x = -math.cos(self.rpitch) * math.sin(self.ryaw)
^
^
^
spock/plugins/helpers/entities.py:71:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:11:80: E501 line too long (82 > 79 characters)
spock/vector.py:183:1: W191 indentation contains tabs
self.entities = {}
FLG_XPOS_REL, FLG_YPOS_REL, FLG_ZPOS_REL, FLG_YROT_REL, FLG_XROT_REL, GS_GAMEMODE
y = -math.sin(self.rpitch)
^
^
spock/plugins/helpers/entities.py:72:1: W191 indentation contains tabs
spock/vector.py:184:1: W191 indentation contains tabs
self.players = {}
^
z = math.cos(self.rpitch) * math.cos(self.ryaw)
^
spock/plugins/helpers/clientinfo.py:15:1: E302 expected 2 blank lines, found 1
^
spock/plugins/helpers/entities.py:73:1: W191 indentation contains tabs
class GameInfo(Info):
spock/vector.py:184:6: E222 multiple spaces after operator
self.mobs = {}
^
z = math.cos(self.rpitch) * math.cos(self.ryaw)
^
spock/plugins/helpers/clientinfo.py:16:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:74:1: W191 indentation contains tabs
^
def __init__(self):
self.objects = {}
spock/vector.py:185:1: W191 indentation contains tabs
^
^
return Vector3(x, y, z)
spock/plugins/helpers/clientinfo.py:17:1: W191 indentation contains tabs
^
spock/plugins/helpers/entities.py:75:1: W191 indentation contains tabs
self.level_type = 0
self.paintings = {}
^
^
spock/plugins/helpers/clientinfo.py:18:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:76:1: W191 indentation contains tabs
self.dimension = 0
self.exp_orbs = {}
^
^
spock/plugins/helpers/clientinfo.py:19:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:77:1: W191 indentation contains tabs
self.gamemode = 0
self.global_entities = {}
^
^
spock/plugins/helpers/clientinfo.py:20:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:79:1: E302 expected 2 blank lines, found 1
self.difficulty = 0
@pl_announce('Entities')
^
^
spock/plugins/helpers/clientinfo.py:21:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:81:1: W191 indentation contains tabs
self.max_players = 0
requires = ('Event')
^
^
spock/plugins/helpers/clientinfo.py:23:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/entities.py:82:1: W191 indentation contains tabs
class Abilities(Info):
events = {
^
^
spock/plugins/helpers/clientinfo.py:24:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:83:1: W191 indentation contains tabs
def __init__(self):
'PLAY<Join Game': 'handle_join_game',
^
^
spock/plugins/helpers/clientinfo.py:25:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:84:1: W191 indentation contains tabs
self.damage = True
'PLAY<Spawn Player': 'handle_spawn_player',
^
^
spock/plugins/helpers/clientinfo.py:26:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:85:1: W191 indentation contains tabs
self.fly = False
'PLAY<Spawn Object': 'handle_spawn_object',
^
^
spock/plugins/helpers/clientinfo.py:27:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:86:1: W191 indentation contains tabs
self.flying = False
'PLAY<Spawn Mob': 'handle_spawn_mob',
^
^
spock/plugins/helpers/clientinfo.py:28:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:87:1: W191 indentation contains tabs
self.creative = False
'PLAY<Spawn Painting': 'handle_spawn_painting',
^
^
spock/plugins/helpers/clientinfo.py:29:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:88:1: W191 indentation contains tabs
self.flying_speed = 0
'PLAY<Spawn Experience Orb': 'handle_spawn_experience_orb',
^
^
spock/plugins/helpers/clientinfo.py:30:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:89:1: W191 indentation contains tabs
self.walking_speed = 0
'PLAY<Destroy Entities': 'handle_destroy_entities',
^
^
spock/plugins/helpers/clientinfo.py:32:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/entities.py:90:1: W191 indentation contains tabs
class PlayerHealth(Info):
'PLAY<Entity Equipment': 'handle_unhandled',
^
^
spock/plugins/helpers/clientinfo.py:33:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:91:1: W191 indentation contains tabs
def __init__(self):
'PLAY<Entity Velocity': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:34:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:92:1: W191 indentation contains tabs
self.health = 20
'PLAY<Entity Relative Move': 'handle_relative_move',
^
^
spock/plugins/helpers/clientinfo.py:35:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:93:1: W191 indentation contains tabs
self.food = 20
'PLAY<Entity Look': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:36:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:94:1: W191 indentation contains tabs
self.food_saturation = 5
'PLAY<Entity Look and Relative Move': 'handle_relative_move',
^
^
spock/plugins/helpers/clientinfo.py:38:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/entities.py:95:1: W191 indentation contains tabs
class PlayerPosition(Position):
'PLAY<Entity Teleport': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:39:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:96:1: W191 indentation contains tabs
def __init__(self):
'PLAY<Entity Head Look': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:40:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:97:1: W191 indentation contains tabs
super(self.__class__, self).__init__()
'PLAY<Entity Status': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:41:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:98:1: W191 indentation contains tabs
self.yaw = 0.0
'PLAY<Entity Metadata': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:42:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:99:1: W191 indentation contains tabs
self.pitch = 0.0
'PLAY<Entity Effect': 'handle_unhandled',
^
^
spock/plugins/helpers/clientinfo.py:43:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:100:1: W191 indentation contains tabs
self.on_ground = False
'PLAY<Remove Entity Effect': 'handle_unhandled',
^
^
spock/plugins/helpers/clientinfo.py:45:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/entities.py:101:1: W191 indentation contains tabs
class PlayerListItem(Info):
'PLAY<Entity Properties': 'handle_unhandled',
^
^
spock/plugins/helpers/clientinfo.py:46:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:102:1: W191 indentation contains tabs
def __init__(self):
'PLAY<Spawn Global Entity': 'handle_spawn_global_entity',
^
^
spock/plugins/helpers/clientinfo.py:47:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:103:1: W191 indentation contains tabs
self.uuid = 0
'PLAY<Update Entity NBT': 'handle_set_dict',
^
^
spock/plugins/helpers/clientinfo.py:48:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:104:1: W191 indentation contains tabs
self.name = ''
}
^
^
spock/plugins/helpers/clientinfo.py:49:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:105:1: W191 indentation contains tabs
self.display_name = None
def __init__(self, ploader, settings):
^
^
spock/plugins/helpers/clientinfo.py:50:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:105:2: E301 expected 1 blank line, found 0
self.ping = 0
def __init__(self, ploader, settings):
^
^
spock/plugins/helpers/clientinfo.py:51:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:106:1: W191 indentation contains tabs
self.gamemode = 0
super(self.__class__, self).__init__(ploader, settings)
^
^
spock/plugins/helpers/clientinfo.py:53:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/entities.py:107:1: W191 indentation contains tabs
class ClientInfo:
self.ec = EntityCore()
^
^
spock/plugins/helpers/clientinfo.py:54:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:108:1: W191 indentation contains tabs
def __init__(self):
ploader.provides('Entities', self.ec)
^
^
spock/plugins/helpers/clientinfo.py:55:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:110:1: W191 indentation contains tabs
self.eid = 0
#TODO: Implement all these things
^
^
spock/plugins/helpers/clientinfo.py:56:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:110:2: E265 block comment should start with '# '
self.name = ""
#TODO: Implement all these things
^
^
spock/plugins/helpers/clientinfo.py:57:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:111:1: W191 indentation contains tabs
self.uuid = ""
def handle_unhandled(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:58:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:112:1: W191 indentation contains tabs
self.abilities = Abilities()
pass
^
^
spock/plugins/helpers/clientinfo.py:59:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:114:1: W191 indentation contains tabs
self.game_info = GameInfo()
def handle_join_game(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:60:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:115:1: W191 indentation contains tabs
self.spawn_position = Position()
self.ec.client_player.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:61:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:116:1: W191 indentation contains tabs
self.health = PlayerHealth()
self.ec.entities[packet.data['eid']] = self.ec.client_player
^
^
spock/plugins/helpers/clientinfo.py:62:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:118:1: W191 indentation contains tabs
self.position = PlayerPosition()
def handle_spawn_player(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:63:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:119:1: W191 indentation contains tabs
self.player_list = {}
entity = PlayerEntity()
^
^
spock/plugins/helpers/clientinfo.py:65:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:120:1: W191 indentation contains tabs
def reset(self):
entity.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:66:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:121:1: W191 indentation contains tabs
self.__init__()
self.ec.entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:68:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/entities.py:122:1: W191 indentation contains tabs
@pl_announce('ClientInfo')
self.ec.players[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:70:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:123:1: W191 indentation contains tabs
requires = ('Event')
self.event.emit('entity_spawn', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:71:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:125:1: W191 indentation contains tabs
events = {
def handle_spawn_object(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:72:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:126:1: W191 indentation contains tabs
'LOGIN<Login Success': 'handle_login_success',
entity = ObjectEntity()
^
^
spock/plugins/helpers/clientinfo.py:73:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:127:1: W191 indentation contains tabs
'PLAY<Join Game': 'handle_join_game',
entity.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:74:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:128:1: W191 indentation contains tabs
'PLAY<Spawn Position': 'handle_spawn_position',
self.ec.entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:75:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:129:1: W191 indentation contains tabs
'PLAY<Update Health': 'handle_update_health',
self.ec.objects[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:76:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:130:1: W191 indentation contains tabs
'PLAY<Player Position and Look': 'handle_position_update',
self.event.emit('entity_spawn', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:77:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:132:1: W191 indentation contains tabs
'PLAY<Player List Item': 'handle_player_list',
def handle_spawn_mob(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:78:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:133:1: W191 indentation contains tabs
'PLAY<Change Game State': 'handle_game_state',
entity = MobEntity()
^
^
spock/plugins/helpers/clientinfo.py:79:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:134:1: W191 indentation contains tabs
'PLAY<Server Difficulty': 'handle_server_difficulty',
entity.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:80:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:135:1: W191 indentation contains tabs
'PLAY<Player Abilities': 'handle_player_abilities',
self.ec.entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:81:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:136:1: W191 indentation contains tabs
'disconnect': 'handle_disconnect',
self.ec.mobs[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:82:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:137:1: W191 indentation contains tabs
}
self.event.emit('entity_spawn', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:83:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:139:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
def handle_spawn_painting(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:83:2: E301 expected 1 blank line, found 0
spock/plugins/helpers/entities.py:140:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
entity = PaintingEntity()
^
^
spock/plugins/helpers/clientinfo.py:84:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:141:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
entity.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:85:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:142:1: W191 indentation contains tabs
self.uuids = {}
self.ec.entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:86:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:143:1: W191 indentation contains tabs
self.defered_pl = {}
self.ec.paintings[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:87:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:144:1: W191 indentation contains tabs
self.client_info = ClientInfo()
self.event.emit('entity_spawn', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:88:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:146:1: W191 indentation contains tabs
ploader.provides('ClientInfo', self.client_info)
def handle_spawn_experience_orb(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:90:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:147:1: W191 indentation contains tabs
#Login Success - Update client name and uuid
entity = ExpEntity()
^
^
spock/plugins/helpers/clientinfo.py:90:2: E265 block comment should start with '# '
spock/plugins/helpers/entities.py:148:1: W191 indentation contains tabs
#Login Success - Update client name and uuid
entity.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:91:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:149:1: W191 indentation contains tabs
def handle_login_success(self, name, packet):
self.ec.entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:92:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:150:1: W191 indentation contains tabs
self.client_info.uuid = packet.data['uuid']
self.ec.exp_orbs[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:93:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:151:1: W191 indentation contains tabs
self.client_info.name = packet.data['username']
self.event.emit('entity_spawn', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:94:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:153:1: W191 indentation contains tabs
self.event.emit('cl_login_success')
def handle_spawn_global_entity(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:96:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:154:1: W191 indentation contains tabs
#Join Game - Update client state info
entity = GlobalEntity()
^
^
spock/plugins/helpers/clientinfo.py:96:2: E265 block comment should start with '# '
spock/plugins/helpers/entities.py:155:1: W191 indentation contains tabs
#Join Game - Update client state info
entity.set_dict(packet.data)
^
^
spock/plugins/helpers/clientinfo.py:97:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:156:1: W191 indentation contains tabs
def handle_join_game(self, name, packet):
self.ec.entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:98:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:157:1: W191 indentation contains tabs
self.client_info.eid = packet.data['eid']
self.ec.global_entities[packet.data['eid']] = entity
^
^
spock/plugins/helpers/clientinfo.py:99:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:158:1: W191 indentation contains tabs
self.client_info.game_info.set_dict(packet.data)
self.event.emit('entity_spawn', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:100:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:160:1: W191 indentation contains tabs
self.event.emit('cl_join_game', self.client_info.game_info)
def handle_destroy_entities(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:102:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:161:1: W191 indentation contains tabs
#Spawn Position - Update client Spawn Position state
for eid in packet.data['eids']:
^
^
spock/plugins/helpers/clientinfo.py:102:2: E265 block comment should start with '# '
spock/plugins/helpers/entities.py:162:1: W191 indentation contains tabs
#Spawn Position - Update client Spawn Position state
if eid in self.ec.entities:
^
^
spock/plugins/helpers/clientinfo.py:103:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:163:1: W191 indentation contains tabs
def handle_spawn_position(self, name, packet):
entity = self.ec.entities[eid]
^
^
spock/plugins/helpers/clientinfo.py:104:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:164:1: W191 indentation contains tabs
self.client_info.spawn_position.set_dict(packet.data['location'])
del self.ec.entities[eid]
^
^
spock/plugins/helpers/clientinfo.py:105:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:165:1: W191 indentation contains tabs
self.event.emit('cl_spawn_update', self.client_info.spawn_position)
if eid in self.ec.players:
^
^
spock/plugins/helpers/clientinfo.py:107:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:166:1: W191 indentation contains tabs
#Update Health - Update client Health state
del self.ec.players[eid]
^
^
spock/plugins/helpers/clientinfo.py:107:2: E265 block comment should start with '# '
spock/plugins/helpers/entities.py:167:1: W191 indentation contains tabs
#Update Health - Update client Health state
elif eid in self.ec.objects:
^
^
spock/plugins/helpers/clientinfo.py:108:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:168:1: W191 indentation contains tabs
def handle_update_health(self, name, packet):
del self.ec.objects[eid]
^
^
spock/plugins/helpers/clientinfo.py:109:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:169:1: W191 indentation contains tabs
self.client_info.health.set_dict(packet.data)
elif eid in self.ec.mobs:
^
^
spock/plugins/helpers/clientinfo.py:110:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:170:1: W191 indentation contains tabs
self.event.emit('cl_health_update', self.client_info.health)
del self.ec.mobs[eid]
^
^
spock/plugins/helpers/clientinfo.py:111:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:171:1: W191 indentation contains tabs
if packet.data['health'] <= 0.0:
elif eid in self.ec.paintings:
^
^
spock/plugins/helpers/clientinfo.py:112:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:172:1: W191 indentation contains tabs
self.event.emit('cl_death', self.client_info.health)
del self.ec.paintings[eid]
^
^
spock/plugins/helpers/clientinfo.py:114:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:173:1: W191 indentation contains tabs
#Player Position and Look - Update client Position state
elif eid in self.ec.exp_orbs:
^
^
spock/plugins/helpers/clientinfo.py:114:2: E265 block comment should start with '# '
spock/plugins/helpers/entities.py:174:1: W191 indentation contains tabs
#Player Position and Look - Update client Position state
del self.ec.exp_orbs[eid]
^
^
spock/plugins/helpers/clientinfo.py:115:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:175:1: W191 indentation contains tabs
def handle_position_update(self, name, packet):
elif eid in self.ec.global_entities:
^
^
spock/plugins/helpers/clientinfo.py:116:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:176:1: W191 indentation contains tabs
f = packet.data['flags']
del self.ec.global_entities[eid]
^
^
spock/plugins/helpers/clientinfo.py:117:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:177:1: W191 indentation contains tabs
p = self.client_info.position
self.event.emit('entity_destroy', {'entity': entity})
^
^
spock/plugins/helpers/clientinfo.py:118:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:179:1: W191 indentation contains tabs
d = packet.data
def handle_relative_move(self, event, packet):
^
^
spock/plugins/helpers/clientinfo.py:119:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:180:1: W191 indentation contains tabs
p.x = p.x + d['x'] if f&FLG_XPOS_REL else d['x']
if packet.data['eid'] in self.ec.entities:
^
^
spock/plugins/helpers/clientinfo.py:119:26: E227 missing whitespace around bitwise or shift operator
spock/plugins/helpers/entities.py:181:1: W191 indentation contains tabs
p.x = p.x + d['x'] if f&FLG_XPOS_REL else d['x']
entity = self.ec.entities[packet.data['eid']]
^
^
spock/plugins/helpers/entities.py:182:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:120:1: W191 indentation contains tabs
old_pos = [entity.x, entity.y, entity.z]
p.y = p.y + d['y'] if f&FLG_YPOS_REL else d['y']
^
^
spock/plugins/helpers/entities.py:183:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:120:26: E227 missing whitespace around bitwise or shift operator
entity.set_dict(packet.data)
p.y = p.y + d['y'] if f&FLG_YPOS_REL else d['y']
^
^
spock/plugins/helpers/entities.py:184:1: W191 indentation contains tabs
entity.x = entity.x + packet.data['dx']
spock/plugins/helpers/clientinfo.py:121:1: W191 indentation contains tabs
^
p.z = p.z + d['z'] if f&FLG_ZPOS_REL else d['z']
spock/plugins/helpers/entities.py:185:1: W191 indentation contains tabs
^
entity.y = entity.y + packet.data['dy']
spock/plugins/helpers/clientinfo.py:121:26: E227 missing whitespace around bitwise or shift operator
^
p.z = p.z + d['z'] if f&FLG_ZPOS_REL else d['z']
spock/plugins/helpers/entities.py:186:1: W191 indentation contains tabs
entity.z = entity.z + packet.data['dz']
^
^
spock/plugins/helpers/clientinfo.py:122:1: W191 indentation contains tabs
spock/plugins/helpers/entities.py:187:1: W191 indentation contains tabs
p.yaw = p.yaw + d['yaw'] if f&FLG_YROT_REL else d['yaw']
self.event.emit('entity_move', {'entity': entity, 'old_pos': old_pos})
^
^
spock/plugins/helpers/clientinfo.py:122:32: E227 missing whitespace around bitwise or shift operator
spock/plugins/helpers/entities.py:189:1: W191 indentation contains tabs
p.yaw = p.yaw + d['yaw'] if f&FLG_YROT_REL else d['yaw']
def handle_set_dict(self, event, packet):
^
^
spock/plugins/helpers/entities.py:190:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:123:1: W191 indentation contains tabs
if packet.data['eid'] in self.ec.entities:
p.pitch = p.pitch + d['pitch'] if f&FLG_XROT_REL else d['pitch']
^
^
spock/plugins/helpers/entities.py:191:1: W191 indentation contains tabs
spock/plugins/helpers/clientinfo.py:123:38: E227 missing whitespace around bitwise or shift operator
self.ec.entities[packet.data['eid']].set_dict(packet.data)
p.pitch = p.pitch + d['pitch'] if f&FLG_XROT_REL else d['pitch']
^
^
spock/plugins/helpers/clientinfo.py:124:1: W191 indentation contains tabs
self.event.emit('cl_position_update', self.client_info.position)
^
spock/plugins/helpers/clientinfo.py:126:1: W191 indentation contains tabs
#Player List Item - Update player list
^
spock/plugins/helpers/clientinfo.py:126:2: E265 block comment should start with '# '
#Player List Item - Update player list
^
spock/plugins/helpers/clientinfo.py:127:1: W191 indentation contains tabs
def handle_player_list(self, name, packet):
^
spock/plugins/helpers/clientinfo.py:128:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/plugins/helpers/clientinfo.py:129:1: W191 indentation contains tabs
for pl in packet.data['player_list']:
^
spock/plugins/helpers/clientinfo.py:130:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER and pl['uuid'] not in self.uuids:
^
spock/plugins/helpers/clientinfo.py:131:1: W191 indentation contains tabs
item = PlayerListItem()
^
spock/plugins/helpers/clientinfo.py:132:1: W191 indentation contains tabs
item.set_dict(pl)
^
spock/plugins/helpers/clientinfo.py:133:1: W191 indentation contains tabs
if pl['uuid'] in self.defered_pl:
^
spock/plugins/helpers/clientinfo.py:134:1: W191 indentation contains tabs
for i in self.defered_pl[pl['uuid']]:
^
spock/plugins/helpers/clientinfo.py:135:1: W191 indentation contains tabs
item.set_dict(i)
^
spock/plugins/helpers/clientinfo.py:136:1: W191 indentation contains tabs
del self.defered_pl[pl['uuid']]
^
spock/plugins/helpers/clientinfo.py:137:1: W191 indentation contains tabs
self.client_info.player_list[pl['uuid']] = item
^
spock/plugins/helpers/clientinfo.py:138:1: W191 indentation contains tabs
self.uuids[pl['uuid']] = item
^
spock/plugins/helpers/clientinfo.py:139:1: W191 indentation contains tabs
self.event.emit('cl_add_player', item)
^
spock/plugins/helpers/clientinfo.py:140:1: W191 indentation contains tabs
elif (
^
spock/plugins/helpers/clientinfo.py:141:1: W191 indentation contains tabs
act == mcdata.PL_UPDATE_GAMEMODE or
^
spock/plugins/helpers/clientinfo.py:142:1: W191 indentation contains tabs
act == mcdata.PL_UPDATE_LATENCY or
^
spock/plugins/helpers/clientinfo.py:142:36: E272 multiple spaces before keyword
act == mcdata.PL_UPDATE_LATENCY or
^
spock/plugins/helpers/clientinfo.py:143:1: W191 indentation contains tabs
act == mcdata.PL_UPDATE_DISPLAY
^
spock/plugins/helpers/clientinfo.py:144:1: W191 indentation contains tabs
):
^
spock/plugins/helpers/clientinfo.py:145:1: W191 indentation contains tabs
if pl['uuid'] in self.uuids:
^
spock/plugins/helpers/clientinfo.py:146:1: W191 indentation contains tabs
item = self.uuids[pl['uuid']]
^
spock/plugins/helpers/clientinfo.py:147:1: W191 indentation contains tabs
item.set_dict(pl)
^
spock/plugins/helpers/clientinfo.py:148:1: W191 indentation contains tabs
self.event.emit('cl_update_player', item)
^
spock/plugins/helpers/clientinfo.py:149:1: W191 indentation contains tabs
#Sometime the server sends updates before it gives us the player
^
spock/plugins/helpers/clientinfo.py:149:5: E265 block comment should start with '# '
#Sometime the server sends updates before it gives us the player
^
spock/plugins/helpers/clientinfo.py:150:1: W191 indentation contains tabs
#We store those in a list and apply them when ADD_PLAYER is sent
^
spock/plugins/helpers/clientinfo.py:150:5: E265 block comment should start with '# '
#We store those in a list and apply them when ADD_PLAYER is sent
^
spock/plugins/helpers/clientinfo.py:151:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/clientinfo.py:152:1: W191 indentation contains tabs
defered = self.defered_pl.get(pl['uuid'], [])
^
spock/plugins/helpers/clientinfo.py:153:1: W191 indentation contains tabs
defered.append(pl)
^
spock/plugins/helpers/clientinfo.py:154:1: W191 indentation contains tabs
self.defered_pl[pl['uuid']] = defered
^
spock/plugins/helpers/clientinfo.py:155:1: W191 indentation contains tabs
elif act == mcdata.PL_REMOVE_PLAYER and pl['uuid'] in self.uuids:
^
spock/plugins/helpers/clientinfo.py:156:1: W191 indentation contains tabs
item = self.uuids[pl['uuid']]
^
spock/plugins/helpers/clientinfo.py:157:1: W191 indentation contains tabs
del self.client_info.player_list[pl['uuid']]
^
spock/plugins/helpers/clientinfo.py:158:1: W191 indentation contains tabs
del self.uuids[pl['uuid']]
^
spock/plugins/helpers/clientinfo.py:159:1: W191 indentation contains tabs
self.event.emit('cl_remove_player', item)
^
spock/plugins/helpers/clientinfo.py:161:1: W191 indentation contains tabs
#Change Game State
^
spock/plugins/helpers/clientinfo.py:161:2: E265 block comment should start with '# '
#Change Game State
^
spock/plugins/helpers/clientinfo.py:162:1: W191 indentation contains tabs
def handle_game_state(self, name, packet):
^
spock/plugins/helpers/clientinfo.py:163:1: W191 indentation contains tabs
if packet.data['reason'] == GS_GAMEMODE:
^
spock/plugins/helpers/clientinfo.py:164:1: W191 indentation contains tabs
self.client_info.game_info.gamemode = packet.data['value']
^
spock/plugins/helpers/clientinfo.py:166:1: W191 indentation contains tabs
#Server Difficulty
^
spock/plugins/helpers/clientinfo.py:166:2: E265 block comment should start with '# '
#Server Difficulty
^
spock/plugins/helpers/clientinfo.py:167:1: W191 indentation contains tabs
def handle_server_difficulty(self, name, packet):
^
spock/plugins/helpers/clientinfo.py:168:1: W191 indentation contains tabs
self.client_info.game_info.difficulty = packet.data['difficulty']
^
spock/plugins/helpers/clientinfo.py:170:1: W191 indentation contains tabs
#Player Abilities
^
spock/plugins/helpers/clientinfo.py:170:2: E265 block comment should start with '# '
#Player Abilities
^
spock/plugins/helpers/clientinfo.py:171:1: W191 indentation contains tabs
def handle_player_abilities(self, name, packet):
^
spock/plugins/helpers/clientinfo.py:172:1: W191 indentation contains tabs
#TODO: flag stuff here
^
spock/plugins/helpers/clientinfo.py:172:3: E265 block comment should start with '# '
#TODO: flag stuff here
^
spock/plugins/helpers/clientinfo.py:173:1: W191 indentation contains tabs
self.client_info.abilities.flying_speed = packet.data['flying_speed']
^
spock/plugins/core/settings.py:1:1: I101 Imported names are in the wrong order. Should be get_settings, pl_announce
spock/plugins/helpers/clientinfo.py:174:1: W191 indentation contains tabs
from spock.utils import pl_announce, get_settings
self.client_info.abilities.walking_speed = packet.data['walking_speed']
^
spock/plugins/helpers/clientinfo.py:176:1: W191 indentation contains tabs
def handle_disconnect(self, name, data):
^
^
spock/plugins/helpers/clientinfo.py:177:1: W191 indentation contains tabs
spock/plugins/core/settings.py:2:1: I100 Imports statements are in the wrong order. from spock.plugins should be before from spock.utils
self.client_info.reset()
from spock.plugins import DefaultPlugins
^
^
spock/plugins/core/settings.py:4:1: E302 expected 2 blank lines, found 1
class PloaderFetch:
^
spock/plugins/core/settings.py:5:1: W191 indentation contains tabs
def __init__(self, plugins, plugin_settings):
^
spock/plugins/core/settings.py:6:1: W191 indentation contains tabs
self.plugins = plugins
^
spock/plugins/core/settings.py:7:1: W191 indentation contains tabs
self.plugin_settings = plugin_settings
^
spock/plugins/core/settings.py:9:1: W191 indentation contains tabs
def get_plugins(self):
^
spock/plugins/core/settings.py:10:1: W191 indentation contains tabs
return self.plugins
^
spock/plugins/core/settings.py:12:1: W191 indentation contains tabs
def get_plugin_settings(self, plugin):
^
spock/plugins/core/settings.py:13:1: W191 indentation contains tabs
return self.plugin_settings.get(plugin, {})
^
spock/plugins/core/settings.py:15:1: E302 expected 2 blank lines, found 1
@pl_announce('PloaderFetch')
^
spock/plugins/core/settings.py:17:1: W191 indentation contains tabs
def __init__(self, ploader, kwargs):
^
spock/plugins/core/settings.py:18:1: W191 indentation contains tabs
settings = get_settings(kwargs.get('settings', {}), kwargs)
^
spock/plugins/core/settings.py:19:1: W191 indentation contains tabs
plugin_list = settings.get('plugins', DefaultPlugins)
^
spock/plugins/core/settings.py:20:1: W191 indentation contains tabs
plugins = []
^
spock/plugins/core/settings.py:21:1: W191 indentation contains tabs
plugin_settings = {}
^
spock/plugins/core/settings.py:22:1: W191 indentation contains tabs
for plugin in plugin_list:
^
spock/plugins/core/settings.py:23:1: W191 indentation contains tabs
plugins.append(plugin[1])
^
spock/plugins/core/settings.py:24:1: W191 indentation contains tabs
plugin_settings[plugin[1]] = settings.get(plugin[0], {})
^
spock/plugins/core/settings.py:25:1: W191 indentation contains tabs
ploader.provides('PloaderFetch', PloaderFetch(plugins, plugin_settings))
^
spock/plugins/core/ticker.py:9:1: E302 expected 2 blank lines, found 1
class TickerPlugin(PluginBase):
^
spock/plugins/core/ticker.py:10:1: W191 indentation contains tabs
requires = ('Event', 'Timers')
^
spock/plugins/core/ticker.py:11:1: W191 indentation contains tabs
events = {
^
spock/plugins/core/ticker.py:12:1: W191 indentation contains tabs
'PLAY_STATE': 'start_tickers',
^
spock/plugins/core/ticker.py:13:1: W191 indentation contains tabs
}
^
spock/plugins/core/ticker.py:15:1: W191 indentation contains tabs
def start_tickers(self, _, __):
^
spock/plugins/core/ticker.py:16:1: W191 indentation contains tabs
self.timers.reg_event_timer(CLIENT_TICK_RATE, self.client_tick)
^
spock/plugins/core/ticker.py:18:1: W191 indentation contains tabs
def client_tick(self):
^
spock/plugins/core/ticker.py:19:1: W191 indentation contains tabs
self.event.emit('action_tick')
^
spock/plugins/core/ticker.py:20:1: W191 indentation contains tabs
self.event.emit('physics_tick')
^
spock/plugins/core/ticker.py:21:1: W191 indentation contains tabs
self.event.emit('client_tick')
^
spock/plugins/helpers/physics.py:8:80: E501 line too long (80 > 79 characters)
Minecraft client/player physics is unfortunately very poorly documented. Most of
^
spock/plugins/helpers/physics.py:14:1: E265 block comment should start with '# '
#Gravitational constants defined in blocks/(client tick)^2
^
spock/plugins/helpers/physics.py:18:17: E221 multiple spaces before operator
BLOCK_ENTITY_GAV = 0.04
^
spock/plugins/helpers/physics.py:19:17: E221 multiple spaces before operator
ARROW_ENTITY_GAV = 0.05
^
spock/plugins/helpers/physics.py:21:1: E265 block comment should start with '# '
#Air drag constants defined in 1/tick
^
spock/plugins/helpers/physics.py:25:17: E221 multiple spaces before operator
BLOCK_ENTITY_DRG = 0.02
^
spock/plugins/helpers/physics.py:26:17: E221 multiple spaces before operator
ARROW_ENTITY_DRG = 0.01
^
spock/plugins/helpers/physics.py:28:1: E265 block comment should start with '# '
#Player ground acceleration isn't actually linear, but we're going to pretend
^
spock/plugins/helpers/physics.py:29:1: E265 block comment should start with '# '
#that it is. Max ground velocity for a walking client is 0.215blocks/tick, it
^
spock/plugins/helpers/physics.py:30:1: E265 block comment should start with '# '
#takes a dozen or so ticks to get close to max velocity. Sprint is 0.28, just
^
spock/plugins/helpers/physics.py:31:1: E265 block comment should start with '# '
#apply more acceleration to reach a higher max ground velocity
^
spock/plugins/helpers/physics.py:32:15: E221 multiple spaces before operator
PLAYER_WLK_ACC = 0.15
^
spock/plugins/helpers/physics.py:33:15: E221 multiple spaces before operator
PLAYER_SPR_ACC = 0.20
^
spock/plugins/helpers/physics.py:34:15: E221 multiple spaces before operator
PLAYER_GND_DRG = 0.41
^
spock/plugins/helpers/physics.py:36:1: E265 block comment should start with '# '
#Seems about right, not based on anything
^
spock/plugins/helpers/physics.py:37:15: E221 multiple spaces before operator
PLAYER_JMP_ACC = 0.45
^
spock/plugins/helpers/physics.py:40:1: I201 Missing newline before sections or imports.
from spock.utils import pl_announce
^
spock/plugins/helpers/physics.py:41:1: I100 Imports statements are in the wrong order. from spock.mcmap should be before from spock.utils
from spock.mcmap import mapdata
^
spock/plugins/helpers/physics.py:44:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.vector
from spock.plugins.base import PluginBase
^
spock/plugins/helpers/physics.py:46:1: I100 Imports statements are in the wrong order. import logging should be before from spock.plugins.base
import logging
^
spock/plugins/helpers/physics.py:49:1: E302 expected 2 blank lines, found 1
class PhysicsCore:
^
spock/plugins/helpers/physics.py:50:1: W191 indentation contains tabs
def __init__(self, vec, pos):
^
spock/plugins/helpers/physics.py:51:1: W191 indentation contains tabs
self.vec = vec
^
spock/plugins/helpers/physics.py:52:1: W191 indentation contains tabs
self.pos = pos
^
spock/plugins/helpers/physics.py:54:1: W191 indentation contains tabs
def jump(self):
^
spock/plugins/helpers/physics.py:55:1: W191 indentation contains tabs
if self.pos.on_ground:
^
spock/plugins/helpers/physics.py:56:1: W191 indentation contains tabs
self.pos.on_ground = False
^
spock/plugins/helpers/physics.py:57:1: W191 indentation contains tabs
self.vec += Vector3(0,PLAYER_JMP_ACC,0)
^
spock/plugins/helpers/physics.py:57:25: E231 missing whitespace after ','
self.vec += Vector3(0,PLAYER_JMP_ACC,0)
^
spock/plugins/helpers/physics.py:57:40: E231 missing whitespace after ','
self.vec += Vector3(0,PLAYER_JMP_ACC,0)
^
spock/plugins/helpers/physics.py:59:1: W191 indentation contains tabs
def walk(self, angle, radians = False):
^
spock/plugins/helpers/physics.py:59:31: E251 unexpected spaces around keyword / parameter equals
def walk(self, angle, radians = False):
^
spock/plugins/helpers/physics.py:59:33: E251 unexpected spaces around keyword / parameter equals
def walk(self, angle, radians = False):
^
spock/plugins/helpers/physics.py:60:1: W191 indentation contains tabs
if not radians:
^
spock/plugins/helpers/physics.py:61:1: W191 indentation contains tabs
angle = math.radians(angle)
^
spock/plugins/helpers/physics.py:62:1: W191 indentation contains tabs
z = math.cos(angle)*PLAYER_WLK_ACC
^
spock/plugins/helpers/physics.py:63:1: W191 indentation contains tabs
x = math.sin(angle)*PLAYER_WLK_ACC
^
spock/plugins/helpers/physics.py:64:1: W191 indentation contains tabs
self.vec += Vector3(x,0,z)
^
spock/plugins/helpers/physics.py:64:24: E231 missing whitespace after ','
self.vec += Vector3(x,0,z)
^
spock/plugins/helpers/physics.py:64:26: E231 missing whitespace after ','
self.vec += Vector3(x,0,z)
^
spock/plugins/helpers/physics.py:66:1: W191 indentation contains tabs
def sprint(self, angle, radians = False):
^
spock/plugins/helpers/physics.py:66:33: E251 unexpected spaces around keyword / parameter equals
def sprint(self, angle, radians = False):
^
spock/plugins/helpers/physics.py:66:35: E251 unexpected spaces around keyword / parameter equals
def sprint(self, angle, radians = False):
^
spock/plugins/helpers/physics.py:67:1: W191 indentation contains tabs
if not radians:
^
spock/plugins/helpers/physics.py:68:1: W191 indentation contains tabs
angle = math.radians(angle)
^
spock/plugins/helpers/physics.py:69:1: W191 indentation contains tabs
z = math.cos(angle)*PLAYER_SPR_ACC
^
spock/plugins/helpers/physics.py:70:1: W191 indentation contains tabs
x = math.sin(angle)*PLAYER_SPR_ACC
^
spock/plugins/helpers/physics.py:71:1: W191 indentation contains tabs
self.vec += Vector3(x,0,z)
^
spock/plugins/helpers/physics.py:71:24: E231 missing whitespace after ','
self.vec += Vector3(x,0,z)
^
spock/plugins/helpers/physics.py:71:26: E231 missing whitespace after ','
self.vec += Vector3(x,0,z)
^
spock/plugins/helpers/physics.py:76:1: W191 indentation contains tabs
requires = ('Event', 'ClientInfo', 'World')
^
spock/plugins/helpers/physics.py:77:1: W191 indentation contains tabs
events = {
^
spock/plugins/helpers/physics.py:78:1: W191 indentation contains tabs
'physics_tick': 'tick',
^
spock/plugins/helpers/physics.py:79:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/physics.py:80:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/helpers/physics.py:80:2: E301 expected 1 blank line, found 0
def __init__(self, ploader, settings):
^
spock/plugins/helpers/physics.py:81:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/helpers/physics.py:83:1: W191 indentation contains tabs
self.vec = Vector3(0.0, 0.0, 0.0)
^
spock/plugins/helpers/physics.py:84:1: W191 indentation contains tabs
self.playerbb = BoundingBox(0.8, 1.8) #wiki says 0.6 but I made it 0.8 to give a little wiggle room
^
spock/plugins/helpers/physics.py:84:40: E261 at least two spaces before inline comment
self.playerbb = BoundingBox(0.8, 1.8) #wiki says 0.6 but I made it 0.8 to give a little wiggle room
^
spock/plugins/helpers/physics.py:84:41: E262 inline comment should start with '# '
self.playerbb = BoundingBox(0.8, 1.8) #wiki says 0.6 but I made it 0.8 to give a little wiggle room
^
spock/plugins/helpers/physics.py:84:80: E501 line too long (101 > 79 characters)
self.playerbb = BoundingBox(0.8, 1.8) #wiki says 0.6 but I made it 0.8 to give a little wiggle room
^
spock/plugins/helpers/physics.py:85:1: W191 indentation contains tabs
self.pos = self.clientinfo.position
^
spock/plugins/helpers/physics.py:86:1: W191 indentation contains tabs
ploader.provides('Physics', PhysicsCore(self.vec, self.pos))
^
spock/plugins/helpers/physics.py:88:1: W191 indentation contains tabs
def tick(self, _, __):
^
spock/plugins/helpers/physics.py:89:1: W191 indentation contains tabs
self.check_collision()
^
spock/plugins/helpers/physics.py:90:1: W191 indentation contains tabs
self.apply_horizontal_drag()
^
spock/plugins/helpers/physics.py:91:1: W191 indentation contains tabs
self.apply_vector()
^
spock/plugins/helpers/physics.py:93:1: W191 indentation contains tabs
def check_collision(self):
^
spock/plugins/helpers/physics.py:94:1: W191 indentation contains tabs
cb = Position(math.floor(self.pos.x), math.floor(self.pos.y), math.floor(self.pos.z))
^
spock/plugins/helpers/physics.py:94:80: E501 line too long (87 > 79 characters)
cb = Position(math.floor(self.pos.x), math.floor(self.pos.y), math.floor(self.pos.z))
^
spock/plugins/helpers/physics.py:95:1: W191 indentation contains tabs
if self.block_collision(cb, y=2): #we check +2 because above my head
^
spock/plugins/helpers/physics.py:95:36: E261 at least two spaces before inline comment
if self.block_collision(cb, y=2): #we check +2 because above my head
^
spock/plugins/helpers/physics.py:95:37: E262 inline comment should start with '# '
if self.block_collision(cb, y=2): #we check +2 because above my head
^
spock/plugins/helpers/physics.py:96:1: W191 indentation contains tabs
self.vec.y = 0
^
spock/plugins/helpers/physics.py:97:1: W191 indentation contains tabs
if self.block_collision(cb, y=-1): #we check below feet
^
spock/plugins/helpers/physics.py:97:37: E261 at least two spaces before inline comment
if self.block_collision(cb, y=-1): #we check below feet
^
spock/plugins/helpers/physics.py:97:38: E262 inline comment should start with '# '
if self.block_collision(cb, y=-1): #we check below feet
^
spock/plugins/helpers/physics.py:98:1: W191 indentation contains tabs
self.pos.on_ground = True
^
spock/plugins/helpers/physics.py:99:1: W191 indentation contains tabs
self.vec.y = 0
^
spock/plugins/helpers/physics.py:100:1: W191 indentation contains tabs
self.pos.y = cb.y
^
spock/plugins/helpers/physics.py:101:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/physics.py:102:1: W191 indentation contains tabs
self.pos.on_ground = False
^
spock/plugins/helpers/physics.py:103:1: W191 indentation contains tabs
self.vec -= Vector3(0,PLAYER_ENTITY_GAV,0)
^
spock/plugins/helpers/physics.py:103:25: E231 missing whitespace after ','
spock/plugins/core/auth.py:7:1: E265 block comment should start with '# '
self.vec -= Vector3(0,PLAYER_ENTITY_GAV,0)
#This is for python2 compatibility
^
^
spock/plugins/helpers/physics.py:103:43: E231 missing whitespace after ','
spock/plugins/core/auth.py:9:1: W191 indentation contains tabs
self.vec -= Vector3(0,PLAYER_ENTITY_GAV,0)
import urllib.request as request
^
^
spock/plugins/core/auth.py:10:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:104:1: W191 indentation contains tabs
from urllib.error import URLError
self.apply_vertical_drag()
^
^
spock/plugins/core/auth.py:12:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:105:1: W191 indentation contains tabs
import urllib2 as request
#feet or head collide with x
^
^
spock/plugins/core/auth.py:13:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:105:3: E265 block comment should start with '# '
from urllib2 import URLError
#feet or head collide with x
^
^
spock/plugins/core/auth.py:16:1: I100 Imports statements are in the wrong order. from Crypto should be before from Crypto.PublicKey
from Crypto import Random
spock/plugins/helpers/physics.py:106:1: W191 indentation contains tabs
^
if self.block_collision(cb, x=1) or self.block_collision(cb, x=-1) or self.block_collision(cb, y=1, x=1) or self.block_collision(cb, y=1, x=-1):
spock/plugins/core/auth.py:17:1: F401 'utils' imported but unused
^
from spock import utils
spock/plugins/helpers/physics.py:106:80: E501 line too long (146 > 79 characters)
^
if self.block_collision(cb, x=1) or self.block_collision(cb, x=-1) or self.block_collision(cb, y=1, x=1) or self.block_collision(cb, y=1, x=-1):
spock/plugins/core/auth.py:17:1: I201 Missing newline before sections or imports.
from spock import utils
^
^
spock/plugins/core/auth.py:18:1: F401 'mcdata' imported but unused
spock/plugins/helpers/physics.py:107:1: W191 indentation contains tabs
from spock.mcp import mcdata, mcpacket, yggdrasil
self.vec.x = 0
^
^
spock/plugins/core/auth.py:18:1: F401 'mcpacket' imported but unused
spock/plugins/helpers/physics.py:108:1: W191 indentation contains tabs
from spock.mcp import mcdata, mcpacket, yggdrasil
#replace with real info in event
^
^
spock/plugins/core/auth.py:20:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.utils
from spock.plugins.base import PluginBase
spock/plugins/helpers/physics.py:108:4: E265 block comment should start with '# '
^
#replace with real info in event
spock/plugins/core/auth.py:22:1: I100 Imports statements are in the wrong order. import logging should be before from spock.plugins.base
^
import logging
spock/plugins/helpers/physics.py:109:1: W191 indentation contains tabs
^
self.event.emit("phy_collision", "x")
spock/plugins/core/auth.py:26:1: E302 expected 2 blank lines, found 1
^
def JavaHexDigest(digest):
spock/plugins/helpers/physics.py:110:1: W191 indentation contains tabs
^
#feet or head collide with z
spock/plugins/core/auth.py:26:5: N802 function name should be lowercase
^
def JavaHexDigest(digest):
spock/plugins/helpers/physics.py:110:3: E265 block comment should start with '# '
^
#feet or head collide with z
spock/plugins/core/auth.py:27:1: W191 indentation contains tabs
^
d = int(digest.hexdigest(), 16)
spock/plugins/helpers/physics.py:111:1: W191 indentation contains tabs
^
if self.block_collision(cb, z=1) or self.block_collision(cb, z=-1) or self.block_collision(cb, y=1, z=1) or self.block_collision(cb, y=1, z=-1):
spock/plugins/core/auth.py:28:1: W191 indentation contains tabs
^
if d >> 39 * 4 & 0x8:
spock/plugins/helpers/physics.py:111:80: E501 line too long (146 > 79 characters)
^
if self.block_collision(cb, z=1) or self.block_collision(cb, z=-1) or self.block_collision(cb, y=1, z=1) or self.block_collision(cb, y=1, z=-1):
spock/plugins/core/auth.py:29:1: W191 indentation contains tabs
d = "-%x" % ((-d) & (2 ** (40 * 4) - 1))
^
^
spock/plugins/core/auth.py:30:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:112:1: W191 indentation contains tabs
else:
self.vec.z = 0
^
^
spock/plugins/core/auth.py:31:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:113:1: W191 indentation contains tabs
d = "%x" % d
#replace with real info in event
^
^
spock/plugins/core/auth.py:32:1: W191 indentation contains tabs
return d
^
spock/plugins/core/auth.py:34:1: E302 expected 2 blank lines, found 1
class AuthCore:
^
spock/plugins/core/auth.py:35:1: W191 indentation contains tabs
def __init__(self, authenticated, event):
^
spock/plugins/core/auth.py:36:1: W191 indentation contains tabs
self.event = event
^
spock/plugins/core/auth.py:37:1: W191 indentation contains tabs
self.authenticated = authenticated
^
spock/plugins/core/auth.py:38:1: W191 indentation contains tabs
self.username = None
^
spock/plugins/core/auth.py:39:1: W191 indentation contains tabs
self.selected_profile = None
^
spock/plugins/core/auth.py:40:1: W191 indentation contains tabs
self.shared_secret = None
^
spock/plugins/core/auth.py:41:1: W191 indentation contains tabs
self.ygg = yggdrasil.YggAuth()
spock/plugins/helpers/physics.py:113:4: E265 block comment should start with '# '
^
#replace with real info in event
spock/plugins/core/auth.py:43:1: W191 indentation contains tabs
^
def start_session(self, username, password = ''):
spock/plugins/helpers/physics.py:114:1: W191 indentation contains tabs
^
self.event.emit("phy_collision", "z")
spock/plugins/core/auth.py:43:44: E251 unexpected spaces around keyword / parameter equals
^
def start_session(self, username, password = ''):
spock/plugins/helpers/physics.py:116:1: W191 indentation contains tabs
def block_collision(self, cb, x = 0, y = 0, z = 0):
^
^
spock/plugins/core/auth.py:43:46: E251 unexpected spaces around keyword / parameter equals
spock/plugins/helpers/physics.py:116:33: E251 unexpected spaces around keyword / parameter equals
def start_session(self, username, password = ''):
def block_collision(self, cb, x = 0, y = 0, z = 0):
^
^
spock/plugins/core/auth.py:44:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:116:35: E251 unexpected spaces around keyword / parameter equals
rep = {}
def block_collision(self, cb, x = 0, y = 0, z = 0):
^
spock/plugins/core/auth.py:45:1: W191 indentation contains tabs
^
if self.authenticated:
spock/plugins/helpers/physics.py:116:40: E251 unexpected spaces around keyword / parameter equals
^
def block_collision(self, cb, x = 0, y = 0, z = 0):
spock/plugins/core/auth.py:46:1: W191 indentation contains tabs
logger.info("AUTHCORE: Attempting login with username: %s", username)
^
^
spock/plugins/helpers/physics.py:116:42: E251 unexpected spaces around keyword / parameter equals
spock/plugins/core/auth.py:47:1: W191 indentation contains tabs
def block_collision(self, cb, x = 0, y = 0, z = 0):
rep = self.ygg.authenticate(username, password)
^
^
spock/plugins/core/auth.py:48:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:116:47: E251 unexpected spaces around keyword / parameter equals
if rep == None or 'error' in rep:
def block_collision(self, cb, x = 0, y = 0, z = 0):
^
spock/plugins/core/auth.py:48:11: E711 comparison to None should be 'if cond is None:'
^
if rep == None or 'error' in rep:
spock/plugins/helpers/physics.py:116:49: E251 unexpected spaces around keyword / parameter equals
^
def block_collision(self, cb, x = 0, y = 0, z = 0):
spock/plugins/core/auth.py:49:1: W191 indentation contains tabs
logger.error('AUTHCORE: Login Unsuccessful, Response: %s', rep)
^
^
spock/plugins/helpers/physics.py:117:1: W191 indentation contains tabs
spock/plugins/core/auth.py:50:1: W191 indentation contains tabs
block_id, meta = self.world.get_block(cb.x+x, cb.y+y, cb.z+z)
self.event.emit('AUTH_ERR')
^
^
spock/plugins/helpers/physics.py:118:1: W191 indentation contains tabs
spock/plugins/core/auth.py:51:1: W191 indentation contains tabs
block = mapdata.get_block(block_id, meta)
return rep
^
^
spock/plugins/helpers/physics.py:119:1: W191 indentation contains tabs
spock/plugins/core/auth.py:52:1: W191 indentation contains tabs
if block == None:
if 'selectedProfile' in rep:
^
^
spock/plugins/helpers/physics.py:119:12: E711 comparison to None should be 'if cond is None:'
spock/plugins/core/auth.py:53:1: W191 indentation contains tabs
if block == None:
self.selected_profile = rep['selectedProfile']
^
^
spock/plugins/core/auth.py:54:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:120:1: W191 indentation contains tabs
self.username = rep['selectedProfile']['name']
return False
^
^
spock/plugins/core/auth.py:55:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:121:1: W191 indentation contains tabs
logger.info("AUTHCORE: Logged in as: %s", self.username)
#possibly we want to use the centers of blocks as the starting points for bounding boxes instead of 0,0,0
^
^
spock/plugins/core/auth.py:56:1: W191 indentation contains tabs
logger.info("AUTHCORE: Selected Profile: %s", self.selected_profile)
spock/plugins/helpers/physics.py:121:3: E265 block comment should start with '# '
^
#possibly we want to use the centers of blocks as the starting points for bounding boxes instead of 0,0,0
spock/plugins/core/auth.py:57:1: W191 indentation contains tabs
^
else:
spock/plugins/helpers/physics.py:121:80: E501 line too long (107 > 79 characters)
^
#possibly we want to use the centers of blocks as the starting points for bounding boxes instead of 0,0,0
spock/plugins/core/auth.py:58:1: W191 indentation contains tabs
self.username = username
^
^
spock/plugins/core/auth.py:59:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:122:1: W191 indentation contains tabs
else:
#this might make thinks easier when we get to more complex shapes that are in the center of a block aka fences but more complicated for the player
^
^
spock/plugins/core/auth.py:60:1: W191 indentation contains tabs
self.username = username
spock/plugins/helpers/physics.py:122:3: E265 block comment should start with '# '
^
#this might make thinks easier when we get to more complex shapes that are in the center of a block aka fences but more complicated for the player
spock/plugins/core/auth.py:61:1: W191 indentation contains tabs
^
return rep
^
spock/plugins/helpers/physics.py:122:80: E501 line too long (148 > 79 characters)
spock/plugins/core/auth.py:63:1: W191 indentation contains tabs
#this might make thinks easier when we get to more complex shapes that are in the center of a block aka fences but more complicated for the player
def gen_shared_secret(self):
^
spock/plugins/core/auth.py:64:1: W191 indentation contains tabs
^
self.shared_secret = Random._UserFriendlyRNG.get_random_bytes(16)
spock/plugins/helpers/physics.py:123:1: W191 indentation contains tabs
^
#uncenter the player position and bump it up a little down to prevent colliding in the floor
spock/plugins/core/auth.py:65:1: W191 indentation contains tabs
return self.shared_secret
^
^
spock/plugins/helpers/physics.py:123:3: E265 block comment should start with '# '
spock/plugins/core/auth.py:67:1: E302 expected 2 blank lines, found 1
#uncenter the player position and bump it up a little down to prevent colliding in the floor
@pl_announce('Auth')
^
^
spock/plugins/core/auth.py:69:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:123:80: E501 line too long (94 > 79 characters)
requires = ('Event', 'Net')
#uncenter the player position and bump it up a little down to prevent colliding in the floor
^
spock/plugins/core/auth.py:70:1: W191 indentation contains tabs
defaults = {
^
^
spock/plugins/helpers/physics.py:124:1: W191 indentation contains tabs
spock/plugins/core/auth.py:71:1: W191 indentation contains tabs
pos1 = Position(self.pos.x-self.playerbb.w/2, self.pos.y-0.2, self.pos.z-self.playerbb.d/2)
'authenticated': True,
^
^
spock/plugins/core/auth.py:72:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:124:80: E501 line too long (93 > 79 characters)
'sess_quit': True,
pos1 = Position(self.pos.x-self.playerbb.w/2, self.pos.y-0.2, self.pos.z-self.playerbb.d/2)
^
spock/plugins/core/auth.py:73:1: W191 indentation contains tabs
}
^
^
spock/plugins/core/auth.py:74:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:125:1: W191 indentation contains tabs
events = {
bb1 = self.playerbb
^
^
spock/plugins/core/auth.py:75:1: W191 indentation contains tabs
'AUTH_ERR': 'handleAUTHERR',
spock/plugins/helpers/physics.py:126:1: W191 indentation contains tabs
^
bb2 = block.bounding_box
spock/plugins/core/auth.py:76:1: W191 indentation contains tabs
^
'SESS_ERR': 'handleSESSERR',
^
spock/plugins/helpers/physics.py:127:1: W191 indentation contains tabs
spock/plugins/core/auth.py:77:1: W191 indentation contains tabs
if bb2 != None:
'LOGIN<Encryption Request': 'handle_encryption_request',
^
^
spock/plugins/core/auth.py:78:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:127:10: E711 comparison to None should be 'if cond is not None:'
}
if bb2 != None:
^
^
spock/plugins/core/auth.py:79:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
spock/plugins/helpers/physics.py:128:1: W191 indentation contains tabs
^
pos2 = Position(cb.x+x+bb2.x, cb.y+y+bb2.y, cb.z+z+bb2.z)
spock/plugins/core/auth.py:79:2: E301 expected 1 blank line, found 0
^
def __init__(self, ploader, settings):
spock/plugins/helpers/physics.py:131:1: W191 indentation contains tabs
^
((pos1.z + bb1.d) >= (pos2.z) and (pos1.z) <= (pos2.z + bb2.d)):
spock/plugins/core/auth.py:80:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
^
spock/plugins/helpers/physics.py:132:1: W191 indentation contains tabs
spock/plugins/core/auth.py:81:1: W191 indentation contains tabs
return True
self.authenticated = self.settings['authenticated']
^
^
spock/plugins/core/auth.py:82:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:133:1: W191 indentation contains tabs
self.sess_quit = self.settings['sess_quit']
return False
^
^
spock/plugins/core/auth.py:83:1: W191 indentation contains tabs
self.auth = AuthCore(self.authenticated, self.event)
spock/plugins/helpers/physics.py:135:1: W191 indentation contains tabs
^
def apply_vertical_drag(self):
spock/plugins/core/auth.py:84:1: W191 indentation contains tabs
^
self.auth.gen_shared_secret()
^
spock/plugins/helpers/physics.py:136:1: W191 indentation contains tabs
spock/plugins/core/auth.py:85:1: W191 indentation contains tabs
self.vec.y -= self.vec.y*PLAYER_ENTITY_DRG
ploader.provides('Auth', self.auth)
^
^
spock/plugins/helpers/physics.py:138:1: W191 indentation contains tabs
spock/plugins/core/auth.py:87:1: W191 indentation contains tabs
def apply_horizontal_drag(self):
def handleAUTHERR(self, name, data):
^
^
spock/plugins/core/auth.py:87:6: N802 function name should be lowercase
spock/plugins/helpers/physics.py:139:1: W191 indentation contains tabs
def handleAUTHERR(self, name, data):
self.vec.x -= self.vec.x * PLAYER_GND_DRG
^
^
spock/plugins/core/auth.py:88:1: W191 indentation contains tabs
self.event.kill()
spock/plugins/helpers/physics.py:140:1: W191 indentation contains tabs
^
self.vec.z -= self.vec.z * PLAYER_GND_DRG
spock/plugins/core/auth.py:90:1: W191 indentation contains tabs
def handleSESSERR(self, name, data):
^
^
spock/plugins/helpers/physics.py:142:1: W191 indentation contains tabs
spock/plugins/core/auth.py:90:6: N802 function name should be lowercase
def apply_vector(self):
def handleSESSERR(self, name, data):
^
^
spock/plugins/helpers/physics.py:143:1: W191 indentation contains tabs
spock/plugins/core/auth.py:91:1: W191 indentation contains tabs
p = self.pos
if self.sess_quit:
^
^
spock/plugins/helpers/physics.py:144:1: W191 indentation contains tabs
spock/plugins/core/auth.py:92:1: W191 indentation contains tabs
p.x = p.x + self.vec.x
self.event.kill()
^
^
spock/plugins/core/auth.py:94:1: W191 indentation contains tabs
spock/plugins/helpers/physics.py:145:1: W191 indentation contains tabs
#Encryption Key Request - Request for client to start encryption
p.y = p.y + self.vec.y
^
^
spock/plugins/core/auth.py:94:2: E265 block comment should start with '# '
#Encryption Key Request - Request for client to start encryption
spock/plugins/helpers/physics.py:146:1: W191 indentation contains tabs
^
p.z = p.z + self.vec.z
spock/plugins/core/auth.py:95:1: W191 indentation contains tabs
^
def handle_encryption_request(self, name, packet):
^
spock/plugins/core/auth.py:96:1: W191 indentation contains tabs
pubkey = packet.data['public_key']
^
spock/plugins/core/auth.py:97:1: W191 indentation contains tabs
if self.authenticated:
^
spock/plugins/core/auth.py:98:1: W191 indentation contains tabs
serverid = JavaHexDigest(hashlib.sha1(
^
spock/plugins/core/auth.py:99:1: W191 indentation contains tabs
packet.data['server_id'].encode('ascii')
^
spock/plugins/core/auth.py:100:1: W191 indentation contains tabs
+ self.auth.shared_secret
^
spock/plugins/core/auth.py:101:1: W191 indentation contains tabs
+ pubkey
^
spock/plugins/core/auth.py:102:1: W191 indentation contains tabs
))
^
spock/plugins/core/auth.py:103:1: W191 indentation contains tabs
logger.info("AUTHPLUGIN: Attempting to authenticate session with sessionserver.mojang.com")
^
spock/plugins/core/auth.py:103:80: E501 line too long (94 > 79 characters)
logger.info("AUTHPLUGIN: Attempting to authenticate session with sessionserver.mojang.com")
^
spock/plugins/core/auth.py:104:1: W191 indentation contains tabs
url = "https://sessionserver.mojang.com/session/minecraft/join"
^
spock/plugins/core/auth.py:105:1: W191 indentation contains tabs
data = json.dumps({
^
spock/plugins/core/auth.py:106:1: W191 indentation contains tabs
'accessToken': self.auth.ygg.access_token,
^
spock/plugins/core/auth.py:107:1: W191 indentation contains tabs
'selectedProfile': self.auth.selected_profile,
^
spock/plugins/core/auth.py:108:1: W191 indentation contains tabs
'serverId': serverid,
^
spock/plugins/core/auth.py:109:1: W191 indentation contains tabs
}).encode('utf-8')
^
spock/plugins/core/auth.py:110:1: W191 indentation contains tabs
headers = {'Content-Type': 'application/json'}
^
spock/plugins/core/auth.py:111:1: W191 indentation contains tabs
req = request.Request(url, data, headers)
^
spock/plugins/core/auth.py:112:1: W191 indentation contains tabs
try:
^
spock/plugins/core/auth.py:113:1: W191 indentation contains tabs
rep = request.urlopen(req).read().decode('ascii')
^
spock/plugins/core/auth.py:114:1: W191 indentation contains tabs
except URLError:
^
spock/plugins/core/auth.py:115:1: W191 indentation contains tabs
rep = 'Couldn\'t connect to sessionserver.mojang.com'
^
spock/plugins/core/auth.py:116:1: W191 indentation contains tabs
#if rep != 'OK':
^
spock/plugins/core/auth.py:116:4: E265 block comment should start with '# '
#if rep != 'OK':
^
spock/plugins/core/auth.py:117:1: W191 indentation contains tabs
# print('Session Authentication Failed, Response:', rep)
^
spock/plugins/core/auth.py:117:4: E265 block comment should start with '# '
# print('Session Authentication Failed, Response:', rep)
^
spock/plugins/core/auth.py:118:1: W191 indentation contains tabs
# self.event.emit('SESS_ERR')
^
spock/plugins/core/auth.py:118:4: E265 block comment should start with '# '
# self.event.emit('SESS_ERR')
^
spock/plugins/core/auth.py:119:1: W191 indentation contains tabs
# return
^
spock/plugins/core/auth.py:119:4: E265 block comment should start with '# '
# return
^
spock/plugins/core/auth.py:120:1: W191 indentation contains tabs
if rep != "":
^
spock/plugins/core/auth.py:121:1: W191 indentation contains tabs
logger.warning("AUTHPLUGIN: %s", rep)
^
spock/plugins/core/auth.py:122:1: W191 indentation contains tabs
logger.info("AUTHPLUGIN: Session authentication successful")
^
spock/plugins/core/auth.py:124:1: W191 indentation contains tabs
rsa_cipher = PKCS1_v1_5.new(RSA.importKey(pubkey))
^
spock/plugins/core/auth.py:125:1: W191 indentation contains tabs
self.net.push_packet(
^
spock/plugins/core/auth.py:126:1: W191 indentation contains tabs
'LOGIN>Encryption Response',
^
spock/plugins/core/auth.py:127:1: W191 indentation contains tabs
{
^
spock/plugins/core/auth.py:128:1: W191 indentation contains tabs
'shared_secret': rsa_cipher.encrypt(self.auth.shared_secret),
^
spock/plugins/core/auth.py:129:1: W191 indentation contains tabs
'verify_token': rsa_cipher.encrypt(packet.data['verify_token']),
^
spock/plugins/core/auth.py:130:1: W191 indentation contains tabs
}
^
spock/plugins/core/auth.py:131:1: W191 indentation contains tabs
)
^
spock/plugins/core/auth.py:132:1: W191 indentation contains tabs
self.net.enable_crypto(self.auth.shared_secret)
^
spock/plugins/core/timer.py:8:1: F401 'mcdata' imported but unused
from spock.mcp import mcdata
^
spock/plugins/core/timer.py:8:1: I201 Missing newline before sections or imports.
from spock.mcp import mcdata
^
spock/plugins/core/timer.py:10:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.utils
from spock.plugins.base import PluginBase
^
spock/plugins/core/timer.py:12:1: E302 expected 2 blank lines, found 1
class BaseTimer(object):
^
spock/plugins/core/timer.py:13:1: W191 indentation contains tabs
def __init__(self, callback, runs = -1):
^
spock/plugins/core/timer.py:13:35: E251 unexpected spaces around keyword / parameter equals
def __init__(self, callback, runs = -1):
^
spock/plugins/core/timer.py:13:37: E251 unexpected spaces around keyword / parameter equals
def __init__(self, callback, runs = -1):
^
spock/plugins/core/timer.py:14:1: W191 indentation contains tabs
self.callback = callback
^
spock/plugins/core/timer.py:15:1: W191 indentation contains tabs
self.runs = runs
^
spock/plugins/core/timer.py:17:1: W191 indentation contains tabs
def countdown(self):
^
spock/plugins/core/timer.py:18:1: W191 indentation contains tabs
return -1
^
spock/plugins/core/timer.py:20:1: W191 indentation contains tabs
def check(self):
^
spock/plugins/core/timer.py:21:1: W191 indentation contains tabs
return True
^
spock/plugins/core/timer.py:23:1: W191 indentation contains tabs
def get_runs(self):
^
spock/plugins/core/timer.py:24:1: W191 indentation contains tabs
return self.runs
^
spock/plugins/core/timer.py:26:1: W191 indentation contains tabs
def update(self):
^
spock/plugins/core/timer.py:27:1: W191 indentation contains tabs
if self.check():
^
spock/plugins/core/timer.py:28:1: W191 indentation contains tabs
self.fire()
^
spock/plugins/core/timer.py:30:1: W191 indentation contains tabs
def fire(self):
^
spock/plugins/core/timer.py:31:1: W191 indentation contains tabs
self.callback()
^
spock/plugins/core/timer.py:32:1: W191 indentation contains tabs
if self.runs>0 and not self.runs<0:
^
spock/plugins/core/timer.py:32:15: E225 missing whitespace around operator
if self.runs>0 and not self.runs<0:
^
spock/plugins/core/timer.py:32:35: E225 missing whitespace around operator
if self.runs>0 and not self.runs<0:
^
spock/plugins/core/timer.py:33:1: W191 indentation contains tabs
self.runs-=1
^
spock/plugins/core/timer.py:33:13: E225 missing whitespace around operator
self.runs-=1
^
spock/plugins/core/timer.py:34:1: W191 indentation contains tabs
if self.runs:
^
spock/plugins/core/timer.py:35:1: W191 indentation contains tabs
self.reset()
^
spock/plugins/core/timer.py:37:1: W191 indentation contains tabs
def stop(self):
^
spock/plugins/core/timer.py:38:1: W191 indentation contains tabs
self.runs = 0
^
spock/plugins/core/timer.py:40:1: W191 indentation contains tabs
def reset(self):
^
spock/plugins/core/timer.py:41:1: W191 indentation contains tabs
pass
^
spock/plugins/core/timer.py:43:1: E265 block comment should start with '# '
#Time based timer
^
spock/plugins/core/timer.py:44:1: E302 expected 2 blank lines, found 1
class EventTimer(BaseTimer):
^
spock/plugins/core/timer.py:45:1: W191 indentation contains tabs
def __init__(self, wait_time, callback, runs = 1):
^
spock/plugins/core/timer.py:45:46: E251 unexpected spaces around keyword / parameter equals
def __init__(self, wait_time, callback, runs = 1):
^
spock/plugins/core/timer.py:45:48: E251 unexpected spaces around keyword / parameter equals
def __init__(self, wait_time, callback, runs = 1):
^
spock/plugins/core/timer.py:46:1: W191 indentation contains tabs
super(self.__class__, self).__init__(callback, runs)
^
spock/plugins/core/timer.py:47:1: W191 indentation contains tabs
self.wait_time = wait_time
^
spock/plugins/core/timer.py:48:1: W191 indentation contains tabs
self.end_time = time.time() + self.wait_time
^
spock/plugins/core/timer.py:50:1: W191 indentation contains tabs
def countdown(self):
^
spock/plugins/core/timer.py:51:1: W191 indentation contains tabs
count = self.end_time - time.time()
^
spock/plugins/core/timer.py:52:1: W191 indentation contains tabs
return count if count > 0 else 0
^
spock/plugins/core/timer.py:54:1: W191 indentation contains tabs
def check(self):
^
spock/plugins/core/timer.py:55:1: W191 indentation contains tabs
if self.runs == 0: return False
^
spock/plugins/core/timer.py:55:20: E701 multiple statements on one line (colon)
if self.runs == 0: return False
^
spock/plugins/core/timer.py:56:1: W191 indentation contains tabs
return self.end_time<=time.time()
^
spock/plugins/core/timer.py:56:23: E225 missing whitespace around operator
return self.end_time<=time.time()
^
spock/plugins/core/timer.py:58:1: W191 indentation contains tabs
def reset(self):
^
spock/plugins/core/timer.py:59:1: W191 indentation contains tabs
self.end_time = time.time() + self.wait_time
^
spock/plugins/core/timer.py:61:1: E265 block comment should start with '# '
#World tick based timer
^
spock/plugins/core/timer.py:62:1: E302 expected 2 blank lines, found 1
class TickTimer(BaseTimer):
^
spock/plugins/core/timer.py:63:1: W191 indentation contains tabs
def __init__(self, world, wait_ticks, callback, runs = 1):
^
spock/plugins/core/timer.py:63:54: E251 unexpected spaces around keyword / parameter equals
def __init__(self, world, wait_ticks, callback, runs = 1):
^
spock/plugins/core/timer.py:63:56: E251 unexpected spaces around keyword / parameter equals
def __init__(self, world, wait_ticks, callback, runs = 1):
^
spock/plugins/core/timer.py:64:1: W191 indentation contains tabs
super(self.__class__, self).__init__(callback, runs)
^
spock/plugins/core/timer.py:65:1: W191 indentation contains tabs
self.world = world
^
spock/plugins/core/timer.py:66:1: W191 indentation contains tabs
self.wait_ticks = wait_ticks
^
spock/plugins/core/timer.py:67:1: W191 indentation contains tabs
self.end_tick = self.world.age + self.wait_ticks
^
spock/plugins/core/timer.py:69:1: W191 indentation contains tabs
def check(self):
^
spock/plugins/core/timer.py:70:1: W191 indentation contains tabs
if self.runs == 0: return False
^
spock/plugins/core/timer.py:70:20: E701 multiple statements on one line (colon)
if self.runs == 0: return False
^
spock/plugins/core/timer.py:71:1: W191 indentation contains tabs
return self.end_tick<=self.world.age
^
spock/plugins/core/timer.py:71:23: E225 missing whitespace around operator
return self.end_tick<=self.world.age
^
spock/plugins/core/timer.py:73:1: W191 indentation contains tabs
def reset(self):
^
spock/plugins/core/timer.py:74:1: W191 indentation contains tabs
self.end_tick = self.world.age + self.wait_ticks
^
spock/plugins/core/timer.py:76:1: E302 expected 2 blank lines, found 1
class TimerCore:
^
spock/plugins/core/timer.py:77:1: W191 indentation contains tabs
def __init__(self, world):
^
spock/plugins/core/timer.py:78:1: W191 indentation contains tabs
self.timers = []
^
spock/plugins/core/timer.py:79:1: W191 indentation contains tabs
self.persist_timers = []
^
spock/plugins/core/timer.py:80:1: W191 indentation contains tabs
self.world = world
^
spock/plugins/core/timer.py:82:1: W191 indentation contains tabs
def reg_timer(self, timer, persist = False):
^
spock/plugins/core/timer.py:82:36: E251 unexpected spaces around keyword / parameter equals
def reg_timer(self, timer, persist = False):
^
spock/plugins/core/timer.py:82:38: E251 unexpected spaces around keyword / parameter equals
def reg_timer(self, timer, persist = False):
^
spock/plugins/core/timer.py:83:1: W191 indentation contains tabs
if not persist:
^
spock/plugins/core/timer.py:84:1: W191 indentation contains tabs
self.timers.append(timer)
^
spock/plugins/core/timer.py:85:1: W191 indentation contains tabs
else:
^
spock/plugins/core/timer.py:86:1: W191 indentation contains tabs
self.persist_timers.append(timer)
^
spock/plugins/core/timer.py:88:1: W191 indentation contains tabs
def get_timeout(self):
^
spock/plugins/core/timer.py:89:1: W191 indentation contains tabs
timeout = -1
^
spock/plugins/core/timer.py:90:1: W191 indentation contains tabs
for timer in self.timers + self.persist_timers:
^
spock/plugins/core/timer.py:91:1: W191 indentation contains tabs
if timeout > timer.countdown() or timeout == -1:
^
spock/plugins/core/timer.py:92:1: W191 indentation contains tabs
timeout = timer.countdown()
^
spock/plugins/core/timer.py:93:1: W191 indentation contains tabs
return timeout
^
spock/plugins/core/timer.py:95:1: W191 indentation contains tabs
def reg_event_timer(self, wait_time, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:95:53: E251 unexpected spaces around keyword / parameter equals
def reg_event_timer(self, wait_time, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:95:55: E251 unexpected spaces around keyword / parameter equals
def reg_event_timer(self, wait_time, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:95:67: E251 unexpected spaces around keyword / parameter equals
def reg_event_timer(self, wait_time, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:95:69: E251 unexpected spaces around keyword / parameter equals
def reg_event_timer(self, wait_time, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:96:1: W191 indentation contains tabs
self.reg_timer(EventTimer(wait_time, callback, runs), persist)
^
spock/plugins/core/timer.py:98:1: W191 indentation contains tabs
def reg_tick_timer(self, wait_ticks, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:98:53: E251 unexpected spaces around keyword / parameter equals
def reg_tick_timer(self, wait_ticks, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:98:55: E251 unexpected spaces around keyword / parameter equals
def reg_tick_timer(self, wait_ticks, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:98:67: E251 unexpected spaces around keyword / parameter equals
def reg_tick_timer(self, wait_ticks, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:98:69: E251 unexpected spaces around keyword / parameter equals
def reg_tick_timer(self, wait_ticks, callback, runs = -1, persist = False):
^
spock/plugins/core/timer.py:99:1: W191 indentation contains tabs
self.reg_timer(TickTimer(self.world, wait_ticks, callback, runs), persist)
^
spock/plugins/core/timer.py:101:1: E302 expected 2 blank lines, found 1
class WorldTick:
^
spock/plugins/core/timer.py:102:1: W191 indentation contains tabs
def __init__(self):
^
spock/plugins/core/timer.py:103:1: W191 indentation contains tabs
self.age = 0
^
spock/plugins/core/timer.py:105:1: E302 expected 2 blank lines, found 1
@pl_announce('Timers')
^
spock/plugins/core/timer.py:107:1: W191 indentation contains tabs
requires = ('World')
^
spock/plugins/core/timer.py:108:1: W191 indentation contains tabs
events = {
^
spock/plugins/core/timer.py:109:1: W191 indentation contains tabs
'event_tick': 'tick',
^
spock/plugins/core/timer.py:110:1: W191 indentation contains tabs
'disconnect': 'handle_disconnect',
^
spock/plugins/core/timer.py:111:1: W191 indentation contains tabs
}
^
spock/plugins/core/timer.py:112:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/core/timer.py:112:2: E301 expected 1 blank line, found 0
def __init__(self, ploader, settings):
^
spock/plugins/core/timer.py:113:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/core/timer.py:114:1: W191 indentation contains tabs
if not self.world:
^
spock/plugins/core/timer.py:115:1: W191 indentation contains tabs
self.world = WorldTick()
^
spock/plugins/core/timer.py:116:1: W191 indentation contains tabs
ploader.reg_event_handler('PLAY<Time Update', self.handle_time_update)
^
spock/plugins/core/timer.py:117:1: W191 indentation contains tabs
self.timer_core = TimerCore(self.world)
^
spock/plugins/core/timer.py:118:1: W191 indentation contains tabs
ploader.provides('Timers', self.timer_core)
^
spock/plugins/core/timer.py:120:1: W191 indentation contains tabs
def tick(self, name, data):
^
spock/plugins/core/timer.py:121:1: W191 indentation contains tabs
for timer in self.timer_core.timers:
^
spock/plugins/core/timer.py:122:1: W191 indentation contains tabs
timer.update()
^
spock/plugins/core/timer.py:123:1: W191 indentation contains tabs
if not timer.get_runs():
^
spock/plugins/core/timer.py:124:1: W191 indentation contains tabs
self.timer_core.timers.remove(timer)
^
spock/plugins/core/timer.py:125:1: W191 indentation contains tabs
for timer in self.timer_core.persist_timers:
^
spock/plugins/core/timer.py:126:1: W191 indentation contains tabs
timer.update()
^
spock/plugins/core/timer.py:127:1: W191 indentation contains tabs
if not timer.get_runs():
^
spock/plugins/core/timer.py:128:1: W191 indentation contains tabs
self.timer_core.persist_timers.remove(timer)
^
spock/plugins/core/timer.py:130:1: W191 indentation contains tabs
#Time Update - We grab world age if the world plugin isn't available
^
spock/plugins/core/timer.py:130:2: E265 block comment should start with '# '
#Time Update - We grab world age if the world plugin isn't available
^
spock/plugins/core/timer.py:131:1: W191 indentation contains tabs
def handle_time_update(self, name, packet):
^
spock/plugins/core/timer.py:132:1: W191 indentation contains tabs
self.world.age = packet.data['world_age']
^
spock/plugins/core/timer.py:134:1: W191 indentation contains tabs
def handle_disconnect(self, name, data):
^
spock/plugins/core/timer.py:135:1: W191 indentation contains tabs
self.timer_core.timers = []
^
spock/mcp/mcpacket.py:4:1: I201 Missing newline before sections or imports.
from spock import utils
^
spock/mcp/mcpacket.py:7:1: F401 'MC_BOOL' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_BYTE' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_CHAT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_DOUBLE' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_FLOAT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_FP_BYTE' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_FP_INT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_INT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_LONG' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_META' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_POSITION' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_SHORT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_SLOT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_STRING' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_UBYTE' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_UINT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_ULONG' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_USHORT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_UUID' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: F401 'MC_VARLONG' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: I100 Imports statements are in the wrong order. from spock.mcp.mcdata should be before from spock.mcp.mcpacket_extensions
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:7:1: I101 Imported names are in the wrong order. Should be MC_BOOL, MC_BYTE, MC_CHAT, MC_DOUBLE, MC_FLOAT, MC_FP_BYTE, MC_FP_INT, MC_INT, MC_LONG, MC_META, MC_POSITION, MC_SHORT, MC_SLOT, MC_STRING, MC_UBYTE, MC_UINT, MC_ULONG, MC_USHORT, MC_UUID, MC_VARINT, MC_VARLONG
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket.py:8:1: W191 indentation contains tabs
MC_BOOL, MC_UBYTE, MC_BYTE, MC_USHORT, MC_SHORT, MC_UINT, MC_INT, MC_ULONG,
^
spock/mcp/mcpacket.py:9:1: W191 indentation contains tabs
MC_LONG, MC_FLOAT, MC_DOUBLE, MC_VARINT, MC_VARLONG, MC_FP_INT, MC_FP_BYTE,
^
spock/mcp/mcpacket.py:10:1: W191 indentation contains tabs
MC_UUID, MC_POSITION, MC_STRING, MC_CHAT, MC_SLOT, MC_META
^
spock/mcp/mcpacket.py:14:1: E101 indentation contains mixed spaces and tabs
basestring
^
spock/mcp/mcpacket.py:14:3: E111 indentation is not a multiple of four
basestring
^
spock/mcp/mcpacket.py:16:3: E111 indentation is not a multiple of four
basestring = str
^
spock/mcp/mcpacket.py:18:1: I100 Imports statements are in the wrong order. import logging should be before from spock.mcp.mcdata
import logging
^
spock/mcp/mcpacket.py:21:1: E302 expected 2 blank lines, found 1
class PacketDecodeFailure(Exception):
^
spock/mcp/mcpacket.py:22:1: E101 indentation contains mixed spaces and tabs
def __init__(self, packet, pbuff, underflow = False):
^
spock/mcp/mcpacket.py:22:1: W191 indentation contains tabs
def __init__(self, packet, pbuff, underflow = False):
^
spock/mcp/mcpacket.py:22:45: E251 unexpected spaces around keyword / parameter equals
def __init__(self, packet, pbuff, underflow = False):
^
spock/mcp/mcpacket.py:22:47: E251 unexpected spaces around keyword / parameter equals
def __init__(self, packet, pbuff, underflow = False):
^
spock/mcp/mcpacket.py:23:1: W191 indentation contains tabs
self.packet = packet
^
spock/mcp/mcpacket.py:24:1: W191 indentation contains tabs
self.pbuff = pbuff
^
spock/mcp/mcpacket.py:25:1: W191 indentation contains tabs
self.underflow = underflow
^
spock/mcp/mcpacket.py:27:1: E302 expected 2 blank lines, found 1
class Packet(object):
^
spock/mcp/mcpacket.py:28:1: W191 indentation contains tabs
def __init__(self,
^
spock/mcp/mcpacket.py:29:1: W191 indentation contains tabs
ident = [mcdata.HANDSHAKE_STATE, mcdata.CLIENT_TO_SERVER, 0x00],
^
spock/mcp/mcpacket.py:29:3: E128 continuation line under-indented for visual indent
ident = [mcdata.HANDSHAKE_STATE, mcdata.CLIENT_TO_SERVER, 0x00],
^
spock/mcp/mcpacket.py:29:8: E251 unexpected spaces around keyword / parameter equals
ident = [mcdata.HANDSHAKE_STATE, mcdata.CLIENT_TO_SERVER, 0x00],
^
spock/mcp/mcpacket.py:29:10: E251 unexpected spaces around keyword / parameter equals
ident = [mcdata.HANDSHAKE_STATE, mcdata.CLIENT_TO_SERVER, 0x00],
^
spock/mcp/mcpacket.py:30:1: W191 indentation contains tabs
data = None
^
spock/mcp/mcpacket.py:30:7: E251 unexpected spaces around keyword / parameter equals
data = None
^
spock/mcp/mcpacket.py:30:9: E251 unexpected spaces around keyword / parameter equals
data = None
^
spock/mcp/mcpacket.py:31:1: W191 indentation contains tabs
):
^
spock/mcp/mcpacket.py:32:1: W191 indentation contains tabs
if isinstance(ident, basestring):
^
spock/mcp/mcpacket.py:33:1: W191 indentation contains tabs
ident = mcdata.packet_str2ident[ident]
^
spock/mcp/mcpacket.py:34:1: W191 indentation contains tabs
self.__ident = list(ident)
^
spock/mcp/mcpacket.py:35:1: W191 indentation contains tabs
#Quick hack to fake default ident
^
spock/mcp/mcpacket.py:35:3: E265 block comment should start with '# '
#Quick hack to fake default ident
^
spock/mcp/mcpacket.py:36:1: W191 indentation contains tabs
if len(self.__ident) == 2:
^
spock/mcp/mcpacket.py:37:1: W191 indentation contains tabs
self.__ident.append(0x00)
^
spock/mcp/mcpacket.py:38:1: W191 indentation contains tabs
self.ident = tuple(self.__ident)
^
spock/mcp/mcpacket.py:39:1: W191 indentation contains tabs
self.str_ident = mcdata.packet_ident2str[self.ident]
^
spock/mcp/mcpacket.py:40:1: W191 indentation contains tabs
self.data = data if data else {}
^
spock/mcp/mcpacket.py:42:1: W191 indentation contains tabs
def clone(self):
^
spock/mcp/mcpacket.py:43:1: W191 indentation contains tabs
return Packet(self.ident, copy.deepcopy(self.data))
^
spock/mcp/mcpacket.py:45:1: W191 indentation contains tabs
def new_ident(self, ident):
^
spock/mcp/mcpacket.py:46:1: W191 indentation contains tabs
self.__init__(ident, self.data)
^
spock/mcp/mcpacket.py:48:1: W191 indentation contains tabs
def decode(self, bbuff, proto_comp_state):
^
spock/mcp/mcpacket.py:49:1: W191 indentation contains tabs
self.data = {}
^
spock/mcp/mcpacket.py:50:1: W191 indentation contains tabs
if proto_comp_state == mcdata.PROTO_COMP_ON:
^
spock/mcp/mcpacket.py:51:1: W191 indentation contains tabs
packet_length = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket.py:52:1: W191 indentation contains tabs
start = bbuff.tell()
^
spock/mcp/mcpacket.py:53:1: W191 indentation contains tabs
data_length = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket.py:54:1: W191 indentation contains tabs
packet_data = bbuff.recv(packet_length-(bbuff.tell()-start))
^
spock/mcp/mcpacket.py:55:1: W191 indentation contains tabs
if data_length:
^
spock/mcp/mcpacket.py:56:1: W191 indentation contains tabs
packet_data = zlib.decompress(packet_data, zlib.MAX_WBITS)
^
spock/mcp/mcpacket.py:57:1: W191 indentation contains tabs
elif proto_comp_state == mcdata.PROTO_COMP_OFF:
^
spock/mcp/mcpacket.py:58:1: W191 indentation contains tabs
packet_data = bbuff.recv(datautils.unpack(MC_VARINT, bbuff))
^
spock/mcp/mcpacket.py:59:1: W191 indentation contains tabs
else:
^
spock/mcp/mcpacket.py:60:1: W191 indentation contains tabs
return None
^
spock/mcp/mcpacket.py:61:1: W191 indentation contains tabs
pbuff = utils.BoundBuffer(packet_data)
^
spock/mcp/mcpacket.py:63:1: W191 indentation contains tabs
try:
^
spock/mcp/mcpacket.py:64:1: W191 indentation contains tabs
#Ident
^
spock/mcp/mcpacket.py:64:4: E265 block comment should start with '# '
#Ident
^
spock/mcp/mcpacket.py:65:1: W191 indentation contains tabs
self.__ident[2] = datautils.unpack(MC_VARINT, pbuff)
^
spock/mcp/mcpacket.py:66:1: W191 indentation contains tabs
self.ident = tuple(self.__ident)
^
spock/mcp/mcpacket.py:67:1: W191 indentation contains tabs
self.str_ident = mcdata.packet_ident2str[self.ident]
^
spock/mcp/mcpacket.py:68:1: W191 indentation contains tabs
#Payload
^
spock/mcp/mcpacket.py:68:4: E265 block comment should start with '# '
#Payload
^
spock/mcp/mcpacket.py:69:1: W191 indentation contains tabs
for dtype, name in mcdata.hashed_structs[self.ident]:
^
spock/mcp/mcpacket.py:70:1: W191 indentation contains tabs
self.data[name] = datautils.unpack(dtype, pbuff)
^
spock/mcp/mcpacket.py:71:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcpacket.py:71:4: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcpacket.py:72:1: W191 indentation contains tabs
if self.ident in hashed_extensions:
^
spock/mcp/mcpacket.py:73:1: W191 indentation contains tabs
hashed_extensions[self.ident].decode_extra(self, pbuff)
^
spock/mcp/mcpacket.py:74:1: W191 indentation contains tabs
if pbuff.buff:
^
spock/mcp/mcpacket.py:75:1: W191 indentation contains tabs
raise PacketDecodeFailure(self, pbuff)
^
spock/mcp/mcpacket.py:76:1: W191 indentation contains tabs
except utils.BufferUnderflowException:
^
spock/mcp/mcpacket.py:77:1: W191 indentation contains tabs
raise PacketDecodeFailure(self, pbuff, True)
^
spock/mcp/mcpacket.py:78:1: W191 indentation contains tabs
return self
^
spock/mcp/mcpacket.py:80:1: W191 indentation contains tabs
def encode(self, proto_comp_state, proto_comp_threshold, comp_level = 6):
^
spock/mcp/mcpacket.py:80:69: E251 unexpected spaces around keyword / parameter equals
def encode(self, proto_comp_state, proto_comp_threshold, comp_level = 6):
^
spock/mcp/mcpacket.py:80:71: E251 unexpected spaces around keyword / parameter equals
def encode(self, proto_comp_state, proto_comp_threshold, comp_level = 6):
^
spock/mcp/mcpacket.py:81:1: W191 indentation contains tabs
#Ident
^
spock/mcp/mcpacket.py:81:3: E265 block comment should start with '# '
#Ident
^
spock/mcp/mcpacket.py:82:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, self.ident[2])
^
spock/mcp/mcpacket.py:83:1: W191 indentation contains tabs
#Payload
^
spock/mcp/mcpacket.py:83:3: E265 block comment should start with '# '
#Payload
^
spock/mcp/mcpacket.py:84:1: W191 indentation contains tabs
for dtype, name in mcdata.hashed_structs[self.ident]:
^
spock/mcp/mcpacket.py:85:1: W191 indentation contains tabs
o += datautils.pack(dtype, self.data[name])
^
spock/mcp/mcpacket.py:86:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcpacket.py:86:3: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcpacket.py:87:1: W191 indentation contains tabs
if self.ident in hashed_extensions:
^
spock/mcp/mcpacket.py:88:1: W191 indentation contains tabs
o += hashed_extensions[self.ident].encode_extra(self)
^
spock/mcp/mcpacket.py:90:1: W191 indentation contains tabs
if proto_comp_state == mcdata.PROTO_COMP_ON:
^
spock/mcp/mcpacket.py:91:1: W191 indentation contains tabs
uncompressed_len = len(o)
^
spock/mcp/mcpacket.py:92:1: W191 indentation contains tabs
if uncompressed_len < proto_comp_threshold:
^
spock/mcp/mcpacket.py:93:1: W191 indentation contains tabs
header = datautils.pack(MC_VARINT, uncompressed_len + 1)
^
spock/mcp/mcpacket.py:94:1: W191 indentation contains tabs
header += datautils.pack(MC_VARINT, 0)
^
spock/mcp/mcpacket.py:95:1: W191 indentation contains tabs
elif uncompressed_len >= proto_comp_threshold:
^
spock/mcp/mcpacket.py:96:1: W191 indentation contains tabs
o = zlib.compress(o, comp_level)
^
spock/mcp/mcpacket.py:97:1: W191 indentation contains tabs
ulen_varint = datautils.pack(MC_VARINT, uncompressed_len)
^
spock/mcp/mcpacket.py:98:1: W191 indentation contains tabs
header = datautils.pack(MC_VARINT, uncompressed_len + len(ulen_varint))
^
spock/mcp/mcpacket.py:99:1: W191 indentation contains tabs
header += ulen_varint
^
spock/mcp/mcpacket.py:100:1: W191 indentation contains tabs
return header + o
^
spock/mcp/mcpacket.py:101:1: W191 indentation contains tabs
elif proto_comp_state == mcdata.PROTO_COMP_OFF:
^
spock/mcp/mcpacket.py:102:1: W191 indentation contains tabs
return datautils.pack(MC_VARINT, len(o)) + o
^
spock/mcp/mcpacket.py:103:1: W191 indentation contains tabs
else:
^
spock/mcp/mcpacket.py:104:1: W191 indentation contains tabs
return None
^
spock/mcp/mcpacket.py:106:1: W191 indentation contains tabs
def __repr__(self):
^
spock/mcp/mcpacket.py:107:1: W191 indentation contains tabs
s = ('<<<', '>>>')[self.ident[1]]
^
spock/mcp/mcpacket.py:108:1: W191 indentation contains tabs
f = "[%s] %s (0x%02X, 0x%02X): %-"+str(max([len(i) for i in mcdata.hashed_names.values()])+1)+"s%s"
^
spock/mcp/mcpacket.py:108:80: E501 line too long (101 > 79 characters)
f = "[%s] %s (0x%02X, 0x%02X): %-"+str(max([len(i) for i in mcdata.hashed_names.values()])+1)+"s%s"
^
spock/mcp/mcpacket.py:109:1: W191 indentation contains tabs
return f % (strftime("%H:%M:%S", gmtime()), s, self.ident[0], self.ident[2], mcdata.hashed_names[self.ident], str(self.data))
^
spock/mcp/mcpacket.py:109:80: E501 line too long (127 > 79 characters)
return f % (strftime("%H:%M:%S", gmtime()), s, self.ident[0], self.ident[2], mcdata.hashed_names[self.ident], str(self.data))
^
spock/plugins/core/net.py:7:1: F401 'sys' imported but unused
import sys
^
spock/plugins/core/net.py:8:1: I100 Imports statements are in the wrong order. import socket should be before import sys
import socket
^
spock/plugins/core/net.py:9:1: I100 Imports statements are in the wrong order. import select should be before import socket
import select
^
spock/plugins/core/net.py:11:1: I201 Missing newline before sections or imports.
from spock import utils
^
spock/plugins/core/net.py:13:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.utils
from spock.plugins.base import PluginBase
^
spock/plugins/core/net.py:14:1: I100 Imports statements are in the wrong order. from spock.mcp should be before from spock.plugins.base
from spock.mcp import mcpacket, mcdata
^
spock/plugins/core/net.py:14:1: I101 Imported names are in the wrong order. Should be mcdata, mcpacket
from spock.mcp import mcpacket, mcdata
^
spock/plugins/core/net.py:15:1: I100 Imports statements are in the wrong order. from Crypto.Cipher should be before from spock.mcp
from Crypto.Cipher import AES
^
spock/plugins/core/net.py:15:1: I201 Missing newline before sections or imports.
from Crypto.Cipher import AES
^
spock/plugins/core/net.py:17:1: I100 Imports statements are in the wrong order. import logging should be before from Crypto.Cipher
import logging
^
spock/plugins/core/net.py:20:1: E302 expected 2 blank lines, found 1
class AESCipher:
^
spock/plugins/core/net.py:21:1: W191 indentation contains tabs
def __init__(self, SharedSecret):
^
spock/plugins/core/net.py:21:6: N803 argument name should be lowercase
def __init__(self, SharedSecret):
^
spock/plugins/core/net.py:22:1: W191 indentation contains tabs
#Name courtesy of dx
^
spock/plugins/core/net.py:22:3: E265 block comment should start with '# '
#Name courtesy of dx
^
spock/plugins/core/net.py:23:1: W191 indentation contains tabs
self.encryptifier = AES.new(SharedSecret, AES.MODE_CFB, IV=SharedSecret)
^
spock/plugins/core/net.py:24:1: W191 indentation contains tabs
self.decryptifier = AES.new(SharedSecret, AES.MODE_CFB, IV=SharedSecret)
^
spock/plugins/core/net.py:26:1: W191 indentation contains tabs
def encrypt(self, data):
^
spock/plugins/core/net.py:27:1: W191 indentation contains tabs
return self.encryptifier.encrypt(data)
^
spock/plugins/core/net.py:29:1: W191 indentation contains tabs
def decrypt(self, data):
^
spock/plugins/core/net.py:30:1: W191 indentation contains tabs
return self.decryptifier.decrypt(data)
^
spock/plugins/core/net.py:32:1: E302 expected 2 blank lines, found 1
class SelectSocket:
^
spock/plugins/core/net.py:33:1: W191 indentation contains tabs
def __init__(self, timer):
^
spock/plugins/core/net.py:34:1: W191 indentation contains tabs
self.sending = False
^
spock/plugins/core/net.py:35:1: W191 indentation contains tabs
self.timer = timer
^
spock/plugins/core/net.py:36:1: W191 indentation contains tabs
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
^
spock/plugins/core/net.py:37:1: W191 indentation contains tabs
self.sock.setblocking(False)
^
spock/plugins/core/net.py:38:1: W191 indentation contains tabs
self.close = self.sock.close
^
spock/plugins/core/net.py:39:1: W191 indentation contains tabs
self.shutdown = self.sock.shutdown
^
spock/plugins/core/net.py:40:1: W191 indentation contains tabs
self.recv = self.sock.recv
^
spock/plugins/core/net.py:41:1: W191 indentation contains tabs
self.send = self.sock.send
^
spock/plugins/core/net.py:43:1: W191 indentation contains tabs
def poll(self):
^
spock/plugins/core/net.py:44:1: W191 indentation contains tabs
flags = []
^
spock/plugins/core/net.py:45:1: W191 indentation contains tabs
if self.sending:
^
spock/plugins/core/net.py:46:1: W191 indentation contains tabs
self.sending = False
^
spock/plugins/core/net.py:47:1: W191 indentation contains tabs
slist = [(self.sock,), (self.sock,), (self.sock,)]
^
spock/plugins/core/net.py:48:1: W191 indentation contains tabs
else:
^
spock/plugins/core/net.py:49:1: W191 indentation contains tabs
slist = [(self.sock,), (), (self.sock,)]
^
spock/plugins/core/net.py:50:1: W191 indentation contains tabs
timeout = self.timer.get_timeout()
^
spock/plugins/core/net.py:51:1: W191 indentation contains tabs
if timeout>=0:
^
spock/plugins/core/net.py:51:13: E225 missing whitespace around operator
if timeout>=0:
^
spock/plugins/core/net.py:52:1: W191 indentation contains tabs
slist.append(timeout)
^
spock/plugins/core/net.py:53:1: W191 indentation contains tabs
try:
^
spock/plugins/core/net.py:54:1: W191 indentation contains tabs
rlist, wlist, xlist = select.select(*slist)
^
spock/plugins/core/net.py:55:1: W191 indentation contains tabs
except select.error as e:
^
spock/plugins/core/net.py:56:1: W191 indentation contains tabs
logger.error("SELECTSOCKET: Socket Error: %s", str(e))
^
spock/plugins/core/net.py:57:1: W191 indentation contains tabs
rlist = []
^
spock/plugins/core/net.py:58:1: W191 indentation contains tabs
wlist = []
^
spock/plugins/core/net.py:59:1: W191 indentation contains tabs
xlist = []
^
spock/plugins/core/net.py:60:1: W191 indentation contains tabs
if rlist: flags.append('SOCKET_RECV')
^
spock/plugins/core/net.py:60:11: E701 multiple statements on one line (colon)
if rlist: flags.append('SOCKET_RECV')
^
spock/plugins/core/net.py:61:1: W191 indentation contains tabs
if wlist: flags.append('SOCKET_SEND')
^
spock/plugins/core/net.py:61:11: E701 multiple statements on one line (colon)
if wlist: flags.append('SOCKET_SEND')
^
spock/plugins/core/net.py:62:1: W191 indentation contains tabs
if xlist: flags.append('SOCKET_ERR')
^
spock/plugins/core/net.py:62:11: E701 multiple statements on one line (colon)
if xlist: flags.append('SOCKET_ERR')
^
spock/plugins/core/net.py:63:1: W191 indentation contains tabs
return flags
^
spock/plugins/core/net.py:65:1: W191 indentation contains tabs
def reset(self):
^
spock/plugins/core/net.py:66:1: W191 indentation contains tabs
self.sock.close()
^
spock/plugins/core/net.py:67:1: W191 indentation contains tabs
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
^
spock/plugins/core/net.py:68:1: W191 indentation contains tabs
self.sock.setblocking(False)
^
spock/plugins/core/net.py:70:1: E302 expected 2 blank lines, found 1
class NetCore:
^
spock/plugins/core/net.py:71:1: W191 indentation contains tabs
def __init__(self, sock, event):
^
spock/plugins/core/net.py:72:1: W191 indentation contains tabs
self.sock = sock
^
spock/plugins/core/net.py:73:1: W191 indentation contains tabs
self.event = event
^
spock/plugins/core/net.py:74:1: W191 indentation contains tabs
self.host = None
^
spock/plugins/core/net.py:75:1: W191 indentation contains tabs
self.port = None
^
spock/plugins/core/net.py:76:1: W191 indentation contains tabs
self.connected = False
^
spock/plugins/core/net.py:77:1: W191 indentation contains tabs
self.encrypted = False
^
spock/plugins/core/net.py:78:1: W191 indentation contains tabs
self.proto_state = mcdata.HANDSHAKE_STATE
^
spock/plugins/core/net.py:79:1: W191 indentation contains tabs
self.comp_state = mcdata.PROTO_COMP_OFF
^
spock/plugins/core/net.py:80:1: W191 indentation contains tabs
self.comp_threshold = -1
^
spock/plugins/core/net.py:81:1: W191 indentation contains tabs
self.sbuff = b''
^
spock/plugins/core/net.py:82:1: W191 indentation contains tabs
self.rbuff = utils.BoundBuffer()
^
spock/plugins/core/net.py:84:1: W191 indentation contains tabs
def connect(self, host = 'localhost', port = 25565):
^
spock/plugins/core/net.py:84:24: E251 unexpected spaces around keyword / parameter equals
def connect(self, host = 'localhost', port = 25565):
^
spock/plugins/core/net.py:84:26: E251 unexpected spaces around keyword / parameter equals
def connect(self, host = 'localhost', port = 25565):
^
spock/plugins/core/net.py:84:44: E251 unexpected spaces around keyword / parameter equals
def connect(self, host = 'localhost', port = 25565):
^
spock/plugins/core/net.py:84:46: E251 unexpected spaces around keyword / parameter equals
def connect(self, host = 'localhost', port = 25565):
^
spock/plugins/core/net.py:85:1: W191 indentation contains tabs
self.host = host
^
spock/plugins/core/net.py:86:1: W191 indentation contains tabs
self.port = port
^
spock/plugins/core/net.py:87:1: W191 indentation contains tabs
try:
^
spock/plugins/core/net.py:88:1: W191 indentation contains tabs
logger.info("NETCORE: Attempting to connect to host: %s port: %s", host, port)
^
spock/plugins/core/net.py:88:80: E501 line too long (81 > 79 characters)
logger.info("NETCORE: Attempting to connect to host: %s port: %s", host, port)
^
spock/plugins/core/net.py:89:1: W191 indentation contains tabs
#Set the connect to be a blocking operation
^
spock/plugins/core/net.py:89:4: E265 block comment should start with '# '
#Set the connect to be a blocking operation
^
spock/plugins/core/net.py:90:1: W191 indentation contains tabs
self.sock.sock.setblocking(True)
^
spock/plugins/core/net.py:91:1: W191 indentation contains tabs
self.sock.sock.connect((self.host, self.port))
^
spock/plugins/core/net.py:92:1: W191 indentation contains tabs
self.sock.sock.setblocking(False)
^
spock/plugins/core/net.py:93:1: W191 indentation contains tabs
self.connected = True
^
spock/plugins/core/net.py:94:1: W191 indentation contains tabs
self.event.emit('connect', (self.host, self.port))
^
spock/plugins/core/net.py:95:1: W191 indentation contains tabs
logger.info("NETCORE: Connected to host: %s port: %s", host, port)
^
spock/plugins/core/net.py:96:1: W191 indentation contains tabs
except socket.error as error:
^
spock/plugins/core/net.py:97:1: W191 indentation contains tabs
logger.error("NETCORE: Error on Connect: %s", str(error))
^
spock/plugins/core/net.py:99:1: W191 indentation contains tabs
def set_proto_state(self, state):
^
spock/plugins/core/net.py:100:1: W191 indentation contains tabs
self.proto_state = state
^
spock/plugins/core/net.py:101:1: W191 indentation contains tabs
self.event.emit(mcdata.state_lookup[state] + '_STATE')
^
spock/plugins/core/net.py:103:1: W191 indentation contains tabs
def set_comp_state(self, threshold):
^
spock/plugins/core/net.py:104:1: W191 indentation contains tabs
self.comp_threshold = threshold
^
spock/plugins/core/net.py:105:1: W191 indentation contains tabs
if threshold >=0:
^
spock/plugins/core/net.py:105:18: E225 missing whitespace around operator
if threshold >=0:
^
spock/plugins/core/net.py:106:1: W191 indentation contains tabs
self.comp_state = mcdata.PROTO_COMP_ON
^
spock/plugins/core/net.py:108:1: W191 indentation contains tabs
def push(self, packet):
^
spock/plugins/core/net.py:109:1: W191 indentation contains tabs
data = packet.encode(self.comp_state, self.comp_threshold)
^
spock/plugins/core/net.py:110:1: W191 indentation contains tabs
self.sbuff += (self.cipher.encrypt(data) if self.encrypted else data)
^
spock/plugins/core/net.py:111:1: W191 indentation contains tabs
self.event.emit(packet.ident, packet)
^
spock/plugins/core/net.py:112:1: W191 indentation contains tabs
self.event.emit(packet.str_ident, packet)
^
spock/plugins/core/net.py:113:1: W191 indentation contains tabs
self.sock.sending = True
^
spock/plugins/core/net.py:115:1: W191 indentation contains tabs
def push_packet(self, ident, data):
^
spock/plugins/core/net.py:116:1: W191 indentation contains tabs
self.push(mcpacket.Packet(ident, data))
^
spock/plugins/core/net.py:118:1: W191 indentation contains tabs
def read_packet(self, data = b''):
^
spock/plugins/core/net.py:118:28: E251 unexpected spaces around keyword / parameter equals
def read_packet(self, data = b''):
^
spock/plugins/core/net.py:118:30: E251 unexpected spaces around keyword / parameter equals
def read_packet(self, data = b''):
^
spock/plugins/core/net.py:119:1: W191 indentation contains tabs
self.rbuff.append(self.cipher.decrypt(data) if self.encrypted else data)
^
spock/plugins/core/net.py:120:1: W191 indentation contains tabs
while True:
^
spock/plugins/core/net.py:121:1: W191 indentation contains tabs
self.rbuff.save()
^
spock/plugins/core/net.py:122:1: W191 indentation contains tabs
try:
^
spock/plugins/core/net.py:123:1: W191 indentation contains tabs
packet = mcpacket.Packet(ident = (
^
spock/plugins/core/net.py:123:35: E251 unexpected spaces around keyword / parameter equals
packet = mcpacket.Packet(ident = (
^
spock/plugins/core/net.py:123:37: E251 unexpected spaces around keyword / parameter equals
packet = mcpacket.Packet(ident = (
^
spock/plugins/core/net.py:124:1: W191 indentation contains tabs
self.proto_state,
^
spock/plugins/core/net.py:125:1: W191 indentation contains tabs
mcdata.SERVER_TO_CLIENT
^
spock/plugins/core/net.py:126:1: W191 indentation contains tabs
)).decode(self.rbuff, self.comp_state)
^
spock/plugins/core/net.py:127:1: W191 indentation contains tabs
except utils.BufferUnderflowException:
^
spock/plugins/core/net.py:128:1: W191 indentation contains tabs
self.rbuff.revert()
^
spock/plugins/core/net.py:129:1: W191 indentation contains tabs
break
^
spock/plugins/core/net.py:130:1: W191 indentation contains tabs
except mcpacket.PacketDecodeFailure as err:
^
spock/plugins/core/net.py:131:1: W191 indentation contains tabs
logger.warning('NETCORE: Packet decode failed')
^
spock/plugins/core/net.py:132:1: W191 indentation contains tabs
logger.warning(
^
spock/plugins/core/net.py:133:1: W191 indentation contains tabs
'NETCORE: Failed packet ident is probably: %s', err.packet.str_ident
^
spock/plugins/core/net.py:134:1: W191 indentation contains tabs
)
^
spock/plugins/core/net.py:135:1: W191 indentation contains tabs
self.event.emit('PACKET_ERR', err)
^
spock/plugins/core/net.py:136:1: W191 indentation contains tabs
break
^
spock/plugins/core/net.py:137:1: W191 indentation contains tabs
self.event.emit(packet.ident, packet)
^
spock/plugins/core/net.py:138:1: W191 indentation contains tabs
self.event.emit(packet.str_ident, packet)
^
spock/plugins/core/net.py:140:1: W191 indentation contains tabs
def enable_crypto(self, secret_key):
^
spock/plugins/core/net.py:141:1: W191 indentation contains tabs
self.cipher = AESCipher(secret_key)
^
spock/plugins/core/net.py:142:1: W191 indentation contains tabs
self.encrypted = True
^
spock/plugins/core/net.py:144:1: W191 indentation contains tabs
def disable_crypto(self):
^
spock/plugins/core/net.py:145:1: W191 indentation contains tabs
self.cipher = None
^
spock/plugins/core/net.py:146:1: W191 indentation contains tabs
self.encrypted = False
^
spock/plugins/core/net.py:148:1: W191 indentation contains tabs
def reset(self):
^
spock/plugins/core/net.py:149:1: W191 indentation contains tabs
self.connected = False
^
spock/plugins/core/net.py:150:1: W191 indentation contains tabs
self.sock.reset()
^
spock/plugins/core/net.py:151:1: W191 indentation contains tabs
self.__init__(self.sock, self.event)
^
spock/plugins/core/net.py:153:1: W191 indentation contains tabs
disconnect = reset
^
spock/plugins/core/net.py:155:1: E302 expected 2 blank lines, found 1
@pl_announce('Net')
^
spock/plugins/core/net.py:157:1: W191 indentation contains tabs
requires = ('Event', 'Timers')
^
spock/plugins/core/net.py:158:1: W191 indentation contains tabs
defaults = {
^
spock/plugins/core/net.py:159:1: W191 indentation contains tabs
'bufsize': 4096,
^
spock/plugins/core/net.py:160:1: W191 indentation contains tabs
'sock_quit': True,
^
spock/plugins/core/net.py:161:1: W191 indentation contains tabs
}
^
spock/plugins/core/net.py:162:1: W191 indentation contains tabs
events = {
^
spock/plugins/core/net.py:163:1: W191 indentation contains tabs
'event_tick': 'tick',
^
spock/plugins/core/net.py:164:1: W191 indentation contains tabs
'SOCKET_RECV': 'handleRECV',
^
spock/plugins/core/net.py:165:1: W191 indentation contains tabs
'SOCKET_SEND': 'handleSEND',
^
spock/plugins/core/net.py:166:1: W191 indentation contains tabs
'SOCKET_ERR': 'handleERR',
^
spock/plugins/core/net.py:167:1: W191 indentation contains tabs
'SOCKET_HUP': 'handleHUP',
^
spock/plugins/core/net.py:168:1: W191 indentation contains tabs
'PLAY<Disconnect': 'handle_disconnect',
^
spock/plugins/core/net.py:169:1: W191 indentation contains tabs
'HANDSHAKE>Handshake': 'handle_handshake',
^
spock/plugins/core/net.py:170:1: W191 indentation contains tabs
'LOGIN<Login Success': 'handle_login_success',
^
spock/plugins/core/net.py:171:1: W191 indentation contains tabs
'LOGIN<Set Compression': 'handle_comp',
^
spock/plugins/core/net.py:172:1: W191 indentation contains tabs
'PLAY<Set Compression': 'handle_comp',
^
spock/plugins/core/net.py:173:1: W191 indentation contains tabs
'kill': 'handle_kill',
^
spock/plugins/core/net.py:174:1: W191 indentation contains tabs
}
^
spock/plugins/core/net.py:176:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/core/net.py:177:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/core/net.py:178:1: W191 indentation contains tabs
self.bufsize = self.settings['bufsize']
^
spock/plugins/core/net.py:179:1: W191 indentation contains tabs
self.sock_quit = self.settings['sock_quit']
^
spock/plugins/core/net.py:180:1: W191 indentation contains tabs
self.sock = SelectSocket(self.timers)
^
spock/plugins/core/net.py:181:1: W191 indentation contains tabs
self.net = NetCore(self.sock, self.event)
^
spock/plugins/core/net.py:182:1: W191 indentation contains tabs
self.sock_dead = False
^
spock/plugins/core/net.py:183:1: W191 indentation contains tabs
ploader.provides('Net', self.net)
^
spock/plugins/core/net.py:185:1: W191 indentation contains tabs
def tick(self, name, data):
^
spock/plugins/core/net.py:186:1: W191 indentation contains tabs
if self.net.connected:
^
spock/plugins/core/net.py:187:1: W191 indentation contains tabs
for flag in self.sock.poll():
^
spock/plugins/core/net.py:188:1: W191 indentation contains tabs
self.event.emit(flag)
^
spock/plugins/core/net.py:189:1: W191 indentation contains tabs
else:
^
spock/plugins/core/net.py:190:1: W191 indentation contains tabs
timeout = self.timers.get_timeout()
^
spock/plugins/core/net.py:191:1: W191 indentation contains tabs
if timeout == -1:
^
spock/plugins/core/net.py:192:1: W191 indentation contains tabs
time.sleep(1)
^
spock/plugins/core/net.py:193:1: W191 indentation contains tabs
else:
^
spock/plugins/core/net.py:194:1: W191 indentation contains tabs
time.sleep(timeout)
^
spock/plugins/core/net.py:197:1: W191 indentation contains tabs
#SOCKET_RECV - Socket is ready to recieve data
^
spock/plugins/core/net.py:197:2: E265 block comment should start with '# '
#SOCKET_RECV - Socket is ready to recieve data
^
spock/plugins/core/net.py:197:2: E303 too many blank lines (2)
#SOCKET_RECV - Socket is ready to recieve data
^
spock/plugins/core/net.py:198:1: W191 indentation contains tabs
def handleRECV(self, name, data):
^
spock/plugins/core/net.py:198:6: N802 function name should be lowercase
def handleRECV(self, name, data):
^
spock/plugins/core/net.py:199:1: W191 indentation contains tabs
if self.net.connected:
^
spock/plugins/core/net.py:200:1: W191 indentation contains tabs
try:
^
spock/plugins/core/net.py:201:1: W191 indentation contains tabs
data = self.sock.recv(self.bufsize)
^
spock/plugins/core/net.py:202:1: W191 indentation contains tabs
#print('read:', len(data))
^
spock/plugins/core/net.py:202:5: E265 block comment should start with '# '
#print('read:', len(data))
^
spock/plugins/core/net.py:203:1: W191 indentation contains tabs
if not data:
^
spock/plugins/core/net.py:204:1: W191 indentation contains tabs
self.event.emit('SOCKET_HUP')
^
spock/plugins/core/net.py:205:1: W191 indentation contains tabs
return
^
spock/plugins/core/net.py:206:1: W191 indentation contains tabs
self.net.read_packet(data)
^
spock/plugins/core/net.py:207:1: W191 indentation contains tabs
except socket.error as error:
^
spock/plugins/core/net.py:208:1: W191 indentation contains tabs
self.event.emit('SOCKET_ERR', error)
^
spock/plugins/core/net.py:211:1: W191 indentation contains tabs
#SOCKET_SEND - Socket is ready to send data and Send buffer contains data to send
^
spock/plugins/core/net.py:211:2: E265 block comment should start with '# '
#SOCKET_SEND - Socket is ready to send data and Send buffer contains data to send
^
spock/plugins/core/net.py:211:2: E303 too many blank lines (2)
#SOCKET_SEND - Socket is ready to send data and Send buffer contains data to send
^
spock/plugins/core/net.py:211:80: E501 line too long (82 > 79 characters)
#SOCKET_SEND - Socket is ready to send data and Send buffer contains data to send
^
spock/plugins/core/net.py:212:1: W191 indentation contains tabs
def handleSEND(self, name, data):
^
spock/plugins/core/net.py:212:6: N802 function name should be lowercase
def handleSEND(self, name, data):
^
spock/plugins/core/net.py:213:1: W191 indentation contains tabs
if self.net.connected:
^
spock/plugins/core/net.py:214:1: W191 indentation contains tabs
try:
^
spock/plugins/core/net.py:215:1: W191 indentation contains tabs
sent = self.sock.send(self.net.sbuff)
^
spock/plugins/core/net.py:216:1: W191 indentation contains tabs
self.net.sbuff = self.net.sbuff[sent:]
^
spock/plugins/core/net.py:217:1: W191 indentation contains tabs
if self.net.sbuff:
^
spock/plugins/core/net.py:218:1: W191 indentation contains tabs
self.sending = True
^
spock/plugins/core/net.py:219:1: W191 indentation contains tabs
except socket.error as error:
^
spock/plugins/core/net.py:220:1: W191 indentation contains tabs
logger.error(str(error))
^
spock/plugins/core/net.py:221:1: W191 indentation contains tabs
self.event.emit('SOCKET_ERR', error)
^
spock/plugins/core/net.py:223:1: W191 indentation contains tabs
#SOCKET_ERR - Socket Error has occured
^
spock/plugins/core/net.py:223:2: E265 block comment should start with '# '
#SOCKET_ERR - Socket Error has occured
^
spock/plugins/core/net.py:224:1: W191 indentation contains tabs
def handleERR(self, name, data):
^
spock/plugins/core/net.py:224:6: N802 function name should be lowercase
def handleERR(self, name, data):
^
spock/plugins/core/net.py:225:1: W191 indentation contains tabs
self.net.reset()
^
spock/plugins/core/net.py:226:1: W191 indentation contains tabs
logger.error("NETPLUGIN: Socket Error: %s", data)
^
spock/plugins/core/net.py:227:1: W191 indentation contains tabs
self.event.emit('disconnect', data)
^
spock/plugins/core/net.py:228:1: W191 indentation contains tabs
if self.sock_quit and not self.event.kill_event:
^
spock/plugins/core/net.py:229:1: W191 indentation contains tabs
self.sock_dead = True
^
spock/plugins/core/net.py:230:1: W191 indentation contains tabs
self.event.kill()
^
spock/plugins/core/net.py:232:1: W191 indentation contains tabs
#SOCKET_HUP - Socket has hung up
^
spock/plugins/core/net.py:232:2: E265 block comment should start with '# '
#SOCKET_HUP - Socket has hung up
^
spock/plugins/core/net.py:233:1: W191 indentation contains tabs
def handleHUP(self, name, data):
^
spock/plugins/core/net.py:233:6: N802 function name should be lowercase
def handleHUP(self, name, data):
^
spock/plugins/core/net.py:234:1: W191 indentation contains tabs
self.net.reset()
^
spock/plugins/core/net.py:235:1: W191 indentation contains tabs
logger.error("NETPLUGIN: Socket has hung up")
^
spock/plugins/core/net.py:236:1: W191 indentation contains tabs
self.event.emit('disconnect', "Socket Hung Up")
^
spock/plugins/core/net.py:237:1: W191 indentation contains tabs
if self.sock_quit and not self.event.kill_event:
^
spock/plugins/core/net.py:238:1: W191 indentation contains tabs
self.sock_dead = True
^
spock/plugins/core/net.py:239:1: W191 indentation contains tabs
self.event.kill()
^
spock/plugins/core/net.py:241:1: W191 indentation contains tabs
#Handshake - Change to whatever the next state is going to be
^
spock/plugins/core/net.py:241:2: E265 block comment should start with '# '
#Handshake - Change to whatever the next state is going to be
^
spock/plugins/core/net.py:242:1: W191 indentation contains tabs
def handle_handshake(self, name, packet):
^
spock/plugins/core/net.py:243:1: W191 indentation contains tabs
self.net.set_proto_state(packet.data['next_state'])
^
spock/plugins/core/net.py:245:1: W191 indentation contains tabs
#Login Success - Change to Play state
^
spock/plugins/core/net.py:245:2: E265 block comment should start with '# '
#Login Success - Change to Play state
^
spock/plugins/core/net.py:246:1: W191 indentation contains tabs
def handle_login_success(self, name, packet):
^
spock/plugins/core/net.py:247:1: W191 indentation contains tabs
self.net.set_proto_state(mcdata.PLAY_STATE)
^
spock/plugins/core/net.py:249:1: W191 indentation contains tabs
#Handle Set Compression packets
^
spock/plugins/core/net.py:249:2: E265 block comment should start with '# '
#Handle Set Compression packets
^
spock/plugins/core/net.py:250:1: W191 indentation contains tabs
def handle_comp(self, name, packet):
^
spock/plugins/core/net.py:251:1: W191 indentation contains tabs
self.net.set_comp_state(packet.data['threshold'])
^
spock/plugins/core/net.py:253:1: W191 indentation contains tabs
def handle_disconnect(self, name, packet):
^
spock/plugins/core/net.py:254:1: W191 indentation contains tabs
logger.info("NETPLUGIN: Disconnected: %s", packet.data['reason'])
^
spock/plugins/core/net.py:255:1: W191 indentation contains tabs
self.event.emit('disconnect', packet.data['reason'])
^
spock/plugins/core/net.py:257:1: W191 indentation contains tabs
#Kill event - Try to shutdown the socket politely
^
spock/plugins/core/net.py:257:2: E265 block comment should start with '# '
#Kill event - Try to shutdown the socket politely
^
spock/plugins/core/net.py:258:1: W191 indentation contains tabs
def handle_kill(self, name, data):
^
spock/plugins/core/net.py:259:1: W191 indentation contains tabs
logger.info("NETPLUGIN: Kill event recieved, shutting down socket")
^
spock/plugins/core/net.py:260:1: W191 indentation contains tabs
if not self.sock_dead:
^
spock/plugins/core/net.py:261:1: W191 indentation contains tabs
self.sock.shutdown(socket.SHUT_WR)
^
spock/plugins/core/net.py:262:1: W191 indentation contains tabs
self.sock.close()
^
spock/mcmap/smpmap.py:20:1: F401 'struct' imported but unused
import struct
^
spock/mcmap/smpmap.py:21:1: I201 Missing newline before sections or imports.
from spock import utils
^
spock/mcmap/smpmap.py:23:17: E221 multiple spaces before operator
DIMENSION_NETHER = -0x01
^
spock/mcmap/smpmap.py:24:21: E222 multiple spaces after operator
DIMENSION_OVERWOLD = 0x00
^
spock/mcmap/smpmap.py:25:14: E221 multiple spaces before operator
DIMENSION_END = 0x01
^
spock/mcmap/smpmap.py:25:21: E222 multiple spaces after operator
DIMENSION_END = 0x01
^
spock/mcmap/smpmap.py:27:1: E302 expected 2 blank lines, found 1
class ChunkData:
^
spock/mcmap/smpmap.py:28:1: W191 indentation contains tabs
length = 16*16*16
^
spock/mcmap/smpmap.py:29:1: W191 indentation contains tabs
ty = 'B'
^
spock/mcmap/smpmap.py:30:1: W191 indentation contains tabs
data = None
^
spock/mcmap/smpmap.py:30:6: E221 multiple spaces before operator
data = None
^
spock/mcmap/smpmap.py:32:1: W191 indentation contains tabs
def fill(self):
^
spock/mcmap/smpmap.py:33:1: W191 indentation contains tabs
if not self.data:
^
spock/mcmap/smpmap.py:34:1: W191 indentation contains tabs
self.data = array.array(self.ty, [0]*self.length)
^
spock/mcmap/smpmap.py:36:1: W191 indentation contains tabs
def unpack(self, buff):
^
spock/mcmap/smpmap.py:37:1: W191 indentation contains tabs
self.data = array.array(self.ty, buff.read(self.length))
^
spock/mcmap/smpmap.py:39:1: W191 indentation contains tabs
def pack(self):
^
spock/mcmap/smpmap.py:40:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:41:1: W191 indentation contains tabs
return self.data.tobytes()
^
spock/mcmap/smpmap.py:43:1: W191 indentation contains tabs
def get(self, x, y, z):
^
spock/mcmap/smpmap.py:44:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:45:1: W191 indentation contains tabs
return self.data[x + ((y * 16) + z) * 16]
^
spock/mcmap/smpmap.py:47:1: W191 indentation contains tabs
def set(self, x, y, z, data):
^
spock/mcmap/smpmap.py:48:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:49:1: W191 indentation contains tabs
self.data[x + ((y * 16) + z) * 16] = data
^
spock/mcmap/smpmap.py:51:1: E302 expected 2 blank lines, found 1
class BiomeData(ChunkData):
^
spock/mcmap/smpmap.py:52:1: W191 indentation contains tabs
""" A 16x16 array stored in each ChunkColumn. """
^
spock/mcmap/smpmap.py:53:1: W191 indentation contains tabs
length = 16*16
^
spock/mcmap/smpmap.py:54:1: W191 indentation contains tabs
data = None
^
spock/mcmap/smpmap.py:56:1: W191 indentation contains tabs
def get(self, x, z):
^
spock/mcmap/smpmap.py:57:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:58:1: W191 indentation contains tabs
return self.data[x + z * 16]
^
spock/mcmap/smpmap.py:60:1: W191 indentation contains tabs
def set(self, x, z, d):
^
spock/mcmap/smpmap.py:61:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:62:1: W191 indentation contains tabs
self.data[x + z * 16] = d
^
spock/mcmap/smpmap.py:64:1: E302 expected 2 blank lines, found 1
class ChunkDataShort(ChunkData):
^
spock/mcmap/smpmap.py:65:1: W191 indentation contains tabs
""" A 16x16x16 array for storing block IDs/Metadata. """
^
spock/mcmap/smpmap.py:66:1: W191 indentation contains tabs
length = 16*16*16*2
^
spock/mcmap/smpmap.py:67:1: W191 indentation contains tabs
ty = 'H'
^
spock/mcmap/smpmap.py:69:1: E302 expected 2 blank lines, found 1
class ChunkDataNibble(ChunkData):
^
spock/mcmap/smpmap.py:71:1: W191 indentation contains tabs
contains two 4-bit elements. """
^
spock/mcmap/smpmap.py:72:1: W191 indentation contains tabs
length = 16*16*8
^
spock/mcmap/smpmap.py:74:1: W191 indentation contains tabs
def get(self, x, y, z):
^
spock/mcmap/smpmap.py:75:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:76:1: W191 indentation contains tabs
x, r = divmod(x, 2)
^
spock/mcmap/smpmap.py:77:1: W191 indentation contains tabs
i = x + ((y * 16) + z) * 16
^
spock/mcmap/smpmap.py:78:1: W191 indentation contains tabs
if r:
^
spock/mcmap/smpmap.py:79:1: W191 indentation contains tabs
return self.data[i] & 0x0F
^
spock/mcmap/smpmap.py:80:1: W191 indentation contains tabs
else:
^
spock/mcmap/smpmap.py:81:1: W191 indentation contains tabs
return self.data[i] >> 4
^
spock/mcmap/smpmap.py:83:1: W191 indentation contains tabs
def set(self, x, y, z, data):
^
spock/mcmap/smpmap.py:84:1: W191 indentation contains tabs
self.fill()
^
spock/mcmap/smpmap.py:85:1: W191 indentation contains tabs
x, r = divmod(x, 2)
^
spock/mcmap/smpmap.py:86:1: W191 indentation contains tabs
i = x + ((y * 16) + z) * 16
^
spock/mcmap/smpmap.py:87:1: W191 indentation contains tabs
if r:
^
spock/mcmap/smpmap.py:88:1: W191 indentation contains tabs
self.data[i] = (self.data[i] & 0xF0) | (data & 0x0F)
^
spock/mcmap/smpmap.py:89:1: W191 indentation contains tabs
else:
^
spock/mcmap/smpmap.py:90:1: W191 indentation contains tabs
self.data[i] = (self.data[i] & 0x0F) | ((data & 0x0F) << 4)
^
spock/mcmap/smpmap.py:92:1: E302 expected 2 blank lines, found 1
class Chunk:
^
spock/mcmap/smpmap.py:93:1: W191 indentation contains tabs
def __init__(self):
^
spock/mcmap/smpmap.py:94:1: W191 indentation contains tabs
self.block_data = ChunkDataShort()
^
spock/mcmap/smpmap.py:95:1: W191 indentation contains tabs
self.light_block = ChunkDataNibble()
^
spock/mcmap/smpmap.py:96:1: W191 indentation contains tabs
self.light_sky = ChunkDataNibble()
^
spock/mcmap/smpmap.py:100:1: W191 indentation contains tabs
def __init__(self):
^
spock/mcmap/smpmap.py:101:1: W191 indentation contains tabs
self.chunks = [None]*16
^
spock/mcmap/smpmap.py:102:1: W191 indentation contains tabs
self.biome = BiomeData()
^
spock/mcmap/smpmap.py:104:1: W191 indentation contains tabs
def unpack(self, buff, mask, skylight=True, continuous=True):
^
spock/mcmap/smpmap.py:105:1: W191 indentation contains tabs
#In the protocol, each section is packed sequentially (i.e. attributes
^
spock/mcmap/smpmap.py:105:3: E265 block comment should start with '# '
#In the protocol, each section is packed sequentially (i.e. attributes
^
spock/mcmap/smpmap.py:106:1: W191 indentation contains tabs
#pertaining to the same chunk are *not* grouped)
^
spock/mcmap/smpmap.py:106:3: E265 block comment should start with '# '
#pertaining to the same chunk are *not* grouped)
^
spock/mcmap/smpmap.py:107:1: W191 indentation contains tabs
self.unpack_block_data(buff, mask)
^
spock/mcmap/smpmap.py:108:1: W191 indentation contains tabs
self.unpack_light_block(buff, mask)
^
spock/mcmap/smpmap.py:109:1: W191 indentation contains tabs
if skylight:
^
spock/mcmap/smpmap.py:110:1: W191 indentation contains tabs
self.unpack_light_sky(buff, mask)
^
spock/mcmap/smpmap.py:111:1: W191 indentation contains tabs
if continuous:
^
spock/mcmap/smpmap.py:112:1: W191 indentation contains tabs
self.biome.unpack(buff)
^
spock/mcmap/smpmap.py:114:1: W191 indentation contains tabs
def unpack_block_data(self, buff, mask):
^
spock/mcmap/smpmap.py:115:1: W191 indentation contains tabs
for i in range(16):
^
spock/mcmap/smpmap.py:116:1: W191 indentation contains tabs
if mask&(1<<i):
^
spock/mcmap/smpmap.py:116:11: E227 missing whitespace around bitwise or shift operator
if mask&(1<<i):
^
spock/mcmap/smpmap.py:116:14: E227 missing whitespace around bitwise or shift operator
if mask&(1<<i):
^
spock/mcmap/smpmap.py:117:1: W191 indentation contains tabs
if self.chunks[i] == None:
^
spock/mcmap/smpmap.py:117:23: E711 comparison to None should be 'if cond is None:'
if self.chunks[i] == None:
^
spock/mcmap/smpmap.py:118:1: W191 indentation contains tabs
self.chunks[i] = Chunk()
^
spock/mcmap/smpmap.py:119:1: W191 indentation contains tabs
self.chunks[i].block_data.unpack(buff)
^
spock/mcmap/smpmap.py:121:1: W191 indentation contains tabs
def unpack_light_block(self, buff, mask):
^
spock/mcmap/smpmap.py:122:1: W191 indentation contains tabs
for i in range(16):
^
spock/mcmap/smpmap.py:123:1: W191 indentation contains tabs
if mask&(1<<i):
^
spock/mcmap/smpmap.py:123:11: E227 missing whitespace around bitwise or shift operator
if mask&(1<<i):
^
spock/mcmap/smpmap.py:123:14: E227 missing whitespace around bitwise or shift operator
if mask&(1<<i):
^
spock/mcmap/smpmap.py:124:1: W191 indentation contains tabs
if self.chunks[i] == None:
^
spock/mcmap/smpmap.py:124:23: E711 comparison to None should be 'if cond is None:'
if self.chunks[i] == None:
^
spock/mcmap/smpmap.py:125:1: W191 indentation contains tabs
self.chunks[i] = Chunk()
^
spock/mcmap/smpmap.py:126:1: W191 indentation contains tabs
self.chunks[i].light_block.unpack(buff)
^
spock/mcmap/smpmap.py:128:1: W191 indentation contains tabs
def unpack_light_sky(self, buff, mask):
^
spock/mcmap/smpmap.py:129:1: W191 indentation contains tabs
for i in range(16):
^
spock/mcmap/smpmap.py:130:1: W191 indentation contains tabs
if mask&(1<<i):
^
spock/mcmap/smpmap.py:130:11: E227 missing whitespace around bitwise or shift operator
if mask&(1<<i):
^
spock/mcmap/smpmap.py:130:14: E227 missing whitespace around bitwise or shift operator
if mask&(1<<i):
^
spock/mcmap/smpmap.py:131:1: W191 indentation contains tabs
if self.chunks[i] == None:
^
spock/mcmap/smpmap.py:131:23: E711 comparison to None should be 'if cond is None:'
if self.chunks[i] == None:
^
spock/mcmap/smpmap.py:132:1: W191 indentation contains tabs
self.chunks[i] = Chunk()
^
spock/mcmap/smpmap.py:133:1: W191 indentation contains tabs
self.chunks[i].light_sky.unpack(buff)
^
spock/mcmap/smpmap.py:135:1: E302 expected 2 blank lines, found 1
class Dimension(object):
^
spock/mcmap/smpmap.py:136:1: W191 indentation contains tabs
""" A bunch of ChunkColumns. """
^
spock/mcmap/smpmap.py:138:1: W191 indentation contains tabs
def __init__(self, dimension):
^
spock/mcmap/smpmap.py:139:1: W191 indentation contains tabs
self.dimension = dimension
^
spock/mcmap/smpmap.py:140:1: W191 indentation contains tabs
self.columns = {} #chunk columns are address by a tuple (x, z)
^
spock/mcmap/smpmap.py:140:20: E261 at least two spaces before inline comment
self.columns = {} #chunk columns are address by a tuple (x, z)
^
spock/mcmap/smpmap.py:140:21: E262 inline comment should start with '# '
self.columns = {} #chunk columns are address by a tuple (x, z)
^
spock/mcmap/smpmap.py:142:1: W191 indentation contains tabs
def unpack_bulk(self, data):
^
spock/mcmap/smpmap.py:143:1: W191 indentation contains tabs
skylight = data['sky_light']
^
spock/mcmap/smpmap.py:144:1: W191 indentation contains tabs
bbuff = utils.BoundBuffer(data['data'])
^
spock/mcmap/smpmap.py:145:1: W191 indentation contains tabs
for meta in data['metadata']:
^
spock/mcmap/smpmap.py:146:1: W191 indentation contains tabs
# Read chunk metadata
^
spock/mcmap/smpmap.py:147:1: W191 indentation contains tabs
x_chunk = meta['chunk_x']
^
spock/mcmap/smpmap.py:148:1: W191 indentation contains tabs
z_chunk = meta['chunk_z']
^
spock/mcmap/smpmap.py:149:1: W191 indentation contains tabs
mask = meta['primary_bitmap']
^
spock/mcmap/smpmap.py:151:1: W191 indentation contains tabs
# Grab the relevant column
^
spock/mcmap/smpmap.py:152:1: W191 indentation contains tabs
key = (x_chunk, z_chunk)
^
spock/mcmap/smpmap.py:153:1: W191 indentation contains tabs
if key not in self.columns:
^
spock/mcmap/smpmap.py:154:1: W191 indentation contains tabs
self.columns[key] = ChunkColumn()
^
spock/mcmap/smpmap.py:156:1: W191 indentation contains tabs
# Unpack the chunk column data
^
spock/mcmap/smpmap.py:157:1: W191 indentation contains tabs
self.columns[key].unpack(bbuff, mask, skylight)
^
spock/mcmap/smpmap.py:159:1: W191 indentation contains tabs
def unpack_column(self, data):
^
spock/mcmap/smpmap.py:160:1: W191 indentation contains tabs
x_chunk = data['chunk_x']
^
spock/mcmap/smpmap.py:161:1: W191 indentation contains tabs
z_chunk = data['chunk_z']
^
spock/mcmap/smpmap.py:162:1: W191 indentation contains tabs
mask = data['primary_bitmap']
^
spock/mcmap/smpmap.py:163:1: W191 indentation contains tabs
continuous = data['continuous']
^
spock/mcmap/smpmap.py:164:1: W191 indentation contains tabs
bbuff = utils.BoundBuffer(data['data'])
^
spock/mcmap/smpmap.py:165:1: W191 indentation contains tabs
if self.dimension == DIMENSION_OVERWOLD:
^
spock/mcmap/smpmap.py:166:1: W191 indentation contains tabs
skylight = True
^
spock/mcmap/smpmap.py:167:1: W191 indentation contains tabs
else:
^
spock/mcmap/smpmap.py:168:1: W191 indentation contains tabs
skylight = False
^
spock/mcmap/smpmap.py:170:1: W191 indentation contains tabs
key = (x_chunk, z_chunk)
^
spock/mcmap/smpmap.py:171:1: W191 indentation contains tabs
if key not in self.columns:
^
spock/mcmap/smpmap.py:172:1: W191 indentation contains tabs
self.columns[key] = ChunkColumn()
^
spock/mcmap/smpmap.py:174:1: W191 indentation contains tabs
self.columns[key].unpack(bbuff, mask, skylight, continuous)
^
spock/mcmap/smpmap.py:176:1: W191 indentation contains tabs
def get_block(self, x, y, z):
^
spock/mcmap/smpmap.py:177:1: W191 indentation contains tabs
x, y, z = int(x), int(y), int(z) #Damn you python2
^
spock/mcmap/smpmap.py:177:35: E261 at least two spaces before inline comment
x, y, z = int(x), int(y), int(z) #Damn you python2
^
spock/mcmap/smpmap.py:177:36: E262 inline comment should start with '# '
x, y, z = int(x), int(y), int(z) #Damn you python2
^
spock/mcmap/smpmap.py:178:1: W191 indentation contains tabs
x, rx = divmod(x, 16)
^
spock/mcmap/smpmap.py:179:1: W191 indentation contains tabs
y, ry = divmod(y, 16)
^
spock/mcmap/smpmap.py:180:1: W191 indentation contains tabs
z, rz = divmod(z, 16)
^
spock/mcmap/smpmap.py:182:1: W191 indentation contains tabs
if (x, z) not in self.columns or y > 0x0F:
^
spock/mcmap/smpmap.py:183:1: W191 indentation contains tabs
return 0, 0
^
spock/mcmap/smpmap.py:184:1: W191 indentation contains tabs
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:184:27: E231 missing whitespace after ','
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:185:1: W191 indentation contains tabs
chunk = column.chunks[y]
^
spock/mcmap/smpmap.py:186:1: W191 indentation contains tabs
if chunk == None:
^
spock/mcmap/smpmap.py:186:12: E711 comparison to None should be 'if cond is None:'
if chunk == None:
^
spock/mcmap/smpmap.py:187:1: W191 indentation contains tabs
return 0, 0
^
spock/mcmap/smpmap.py:189:1: W191 indentation contains tabs
data = chunk.block_data.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:189:33: E231 missing whitespace after ','
data = chunk.block_data.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:189:36: E231 missing whitespace after ','
data = chunk.block_data.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:190:1: W191 indentation contains tabs
return data>>4, data&0x0F
^
spock/mcmap/smpmap.py:190:14: E227 missing whitespace around bitwise or shift operator
return data>>4, data&0x0F
^
spock/mcmap/smpmap.py:190:23: E227 missing whitespace around bitwise or shift operator
return data>>4, data&0x0F
^
spock/mcmap/smpmap.py:192:1: W191 indentation contains tabs
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:192:39: E251 unexpected spaces around keyword / parameter equals
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:192:41: E251 unexpected spaces around keyword / parameter equals
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:192:52: E251 unexpected spaces around keyword / parameter equals
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:192:54: E251 unexpected spaces around keyword / parameter equals
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:192:65: E251 unexpected spaces around keyword / parameter equals
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:192:67: E251 unexpected spaces around keyword / parameter equals
def set_block(self, x, y, z, block_id = None, meta = None, data = None):
^
spock/mcmap/smpmap.py:193:1: W191 indentation contains tabs
x, rx = divmod(x, 16)
^
spock/mcmap/smpmap.py:194:1: W191 indentation contains tabs
y, ry = divmod(y, 16)
^
spock/mcmap/smpmap.py:195:1: W191 indentation contains tabs
z, rz = divmod(z, 16)
^
spock/mcmap/smpmap.py:197:1: W191 indentation contains tabs
if y > 0x0F:
^
spock/mcmap/smpmap.py:198:1: W191 indentation contains tabs
return
^
spock/mcmap/smpmap.py:199:1: W191 indentation contains tabs
if (x,z) in self.columns:
^
spock/mcmap/smpmap.py:199:8: E231 missing whitespace after ','
if (x,z) in self.columns:
^
spock/mcmap/smpmap.py:200:1: W191 indentation contains tabs
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:200:28: E231 missing whitespace after ','
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:201:1: W191 indentation contains tabs
else:
^
spock/mcmap/smpmap.py:202:1: W191 indentation contains tabs
column = ChunkColumn()
^
spock/mcmap/smpmap.py:203:1: W191 indentation contains tabs
self.columns[(x,z)] = column
^
spock/mcmap/smpmap.py:203:19: E231 missing whitespace after ','
self.columns[(x,z)] = column
^
spock/mcmap/smpmap.py:204:1: W191 indentation contains tabs
chunk = column.chunks[y]
^
spock/mcmap/smpmap.py:205:1: W191 indentation contains tabs
if chunk == None:
^
spock/mcmap/smpmap.py:205:12: E711 comparison to None should be 'if cond is None:'
if chunk == None:
^
spock/mcmap/smpmap.py:206:1: W191 indentation contains tabs
chunk = Chunk()
^
spock/mcmap/smpmap.py:207:1: W191 indentation contains tabs
column.chunks[y] = chunk
^
spock/mcmap/smpmap.py:209:1: W191 indentation contains tabs
if data == None:
^
spock/mcmap/smpmap.py:209:11: E711 comparison to None should be 'if cond is None:'
if data == None:
^
spock/mcmap/smpmap.py:210:1: W191 indentation contains tabs
data = (block_id<<4)|(meta&0x0F)
^
spock/mcmap/smpmap.py:210:20: E227 missing whitespace around bitwise or shift operator
data = (block_id<<4)|(meta&0x0F)
^
spock/mcmap/smpmap.py:210:24: E227 missing whitespace around bitwise or shift operator
data = (block_id<<4)|(meta&0x0F)
^
spock/mcmap/smpmap.py:210:30: E227 missing whitespace around bitwise or shift operator
data = (block_id<<4)|(meta&0x0F)
^
spock/mcmap/smpmap.py:211:1: W191 indentation contains tabs
chunk.block_data.set(rx, ry, rz, data)
^
spock/mcmap/smpmap.py:213:1: W191 indentation contains tabs
def get_light(self, x, y, z):
^
spock/mcmap/smpmap.py:214:1: W191 indentation contains tabs
x, rx = divmod(x, 16)
^
spock/mcmap/smpmap.py:215:1: W191 indentation contains tabs
y, ry = divmod(y, 16)
^
spock/mcmap/smpmap.py:216:1: W191 indentation contains tabs
z, rz = divmod(z, 16)
^
spock/mcmap/smpmap.py:218:1: W191 indentation contains tabs
if (x, z) not in self.columns or y > 0x0F:
^
spock/mcmap/smpmap.py:219:1: W191 indentation contains tabs
return 0, 0
^
spock/mcmap/smpmap.py:220:1: W191 indentation contains tabs
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:220:27: E231 missing whitespace after ','
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:221:1: W191 indentation contains tabs
chunk = column.chunks[y]
^
spock/mcmap/smpmap.py:222:1: W191 indentation contains tabs
if chunk == None:
^
spock/mcmap/smpmap.py:222:12: E711 comparison to None should be 'if cond is None:'
if chunk == None:
^
spock/mcmap/smpmap.py:223:1: W191 indentation contains tabs
return 0, 0
^
spock/mcmap/smpmap.py:225:1: W191 indentation contains tabs
return chunk.light_block.get(rx,ry,rz), chunk.light_sky.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:225:34: E231 missing whitespace after ','
return chunk.light_block.get(rx,ry,rz), chunk.light_sky.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:225:37: E231 missing whitespace after ','
return chunk.light_block.get(rx,ry,rz), chunk.light_sky.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:225:65: E231 missing whitespace after ','
return chunk.light_block.get(rx,ry,rz), chunk.light_sky.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:225:68: E231 missing whitespace after ','
return chunk.light_block.get(rx,ry,rz), chunk.light_sky.get(rx,ry,rz)
^
spock/mcmap/smpmap.py:227:1: W191 indentation contains tabs
def set_light(self, x, y, z, light_block = None, light_sky = None):
^
spock/mcmap/smpmap.py:227:42: E251 unexpected spaces around keyword / parameter equals
def set_light(self, x, y, z, light_block = None, light_sky = None):
^
spock/mcmap/smpmap.py:227:44: E251 unexpected spaces around keyword / parameter equals
def set_light(self, x, y, z, light_block = None, light_sky = None):
^
spock/mcmap/smpmap.py:227:60: E251 unexpected spaces around keyword / parameter equals
def set_light(self, x, y, z, light_block = None, light_sky = None):
^
spock/mcmap/smpmap.py:227:62: E251 unexpected spaces around keyword / parameter equals
def set_light(self, x, y, z, light_block = None, light_sky = None):
^
spock/mcmap/smpmap.py:228:1: W191 indentation contains tabs
x, rx = divmod(x, 16)
^
spock/mcmap/smpmap.py:229:1: W191 indentation contains tabs
y, ry = divmod(y, 16)
^
spock/mcmap/smpmap.py:230:1: W191 indentation contains tabs
z, rz = divmod(z, 16)
^
spock/mcmap/smpmap.py:232:1: W191 indentation contains tabs
if y > 0x0F:
^
spock/mcmap/smpmap.py:233:1: W191 indentation contains tabs
return
^
spock/mcmap/smpmap.py:234:1: W191 indentation contains tabs
if (x,z) in self.columns:
^
spock/mcmap/smpmap.py:234:8: E231 missing whitespace after ','
if (x,z) in self.columns:
^
spock/mcmap/smpmap.py:235:1: W191 indentation contains tabs
column = self.columns[(x, z)]
^
spock/mcmap/smpmap.py:236:1: W191 indentation contains tabs
else:
^
spock/mcmap/smpmap.py:237:1: W191 indentation contains tabs
column = ChunkColumn()
^
spock/mcmap/smpmap.py:238:1: W191 indentation contains tabs
self.columns[(x, z)] = column
^
spock/mcmap/smpmap.py:239:1: W191 indentation contains tabs
chunk = column.chunks[y]
^
spock/mcmap/smpmap.py:240:1: W191 indentation contains tabs
if chunk == None:
^
spock/mcmap/smpmap.py:240:12: E711 comparison to None should be 'if cond is None:'
if chunk == None:
^
spock/mcmap/smpmap.py:241:1: W191 indentation contains tabs
chunk = Chunk()
^
spock/mcmap/smpmap.py:242:1: W191 indentation contains tabs
column.chunks[y] = chunk
^
spock/mcmap/smpmap.py:244:1: W191 indentation contains tabs
if light_block != None:
^
spock/mcmap/smpmap.py:244:18: E711 comparison to None should be 'if cond is not None:'
if light_block != None:
^
spock/mcmap/smpmap.py:245:1: W191 indentation contains tabs
chunk.light_block.set(rx, ry, rz, light_block&0xF)
^
spock/mcmap/smpmap.py:245:49: E227 missing whitespace around bitwise or shift operator
chunk.light_block.set(rx, ry, rz, light_block&0xF)
^
spock/mcmap/smpmap.py:246:1: W191 indentation contains tabs
if light_sky != None:
^
spock/mcmap/smpmap.py:246:16: E711 comparison to None should be 'if cond is not None:'
if light_sky != None:
^
spock/mcmap/smpmap.py:247:1: W191 indentation contains tabs
chunk.light_sky.set(rx, ry, rz, light_sky&0xF)
^
spock/mcmap/smpmap.py:247:45: E227 missing whitespace around bitwise or shift operator
chunk.light_sky.set(rx, ry, rz, light_sky&0xF)
^
spock/mcmap/smpmap.py:249:1: W191 indentation contains tabs
def get_biome(self, x, z):
^
spock/mcmap/smpmap.py:250:1: W191 indentation contains tabs
x, rx = divmod(x, 16)
^
spock/mcmap/smpmap.py:251:1: W191 indentation contains tabs
z, rz = divmod(z, 16)
^
spock/mcmap/smpmap.py:253:1: W191 indentation contains tabs
if (x,z) not in self.columns:
^
spock/mcmap/smpmap.py:253:8: E231 missing whitespace after ','
if (x,z) not in self.columns:
^
spock/mcmap/smpmap.py:254:1: W191 indentation contains tabs
return 0
^
spock/mcmap/smpmap.py:256:1: W191 indentation contains tabs
return self.columns[(x,z)].biome.get(rx, rz)
^
spock/mcmap/smpmap.py:256:25: E231 missing whitespace after ','
return self.columns[(x,z)].biome.get(rx, rz)
^
spock/mcmap/smpmap.py:258:1: W191 indentation contains tabs
def set_biome(self, x, z, data):
^
spock/mcmap/smpmap.py:259:1: W191 indentation contains tabs
x, rx = divmod(x, 16)
^
spock/mcmap/smpmap.py:260:1: W191 indentation contains tabs
z, rz = divmod(z, 16)
^
spock/mcmap/smpmap.py:262:1: W191 indentation contains tabs
if (x,z) in self.columns:
^
spock/mcmap/smpmap.py:262:8: E231 missing whitespace after ','
if (x,z) in self.columns:
^
spock/mcmap/smpmap.py:263:1: W191 indentation contains tabs
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:263:28: E231 missing whitespace after ','
column = self.columns[(x,z)]
^
spock/mcmap/smpmap.py:264:1: W191 indentation contains tabs
else:
^
spock/mcmap/smpmap.py:265:1: W191 indentation contains tabs
column = ChunkColumn()
^
spock/mcmap/smpmap.py:266:1: W191 indentation contains tabs
self.columns[(x,z)] = column
^
spock/mcmap/smpmap.py:266:19: E231 missing whitespace after ','
self.columns[(x,z)] = column
^
spock/mcmap/smpmap.py:268:1: W191 indentation contains tabs
return column.biome.set(rx, rz, data)
^
spock/plugins/helpers/inventory.py:7:1: I100 Imports statements are in the wrong order. from spock.plugins.base should be before from spock.utils
from spock.plugins.base import PluginBase
^
spock/plugins/helpers/inventory.py:16:80: E501 line too long (89 > 79 characters)
INV_WINID_PLAYER = 0 # player inventory window ID/type, not opened but updated by server
^
spock/plugins/helpers/inventory.py:22:80: E501 line too long (82 > 79 characters)
INV_SLOTS_PERSISTENT = INV_SLOTS_INVENTORY + INV_SLOTS_HOTBAR # always accessible
^
spock/plugins/helpers/inventory.py:24:1: E302 expected 2 blank lines, found 1
class Slot(object):
^
spock/plugins/helpers/inventory.py:25:1: W191 indentation contains tabs
def __init__(self, window, slot_nr, id=INV_ITEMID_EMPTY, damage=0, amount=0, enchants=None):
^
spock/plugins/helpers/inventory.py:25:80: E501 line too long (93 > 79 characters)
def __init__(self, window, slot_nr, id=INV_ITEMID_EMPTY, damage=0, amount=0, enchants=None):
^
spock/plugins/helpers/inventory.py:26:1: W191 indentation contains tabs
self.window = window
^
spock/plugins/helpers/inventory.py:27:1: W191 indentation contains tabs
self.slot_nr = slot_nr
^
spock/plugins/helpers/inventory.py:28:1: W191 indentation contains tabs
self.item_id = id
^
spock/plugins/helpers/inventory.py:29:1: W191 indentation contains tabs
self.damage = damage
^
spock/plugins/helpers/inventory.py:30:1: W191 indentation contains tabs
self.amount = amount
^
spock/plugins/helpers/inventory.py:31:1: W191 indentation contains tabs
self.nbt = enchants
^
spock/plugins/helpers/inventory.py:33:1: W191 indentation contains tabs
def move_to_window(self, window, slot_nr):
^
spock/plugins/helpers/inventory.py:34:1: W191 indentation contains tabs
self.window, self.slot_nr = window, slot_nr
^
spock/plugins/helpers/inventory.py:36:1: W191 indentation contains tabs
def stacks_with(self, other):
^
spock/plugins/helpers/inventory.py:37:1: W191 indentation contains tabs
if self.item_id != other.item_id: return False
^
spock/plugins/helpers/inventory.py:37:35: E701 multiple statements on one line (colon)
if self.item_id != other.item_id: return False
^
spock/plugins/helpers/inventory.py:38:1: W191 indentation contains tabs
if self.damage != other.damage: return False
^
spock/plugins/helpers/inventory.py:38:33: E701 multiple statements on one line (colon)
if self.damage != other.damage: return False
^
spock/plugins/helpers/inventory.py:39:1: W191 indentation contains tabs
if self.damage != other.damage: return False
^
spock/plugins/helpers/inventory.py:39:33: E701 multiple statements on one line (colon)
if self.damage != other.damage: return False
^
spock/plugins/helpers/inventory.py:40:1: W191 indentation contains tabs
# raise NotImplementedError('Stacks might differ by NBT data: %s %s' % (self, other))
^
spock/plugins/helpers/inventory.py:40:80: E501 line too long (87 > 79 characters)
# raise NotImplementedError('Stacks might differ by NBT data: %s %s' % (self, other))
^
spock/plugins/helpers/inventory.py:41:1: W191 indentation contains tabs
# if self.nbt != other.nbt: return False # TODO implement this correctly
^
spock/plugins/helpers/inventory.py:42:1: W191 indentation contains tabs
return self.max_amount != 1
^
spock/plugins/helpers/inventory.py:44:1: W191 indentation contains tabs
@property
^
spock/plugins/helpers/inventory.py:45:1: W191 indentation contains tabs
def max_amount(self):
^
spock/plugins/helpers/inventory.py:46:1: W191 indentation contains tabs
# TODO add the real values for ALL THE ITEMS! And blocks.
^
spock/plugins/helpers/inventory.py:47:1: W191 indentation contains tabs
# use some dummy values for now
^
spock/plugins/helpers/inventory.py:48:1: W191 indentation contains tabs
if self.item_id in (-1,
^
spock/plugins/helpers/inventory.py:49:1: W191 indentation contains tabs
256, 257, 258, 259, 261, 282,
^
spock/plugins/helpers/inventory.py:49:5: E128 continuation line under-indented for visual indent
256, 257, 258, 259, 261, 282,
^
spock/plugins/helpers/inventory.py:50:1: W191 indentation contains tabs
326, 327, 333, 335, 342, 343, 346, 347, 355, 358, 359, 373, 374, 379, 380, 386, 387, 398,
^
spock/plugins/helpers/inventory.py:50:5: E128 continuation line under-indented for visual indent
326, 327, 333, 335, 342, 343, 346, 347, 355, 358, 359, 373, 374, 379, 380, 386, 387, 398,
^
spock/plugins/helpers/inventory.py:50:80: E501 line too long (93 > 79 characters)
326, 327, 333, 335, 342, 343, 346, 347, 355, 358, 359, 373, 374, 379, 380, 386, 387, 398,
^
spock/plugins/helpers/inventory.py:51:5: E128 continuation line under-indented for visual indent
403, 407, 408, 422, 417, 418, 419) \
^
spock/plugins/helpers/inventory.py:56:40: E203 whitespace before ':'
or self.item_id in range(2256, 2268) \
^
spock/plugins/helpers/inventory.py:57:1: W191 indentation contains tabs
: return 1
^
spock/plugins/helpers/inventory.py:57:4: E701 multiple statements on one line (colon)
: return 1
^
spock/plugins/helpers/inventory.py:58:1: W191 indentation contains tabs
# TODO some stack up to 16
^
spock/plugins/helpers/inventory.py:59:1: W191 indentation contains tabs
return 64
^
spock/plugins/helpers/inventory.py:61:1: W191 indentation contains tabs
def get_dict(self):
^
spock/plugins/helpers/inventory.py:62:1: W191 indentation contains tabs
""" Formats the slot for network packing. """
^
spock/plugins/helpers/inventory.py:63:1: W191 indentation contains tabs
data = {'id': self.item_id}
^
spock/plugins/helpers/inventory.py:64:1: W191 indentation contains tabs
if self.item_id != INV_ITEMID_EMPTY:
^
spock/plugins/helpers/inventory.py:65:1: W191 indentation contains tabs
data['damage'] = self.damage
^
spock/plugins/helpers/inventory.py:66:1: W191 indentation contains tabs
data['amount'] = self.amount
^
spock/plugins/helpers/inventory.py:67:1: W191 indentation contains tabs
if self.nbt is not None:
^
spock/plugins/helpers/inventory.py:68:1: W191 indentation contains tabs
data['enchants'] = self.nbt
^
spock/plugins/helpers/inventory.py:69:1: W191 indentation contains tabs
return data
^
spock/plugins/helpers/inventory.py:71:1: W191 indentation contains tabs
def is_empty(self):
^
spock/plugins/helpers/inventory.py:72:1: W191 indentation contains tabs
return self.amount <= 0
^
spock/plugins/helpers/inventory.py:74:1: W191 indentation contains tabs
def __bool__(self):
^
spock/plugins/helpers/inventory.py:75:1: W191 indentation contains tabs
return not self.is_empty()
^
spock/plugins/helpers/inventory.py:77:1: W191 indentation contains tabs
def __repr__(self):
^
spock/plugins/helpers/inventory.py:78:1: W191 indentation contains tabs
if self.item_id == INV_ITEMID_EMPTY:
^
spock/plugins/helpers/inventory.py:79:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:2:1: E265 block comment should start with '# '
args = 'empty'
#This is for python2 compatibility
^
^
spock/plugins/helpers/inventory.py:80:1: W191 indentation contains tabs
else:
spock/mcp/yggdrasil.py:2:35: W291 trailing whitespace
#This is for python2 compatibility
^
spock/plugins/helpers/inventory.py:81:1: W191 indentation contains tabs
^
args = str(self.get_dict()).strip('{}').replace("'", '').replace(': ', '=')
spock/mcp/yggdrasil.py:4:1: W191 indentation contains tabs
^
import urllib.request as request
spock/plugins/helpers/inventory.py:82:1: W191 indentation contains tabs
^
return 'Slot(window=%s, slot_nr=%i, %s)' % (self.window, self.slot_nr, args)
spock/mcp/yggdrasil.py:5:1: W191 indentation contains tabs
^
from urllib.error import HTTPError
spock/plugins/helpers/inventory.py:84:1: E302 expected 2 blank lines, found 1
^
class SlotCursor(Slot):
spock/mcp/yggdrasil.py:7:1: W191 indentation contains tabs
^
import urllib2 as request
spock/plugins/helpers/inventory.py:85:1: W191 indentation contains tabs
^
def __init__(self, id=INV_ITEMID_EMPTY, damage=0, amount=0, enchants=None):
spock/mcp/yggdrasil.py:8:1: W191 indentation contains tabs
^
from urllib2 import HTTPError
spock/plugins/helpers/inventory.py:86:1: W191 indentation contains tabs
^
class CursorWindow:
spock/mcp/yggdrasil.py:10:1: E302 expected 2 blank lines, found 1
^
class YggAuth:
spock/plugins/helpers/inventory.py:87:1: W191 indentation contains tabs
^
window_id = INV_WINID_CURSOR
spock/mcp/yggdrasil.py:11:1: W191 indentation contains tabs
^
def __init__(self,
spock/plugins/helpers/inventory.py:88:1: W191 indentation contains tabs
^
def __repr__(self):
spock/mcp/yggdrasil.py:11:20: W291 trailing whitespace
^
def __init__(self,
spock/plugins/helpers/inventory.py:88:4: E301 expected 1 blank line, found 0
def __repr__(self):
^
^
spock/mcp/yggdrasil.py:12:1: W191 indentation contains tabs
client_token=None,
spock/plugins/helpers/inventory.py:89:1: W191 indentation contains tabs
return 'CursorWindow()'
^
^
spock/mcp/yggdrasil.py:12:3: E128 continuation line under-indented for visual indent
spock/plugins/helpers/inventory.py:90:1: W191 indentation contains tabs
client_token=None,
super(self.__class__, self).__init__(CursorWindow(), INV_SLOT_NR_CURSOR, id, damage, amount, enchants)
^
^
spock/mcp/yggdrasil.py:12:21: W291 trailing whitespace
spock/plugins/helpers/inventory.py:90:80: E501 line too long (104 > 79 characters)
client_token=None,
super(self.__class__, self).__init__(CursorWindow(), INV_SLOT_NR_CURSOR, id, damage, amount, enchants)
^
spock/mcp/yggdrasil.py:13:1: W191 indentation contains tabs
^
access_token=None,
spock/plugins/helpers/inventory.py:94:1: E302 expected 2 blank lines, found 0
^
def map_window_type(inv_type_id):
spock/mcp/yggdrasil.py:13:3: E128 continuation line under-indented for visual indent
^
access_token=None,
spock/plugins/helpers/inventory.py:95:1: W191 indentation contains tabs
^
def inner(cl):
spock/mcp/yggdrasil.py:13:21: W291 trailing whitespace
^
access_token=None,
spock/plugins/helpers/inventory.py:96:1: W191 indentation contains tabs
inv_types[inv_type_id] = cl
^
^
spock/mcp/yggdrasil.py:14:1: W191 indentation contains tabs
username=None,
spock/plugins/helpers/inventory.py:97:1: W191 indentation contains tabs
cl.inv_type = inv_type_id
^
^
spock/mcp/yggdrasil.py:14:3: E128 continuation line under-indented for visual indent
username=None,
spock/plugins/helpers/inventory.py:98:1: W191 indentation contains tabs
return cl
^
^
spock/mcp/yggdrasil.py:14:17: W291 trailing whitespace
username=None,
spock/plugins/helpers/inventory.py:99:1: W191 indentation contains tabs
return inner
^
^
spock/mcp/yggdrasil.py:15:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:101:1: E302 expected 2 blank lines, found 1
password=None
class InventoryBase(object):
^
^
spock/mcp/yggdrasil.py:15:3: E128 continuation line under-indented for visual indent
spock/plugins/helpers/inventory.py:102:1: W191 indentation contains tabs
password=None
""" Base class for all inventory types. """
^
^
spock/mcp/yggdrasil.py:16:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:104:1: W191 indentation contains tabs
):
# the arguments must have the same names as the keys in the packet dict
^
^
spock/mcp/yggdrasil.py:16:2: E124 closing bracket does not match visual indentation
spock/plugins/helpers/inventory.py:105:1: W191 indentation contains tabs
):
def __init__(self, inv_type, window_id, title, slot_count, persistent_slots):
^
^
spock/mcp/yggdrasil.py:17:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:106:1: W191 indentation contains tabs
self.username = username
self.inv_type = inv_type
^
^
spock/mcp/yggdrasil.py:18:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:107:1: W191 indentation contains tabs
self.password = password
self.window_id = window_id
^
^
spock/mcp/yggdrasil.py:19:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:108:1: W191 indentation contains tabs
self.client_token = client_token
self.title = title
^
^
spock/mcp/yggdrasil.py:21:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:110:1: W191 indentation contains tabs
self.access_token = None #validate needs self.access_token to exist
# slots vary by inventory type, but always contain main inventory and hotbar
^
^
spock/mcp/yggdrasil.py:21:27: E261 at least two spaces before inline comment
spock/plugins/helpers/inventory.py:111:1: W191 indentation contains tabs
self.access_token = None #validate needs self.access_token to exist
# create own slots, ...
^
^
spock/plugins/helpers/inventory.py:112:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:21:28: E262 inline comment should start with '# '
self.slots = [Slot(self, slot_nr) for slot_nr in range(slot_count)]
self.access_token = None #validate needs self.access_token to exist
^
^
spock/plugins/helpers/inventory.py:113:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:22:1: W191 indentation contains tabs
# ... append persistent slots, which have to be moved
self.access_token = (
^
^
spock/plugins/helpers/inventory.py:114:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:23:1: W191 indentation contains tabs
for p_slot_nr, inv_slot in enumerate(persistent_slots[-INV_SLOTS_PERSISTENT:]):
None if self.validate(access_token) else access_token
^
^
spock/plugins/helpers/inventory.py:114:80: E501 line too long (81 > 79 characters)
spock/mcp/yggdrasil.py:24:1: W191 indentation contains tabs
for p_slot_nr, inv_slot in enumerate(persistent_slots[-INV_SLOTS_PERSISTENT:]):
)
^
spock/mcp/yggdrasil.py:26:1: W191 indentation contains tabs
^
def _gen_req(self, endpoint, payload):
spock/plugins/helpers/inventory.py:115:1: W191 indentation contains tabs
^
inv_slot.move_to_window(self, p_slot_nr + slot_count)
spock/mcp/yggdrasil.py:27:1: W191 indentation contains tabs
^
url = 'https://authserver.mojang.com' + endpoint
spock/plugins/helpers/inventory.py:116:1: W191 indentation contains tabs
^
self.slots.append(inv_slot)
spock/mcp/yggdrasil.py:28:1: W191 indentation contains tabs
^
data = json.dumps(payload).encode('utf-8')
spock/plugins/helpers/inventory.py:118:1: W191 indentation contains tabs
^
# additional info dependent on inventory type, dynamically updated by server
spock/mcp/yggdrasil.py:29:1: W191 indentation contains tabs
^
headers = {'Content-Type': 'application/json'}
spock/plugins/helpers/inventory.py:119:1: W191 indentation contains tabs
^
self.properties = {}
spock/mcp/yggdrasil.py:30:1: W191 indentation contains tabs
^
return request.Request(url, data, headers)
spock/plugins/helpers/inventory.py:121:1: W191 indentation contains tabs
^
def __repr__(self):
spock/mcp/yggdrasil.py:32:1: W191 indentation contains tabs
^
def _gen_rep(self, req):
spock/plugins/helpers/inventory.py:122:1: W191 indentation contains tabs
^
return 'Inventory(id=%i, title=%s)' % (self.window_id, self.title)
spock/mcp/yggdrasil.py:33:1: W191 indentation contains tabs
^
try:
spock/plugins/helpers/inventory.py:124:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:34:1: W191 indentation contains tabs
^
rep = request.urlopen(req)
spock/plugins/helpers/inventory.py:125:1: W191 indentation contains tabs
^
def persistent_slots(self):
spock/mcp/yggdrasil.py:35:1: W191 indentation contains tabs
^
except HTTPError as reperr:
spock/plugins/helpers/inventory.py:126:1: W191 indentation contains tabs
^
return self.slots[-INV_SLOTS_PERSISTENT:]
spock/mcp/yggdrasil.py:36:1: W191 indentation contains tabs
^
rep = reperr
spock/plugins/helpers/inventory.py:128:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:37:1: W191 indentation contains tabs
^
data = rep.read().decode('utf-8')
spock/plugins/helpers/inventory.py:129:1: W191 indentation contains tabs
^
def inventory_slots(self):
spock/mcp/yggdrasil.py:38:1: W191 indentation contains tabs
^
return json.loads(data) if data else None
spock/plugins/helpers/inventory.py:130:1: W191 indentation contains tabs
^
return self.slots[-INV_SLOTS_PERSISTENT:-INV_SLOTS_HOTBAR]
spock/mcp/yggdrasil.py:40:1: W191 indentation contains tabs
^
def _ygg_req(self, endpoint, payload):
spock/plugins/helpers/inventory.py:132:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:41:1: W191 indentation contains tabs
^
return self._gen_rep(self._gen_req(endpoint, payload))
spock/plugins/helpers/inventory.py:133:1: W191 indentation contains tabs
^
def hotbar_slots(self):
spock/mcp/yggdrasil.py:43:1: W191 indentation contains tabs
^
#Generate an access token using a username and password
spock/plugins/helpers/inventory.py:134:1: W191 indentation contains tabs
^
return self.slots[-INV_SLOTS_HOTBAR:]
spock/mcp/yggdrasil.py:43:2: E265 block comment should start with '# '
^
#Generate an access token using a username and password
spock/plugins/helpers/inventory.py:136:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:44:1: W191 indentation contains tabs
^
#(Any existing client token is invalidated if not provided)
spock/plugins/helpers/inventory.py:137:1: W191 indentation contains tabs
^
def window_slots(self):
spock/mcp/yggdrasil.py:44:2: E265 block comment should start with '# '
^
#(Any existing client token is invalidated if not provided)
spock/plugins/helpers/inventory.py:139:1: W191 indentation contains tabs
^
Useful for searching. """
spock/mcp/yggdrasil.py:45:1: W191 indentation contains tabs
^
#Returns response dict on success, otherwise error dict
spock/plugins/helpers/inventory.py:139:3: E101 indentation contains mixed spaces and tabs
^
Useful for searching. """
spock/mcp/yggdrasil.py:45:2: E265 block comment should start with '# '
#Returns response dict on success, otherwise error dict
^
^
spock/plugins/helpers/inventory.py:140:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:46:1: W191 indentation contains tabs
return self.slots[:-INV_SLOTS_PERSISTENT]
def authenticate(self, username=None, password=None, client_token=None):
^
^
spock/plugins/helpers/inventory.py:143:1: E302 expected 2 blank lines, found 1
spock/mcp/yggdrasil.py:47:1: W191 indentation contains tabs
class InventoryPlayer(InventoryBase):
endpoint = '/authenticate'
^
^
spock/plugins/helpers/inventory.py:144:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:48:1: W191 indentation contains tabs
""" The player's inventory is always open when no other window is open. """
payload = {
^
^
spock/plugins/helpers/inventory.py:146:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:49:1: W191 indentation contains tabs
name = 'Inventory'
'agent': {
^
^
spock/plugins/helpers/inventory.py:148:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:50:1: W191 indentation contains tabs
def __init__(self, persistent_slots=None):
'name': 'Minecraft',
^
^
spock/mcp/yggdrasil.py:51:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:149:1: W191 indentation contains tabs
'version': 1,
if persistent_slots is None:
^
^
spock/mcp/yggdrasil.py:52:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:150:1: W191 indentation contains tabs
},
persistent_slots = [Slot(self, slot_nr) for slot_nr in range(INV_SLOTS_PERSISTENT)]
^
^
spock/plugins/helpers/inventory.py:150:80: E501 line too long (86 > 79 characters)
spock/mcp/yggdrasil.py:53:1: W191 indentation contains tabs
persistent_slots = [Slot(self, slot_nr) for slot_nr in range(INV_SLOTS_PERSISTENT)]
}
^
spock/mcp/yggdrasil.py:54:1: W191 indentation contains tabs
^
if username:
spock/plugins/helpers/inventory.py:151:1: W191 indentation contains tabs
^
super(self.__class__, self).__init__('player', INV_WINID_PLAYER, self.name, INV_SLOTS_PLAYER, persistent_slots) # TODO title should be in chat format
spock/mcp/yggdrasil.py:55:1: W191 indentation contains tabs
^
self.username = username
spock/plugins/helpers/inventory.py:151:80: E501 line too long (152 > 79 characters)
^
super(self.__class__, self).__init__('player', INV_WINID_PLAYER, self.name, INV_SLOTS_PLAYER, persistent_slots) # TODO title should be in chat format
spock/mcp/yggdrasil.py:56:1: W191 indentation contains tabs
payload['username'] = self.username
^
^
spock/mcp/yggdrasil.py:57:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:153:1: W191 indentation contains tabs
if password:
@property
^
^
spock/mcp/yggdrasil.py:58:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:154:1: W191 indentation contains tabs
self.password = password
def craft_result_slot(self):
^
^
spock/plugins/helpers/inventory.py:155:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:59:1: W191 indentation contains tabs
return self.slots[0]
payload['password'] = self.password
^
^
spock/mcp/yggdrasil.py:60:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:157:1: W191 indentation contains tabs
payload['clientToken'] = client_token if client_token else self.client_token
@property
^
^
spock/mcp/yggdrasil.py:61:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:158:1: W191 indentation contains tabs
rep = self._ygg_req(endpoint, payload)
def craft_grid_slots(self):
^
^
spock/mcp/yggdrasil.py:62:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:159:1: W191 indentation contains tabs
if rep != None and 'error' not in rep:
return self.slots[1:5]
^
^
spock/mcp/yggdrasil.py:62:10: E711 comparison to None should be 'if cond is not None:'
spock/plugins/helpers/inventory.py:161:1: W191 indentation contains tabs
if rep != None and 'error' not in rep:
@property
^
^
spock/plugins/helpers/inventory.py:162:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:63:1: W191 indentation contains tabs
def armor_slots(self):
self.access_token = rep['accessToken']
^
^
spock/plugins/helpers/inventory.py:163:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:64:1: W191 indentation contains tabs
return self.slots[5:9]
self.client_token = rep['clientToken']
^
^
spock/mcp/yggdrasil.py:65:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:165:1: E302 expected 2 blank lines, found 1
return rep
@map_window_type('minecraft:chest')
^
^
spock/mcp/yggdrasil.py:67:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:167:1: W191 indentation contains tabs
#Generate an access token with a client/access token pair
""" Small, large, and glitched-out superlarge chests. """
^
^
spock/mcp/yggdrasil.py:67:2: E265 block comment should start with '# '
spock/plugins/helpers/inventory.py:169:1: W191 indentation contains tabs
#Generate an access token with a client/access token pair
name = 'Chest'
^
^
spock/plugins/helpers/inventory.py:171:1: E302 expected 2 blank lines, found 1
spock/mcp/yggdrasil.py:68:1: W191 indentation contains tabs
@map_window_type('minecraft:crafting_table')
#(The used access token is invalidated)
^
^
spock/mcp/yggdrasil.py:68:2: E265 block comment should start with '# '
spock/plugins/helpers/inventory.py:173:1: W191 indentation contains tabs
#(The used access token is invalidated)
name = 'Workbench'
^
^
spock/plugins/helpers/inventory.py:175:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:69:1: W191 indentation contains tabs
@property
#Returns response dict on success, otherwise error dict
^
^
spock/mcp/yggdrasil.py:69:2: E265 block comment should start with '# '
spock/plugins/helpers/inventory.py:176:1: W191 indentation contains tabs
#Returns response dict on success, otherwise error dict
def craft_result_slot(self):
^
^
spock/plugins/helpers/inventory.py:177:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:70:1: W191 indentation contains tabs
return self.slots[0]
def refresh(self, client_token=None, access_token=None):
^
^
spock/mcp/yggdrasil.py:71:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:179:1: W191 indentation contains tabs
endpoint = '/refresh'
@property
^
^
spock/mcp/yggdrasil.py:72:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:180:1: W191 indentation contains tabs
payload = {}
def craft_grid_slots(self):
^
^
spock/plugins/helpers/inventory.py:181:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:73:1: W191 indentation contains tabs
return self.slots[1:10]
payload['accessToken'] = access_token if access_token else self.access_token
^
^
spock/plugins/helpers/inventory.py:183:1: W191 indentation contains tabs
spock/mcp/yggdrasil.py:74:1: W191 indentation contains tabs
# TODO crafting recipes? might be done in other plugin, as this is very complex
payload['clientToken'] = client_token if client_token else self.client_token
^
^
spock/mcp/yggdrasil.py:75:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:183:80: E501 line too long (80 > 79 characters)
rep = self._ygg_req(endpoint, payload)
# TODO crafting recipes? might be done in other plugin, as this is very complex
^
spock/mcp/yggdrasil.py:76:1: W191 indentation contains tabs
^
if 'error' not in rep:
spock/plugins/helpers/inventory.py:185:1: E302 expected 2 blank lines, found 1
^
@map_window_type('minecraft:furnace')
spock/mcp/yggdrasil.py:77:1: W191 indentation contains tabs
^
self.access_token = rep['accessToken']
spock/plugins/helpers/inventory.py:187:1: W191 indentation contains tabs
^
name = 'Furnace'
spock/mcp/yggdrasil.py:78:1: W191 indentation contains tabs
^
self.client_token = rep['clientToken']
spock/plugins/helpers/inventory.py:189:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:79:1: W191 indentation contains tabs
^
return rep
spock/plugins/helpers/inventory.py:190:1: W191 indentation contains tabs
^
def smelted_slot(self):
spock/mcp/yggdrasil.py:81:1: W191 indentation contains tabs
^
#Invalidate access tokens with a username and password
spock/plugins/helpers/inventory.py:191:1: W191 indentation contains tabs
^
return self.slots[0]
spock/mcp/yggdrasil.py:81:2: E265 block comment should start with '# '
^
#Invalidate access tokens with a username and password
spock/plugins/helpers/inventory.py:193:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:82:1: W191 indentation contains tabs
^
#Returns None on success, otherwise error dict
spock/plugins/helpers/inventory.py:194:1: W191 indentation contains tabs
^
def fuel_slot(self):
spock/mcp/yggdrasil.py:82:2: E265 block comment should start with '# '
^
#Returns None on success, otherwise error dict
spock/plugins/helpers/inventory.py:195:1: W191 indentation contains tabs
^
return self.slots[1]
spock/mcp/yggdrasil.py:83:1: W191 indentation contains tabs
^
def signout(self, username=None, password=None):
spock/plugins/helpers/inventory.py:197:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:84:1: W191 indentation contains tabs
^
endpoint = '/signout'
spock/plugins/helpers/inventory.py:198:1: W191 indentation contains tabs
^
def result_slot(self):
spock/mcp/yggdrasil.py:85:1: W191 indentation contains tabs
^
payload = {}
spock/plugins/helpers/inventory.py:199:1: W191 indentation contains tabs
^
return self.slots[2]
spock/mcp/yggdrasil.py:86:1: W191 indentation contains tabs
^
payload['username'] = username if username else self.username
spock/plugins/helpers/inventory.py:201:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:87:1: W191 indentation contains tabs
^
payload['password'] = password if password else self.password
spock/plugins/helpers/inventory.py:202:1: W191 indentation contains tabs
^
def progress(self):
spock/mcp/yggdrasil.py:88:1: W191 indentation contains tabs
^
return self._ygg_req(endpoint, payload)
spock/plugins/helpers/inventory.py:203:1: W191 indentation contains tabs
^
return self.properties[0]
spock/mcp/yggdrasil.py:90:1: W191 indentation contains tabs
^
#Invalidate access tokens with a client/access token pair
spock/plugins/helpers/inventory.py:205:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:90:2: E265 block comment should start with '# '
^
#Invalidate access tokens with a client/access token pair
spock/plugins/helpers/inventory.py:206:1: W191 indentation contains tabs
^
def fuel_time(self):
spock/mcp/yggdrasil.py:91:1: W191 indentation contains tabs
^
#Returns None on success, otherwise error dict
spock/plugins/helpers/inventory.py:207:1: W191 indentation contains tabs
^
return self.properties[1]
spock/mcp/yggdrasil.py:91:2: E265 block comment should start with '# '
^
#Returns None on success, otherwise error dict
spock/plugins/helpers/inventory.py:209:1: E302 expected 2 blank lines, found 1
^
@map_window_type('minecraft:dispenser')
spock/mcp/yggdrasil.py:92:1: W191 indentation contains tabs
^
def invalidate(self, client_token=None, access_token=None):
spock/plugins/helpers/inventory.py:211:1: W191 indentation contains tabs
^
name = 'Dispenser'
spock/mcp/yggdrasil.py:93:1: W191 indentation contains tabs
endpoint = '/invalidate'
^
^
spock/plugins/helpers/inventory.py:213:1: E302 expected 2 blank lines, found 1
@map_window_type('minecraft:enchanting_table')
spock/mcp/yggdrasil.py:94:1: W191 indentation contains tabs
payload = {}
^
^
spock/plugins/helpers/inventory.py:215:1: W191 indentation contains tabs
name = 'Encantment Table'
spock/mcp/yggdrasil.py:95:1: W191 indentation contains tabs
payload['accessToken'] = access_token if access_token else self.access_token
^
^
spock/plugins/helpers/inventory.py:217:1: W191 indentation contains tabs
@property
spock/mcp/yggdrasil.py:96:1: W191 indentation contains tabs
^
payload['clientToken'] = client_token if client_token else self.client_token
spock/plugins/helpers/inventory.py:218:1: W191 indentation contains tabs
^
def enchanted_slot(self):
spock/mcp/yggdrasil.py:97:1: W191 indentation contains tabs
^
return self._ygg_req(endpoint, payload)
spock/plugins/helpers/inventory.py:219:1: W191 indentation contains tabs
^
return self.slots[0]
spock/mcp/yggdrasil.py:99:1: W191 indentation contains tabs
^
#Check if an access token is valid
spock/plugins/helpers/inventory.py:221:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:99:2: E265 block comment should start with '# '
^
#Check if an access token is valid
spock/plugins/helpers/inventory.py:222:1: W191 indentation contains tabs
^
def lapis_slot(self):
spock/mcp/yggdrasil.py:100:1: W191 indentation contains tabs
^
#Returns None on success (ie valid access token), otherwise error dict
spock/plugins/helpers/inventory.py:223:1: W191 indentation contains tabs
^
return self.slots[1]
spock/mcp/yggdrasil.py:100:2: E265 block comment should start with '# '
^
#Returns None on success (ie valid access token), otherwise error dict
spock/plugins/helpers/inventory.py:225:1: W191 indentation contains tabs
^
# TODO enchanting
spock/mcp/yggdrasil.py:101:1: W191 indentation contains tabs
^
def validate(self, access_token=None):
spock/plugins/helpers/inventory.py:227:1: E302 expected 2 blank lines, found 1
^
@map_window_type('minecraft:brewing_stand')
spock/mcp/yggdrasil.py:102:1: W191 indentation contains tabs
^
endpoint = '/validate'
spock/plugins/helpers/inventory.py:229:1: W191 indentation contains tabs
^
name = 'Brewing Stand'
spock/mcp/yggdrasil.py:103:1: W191 indentation contains tabs
^
payload = {}
spock/plugins/helpers/inventory.py:231:1: W191 indentation contains tabs
^
@property
spock/mcp/yggdrasil.py:104:1: W191 indentation contains tabs
^
payload['accessToken'] = access_token if access_token else self.access_token
spock/plugins/helpers/inventory.py:232:1: W191 indentation contains tabs
^
def ingredient_slot(self):
spock/mcp/yggdrasil.py:105:1: W191 indentation contains tabs
^
return self._ygg_req(endpoint, payload)
spock/plugins/helpers/inventory.py:233:1: W191 indentation contains tabs
^
return self.slots[0]
^
spock/plugins/helpers/inventory.py:235:1: W191 indentation contains tabs
@property
^
spock/plugins/helpers/inventory.py:236:1: W191 indentation contains tabs
def result_slots(self):
^
spock/plugins/helpers/inventory.py:237:1: W191 indentation contains tabs
return self.slots[1:4]
^
spock/plugins/helpers/inventory.py:239:1: W191 indentation contains tabs
@property
^
spock/plugins/helpers/inventory.py:240:1: W191 indentation contains tabs
def brew_time(self):
^
spock/plugins/helpers/inventory.py:241:1: W191 indentation contains tabs
return self.properties[0]
^
spock/plugins/helpers/inventory.py:243:1: E302 expected 2 blank lines, found 1
@map_window_type('minecraft:villager')
tests/plugins/test_plugin_base.py:2:1: I201 Missing newline before sections or imports.
^
from spock.plugins.base import PluginBase
spock/plugins/helpers/inventory.py:245:1: W191 indentation contains tabs
name = 'NPC Trade'
^
^
tests/plugins/test_plugin_base.py:4:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/inventory.py:247:1: W191 indentation contains tabs
class PluginLoaderMock(object):
# TODO NPC slot getters
^
^
tests/plugins/test_plugin_base.py:5:1: W191 indentation contains tabs
events = {}
spock/plugins/helpers/inventory.py:248:1: W191 indentation contains tabs
^
# TODO trading
tests/plugins/test_plugin_base.py:7:1: W191 indentation contains tabs
^
def requires(self, *args, **kwargs):
spock/plugins/helpers/inventory.py:250:1: E302 expected 2 blank lines, found 1
^
@map_window_type('minecraft:beacon')
tests/plugins/test_plugin_base.py:8:1: W191 indentation contains tabs
^
return True
spock/plugins/helpers/inventory.py:252:1: W191 indentation contains tabs
^
name = 'Beacon'
tests/plugins/test_plugin_base.py:10:1: W191 indentation contains tabs
^
def reg_event_handler(self, event, handler):
spock/plugins/helpers/inventory.py:254:1: W191 indentation contains tabs
^
@property
tests/plugins/test_plugin_base.py:11:1: W191 indentation contains tabs
^
self.events[event] = [] if event not in self.events else self.events[event]
spock/plugins/helpers/inventory.py:255:1: W191 indentation contains tabs
^
def input_slot(self):
tests/plugins/test_plugin_base.py:12:1: W191 indentation contains tabs
^
self.events[event].append(handler)
^
spock/plugins/helpers/inventory.py:256:1: W191 indentation contains tabs
tests/plugins/test_plugin_base.py:14:1: E302 expected 2 blank lines, found 1
return self.slots[0]
class TestPluginBase(PluginBase):
^
^
spock/plugins/helpers/inventory.py:258:1: W191 indentation contains tabs
@property
tests/plugins/test_plugin_base.py:15:1: W191 indentation contains tabs
^
requires = ('Net', 'Auth')
spock/plugins/helpers/inventory.py:259:1: W191 indentation contains tabs
^
def level(self):
tests/plugins/test_plugin_base.py:16:1: W191 indentation contains tabs
^
defaults = {'foo': 'bar'}
spock/plugins/helpers/inventory.py:260:1: W191 indentation contains tabs
return self.properties[0]
^
^
tests/plugins/test_plugin_base.py:17:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:262:1: W191 indentation contains tabs
events = {'test': 'callback'}
@property
^
^
spock/plugins/helpers/inventory.py:263:1: W191 indentation contains tabs
tests/plugins/test_plugin_base.py:19:1: W191 indentation contains tabs
def effect_one(self):
def callback(self):
^
^
spock/plugins/helpers/inventory.py:264:1: W191 indentation contains tabs
return self.properties[1]
tests/plugins/test_plugin_base.py:20:1: W191 indentation contains tabs
^
pass
spock/plugins/helpers/inventory.py:266:1: W191 indentation contains tabs
^
@property
^
tests/plugins/test_plugin_base.py:22:1: E302 expected 2 blank lines, found 1
spock/plugins/helpers/inventory.py:267:1: W191 indentation contains tabs
class PluginBaseTest(TestCase):
def effect_two(self):
^
^
spock/plugins/helpers/inventory.py:268:1: W191 indentation contains tabs
tests/plugins/test_plugin_base.py:23:1: W191 indentation contains tabs
return self.properties[2]
def setUp(self):
^
^
spock/plugins/helpers/inventory.py:270:1: W191 indentation contains tabs
# TODO choosing/applying the effect
tests/plugins/test_plugin_base.py:24:1: W191 indentation contains tabs
^
self.ploader = PluginLoaderMock()
spock/plugins/helpers/inventory.py:272:1: E302 expected 2 blank lines, found 1
^
@map_window_type('minecraft:anvil')
^
tests/plugins/test_plugin_base.py:25:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:274:1: W191 indentation contains tabs
self.plug = TestPluginBase(self.ploader, {})
name = 'Anvil'
^
^
spock/plugins/helpers/inventory.py:276:1: W191 indentation contains tabs
tests/plugins/test_plugin_base.py:27:1: W191 indentation contains tabs
# TODO anvil slot getters
def tearDown(self):
^
^
spock/plugins/helpers/inventory.py:278:1: W191 indentation contains tabs
@property
tests/plugins/test_plugin_base.py:28:1: W191 indentation contains tabs
^
delattr(self, 'ploader')
spock/plugins/helpers/inventory.py:279:1: W191 indentation contains tabs
^
def max_cost(self):
^
tests/plugins/test_plugin_base.py:29:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:280:1: W191 indentation contains tabs
delattr(self, 'plug')
return self.properties[0]
^
^
tests/plugins/test_plugin_base.py:31:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:282:1: E302 expected 2 blank lines, found 1
def test_requirements_get_loaded(self):
@map_window_type('minecraft:hopper')
^
^
tests/plugins/test_plugin_base.py:32:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:284:1: W191 indentation contains tabs
self.assertTrue(getattr(self.plug, 'net', False))
name = 'Hopper'
^
^
tests/plugins/test_plugin_base.py:33:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:286:1: E302 expected 2 blank lines, found 1
self.assertTrue(getattr(self.plug, 'auth', False))
@map_window_type('minecraft:dropper')
^
^
tests/plugins/test_plugin_base.py:35:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:288:1: W191 indentation contains tabs
def test_default_settings_applied(self):
name = 'Dropper'
^
^
tests/plugins/test_plugin_base.py:36:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:290:1: E302 expected 2 blank lines, found 1
# Only assert that settings are set. Checking whether settings and
@map_window_type('EntityHorse')
^
^
tests/plugins/test_plugin_base.py:37:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:292:1: W191 indentation contains tabs
# defaults merge correctly should be tested in
name = 'Horse'
^
^
tests/plugins/test_plugin_base.py:38:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:294:1: W191 indentation contains tabs
# spock.utils.get_settings.
def __init__(self, eid=0, **args):
^
^
tests/plugins/test_plugin_base.py:39:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:295:1: W191 indentation contains tabs
self.assertEqual(self.plug.settings['foo'], 'bar')
super(self.__class__, self).__init__(**args)
^
^
tests/plugins/test_plugin_base.py:41:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:296:1: W191 indentation contains tabs
def test_event_listeners_registration_succeeds(self):
self.horse_entity_id = eid
^
^
tests/plugins/test_plugin_base.py:42:1: W191 indentation contains tabs
spock/plugins/helpers/inventory.py:298:1: W191 indentation contains tabs
self.assertIn(self.plug.callback, self.ploader.events['test'])
# TODO horse slot getters
^
^
tests/plugins/test_plugin_base.py:42:65: W292 no newline at end of file
spock/plugins/helpers/inventory.py:300:1: E302 expected 2 blank lines, found 1
self.assertIn(self.plug.callback, self.ploader.events['test'])
class BaseClick:
^
^
spock/plugins/helpers/inventory.py:301:1: W191 indentation contains tabs
def get_packet(self, inv_plugin):
^
spock/plugins/helpers/inventory.py:303:1: W191 indentation contains tabs
Called by send_click() to prepare the sent packet.
^
spock/plugins/helpers/inventory.py:304:1: W191 indentation contains tabs
Abstract method.
^
spock/plugins/helpers/inventory.py:305:1: W191 indentation contains tabs
:param inv_plugin: inventory plugin instance, to get slot contents etc.
^
spock/plugins/helpers/inventory.py:306:1: W191 indentation contains tabs
"""
^
spock/plugins/helpers/inventory.py:307:1: W191 indentation contains tabs
raise NotImplementedError()
^
spock/plugins/helpers/inventory.py:309:1: W191 indentation contains tabs
def apply(self, inv_plugin):
^
spock/plugins/helpers/inventory.py:311:1: W191 indentation contains tabs
Called by on_success().
^
spock/plugins/helpers/inventory.py:312:1: W191 indentation contains tabs
Abstract method.
^
spock/plugins/helpers/inventory.py:313:1: W191 indentation contains tabs
:param inv_plugin: inventory plugin instance, to set slot contents etc.
^
spock/plugins/helpers/inventory.py:314:1: W191 indentation contains tabs
"""
^
spock/plugins/helpers/inventory.py:315:1: W191 indentation contains tabs
raise NotImplementedError()
^
spock/plugins/helpers/inventory.py:317:1: W191 indentation contains tabs
def on_success(self, inv_plugin, emit_set_slot):
^
spock/plugins/helpers/inventory.py:319:1: W191 indentation contains tabs
Called when the click was successful and should be applied to the inventory.
^
spock/plugins/helpers/inventory.py:320:1: W191 indentation contains tabs
:param inv_plugin: inventory plugin instance, to set slot contents etc.
^
spock/plugins/helpers/inventory.py:321:1: W191 indentation contains tabs
:param emit_set_slot: function to signal a slot change, should be InventoryPlugin's emit_set_slot()
^
spock/plugins/helpers/inventory.py:321:80: E501 line too long (101 > 79 characters)
:param emit_set_slot: function to signal a slot change, should be InventoryPlugin's emit_set_slot()
^
spock/plugins/helpers/inventory.py:322:1: W191 indentation contains tabs
"""
^
spock/plugins/helpers/inventory.py:323:1: W191 indentation contains tabs
self.dirty = set()
^
spock/plugins/helpers/inventory.py:324:1: W191 indentation contains tabs
self.apply(inv_plugin)
^
spock/plugins/helpers/inventory.py:325:1: W191 indentation contains tabs
for changed_slot in self.dirty:
^
spock/plugins/helpers/inventory.py:326:1: W191 indentation contains tabs
emit_set_slot(changed_slot)
^
spock/plugins/helpers/inventory.py:328:1: W191 indentation contains tabs
# helper methods, used by children
^
spock/plugins/helpers/inventory.py:329:1: W191 indentation contains tabs
# all argument instances are modified in-place
^
spock/plugins/helpers/inventory.py:331:1: W191 indentation contains tabs
def copy_slot_type(self, slot_from, slot_to):
^
spock/plugins/helpers/inventory.py:332:1: W191 indentation contains tabs
slot_to.item_id, slot_to.damage, slot_to.nbt = slot_from.item_id, slot_from.damage, slot_from.nbt
^
spock/plugins/helpers/inventory.py:332:80: E501 line too long (99 > 79 characters)
slot_to.item_id, slot_to.damage, slot_to.nbt = slot_from.item_id, slot_from.damage, slot_from.nbt
^
spock/plugins/helpers/inventory.py:333:1: W191 indentation contains tabs
self.mark_dirty(slot_to)
^
spock/plugins/helpers/inventory.py:335:1: W191 indentation contains tabs
def swap_slots(self, slot_a, slot_b):
^
spock/plugins/helpers/inventory.py:336:1: W191 indentation contains tabs
slot_a.item_id, slot_b.item_id = slot_b.item_id, slot_a.item_id
^
spock/plugins/helpers/inventory.py:337:1: W191 indentation contains tabs
slot_a.damage, slot_b.damage = slot_b.damage, slot_a.damage
^
spock/plugins/helpers/inventory.py:337:32: E221 multiple spaces before operator
slot_a.damage, slot_b.damage = slot_b.damage, slot_a.damage
^
spock/plugins/helpers/inventory.py:338:1: W191 indentation contains tabs
slot_a.amount, slot_b.amount = slot_b.amount, slot_a.amount
^
spock/plugins/helpers/inventory.py:338:32: E221 multiple spaces before operator
slot_a.amount, slot_b.amount = slot_b.amount, slot_a.amount
^
spock/plugins/helpers/inventory.py:339:1: W191 indentation contains tabs
slot_a.nbt, slot_b.nbt = slot_b.nbt, slot_a.nbt
^
spock/plugins/helpers/inventory.py:339:29: E221 multiple spaces before operator
slot_a.nbt, slot_b.nbt = slot_b.nbt, slot_a.nbt
^
spock/plugins/helpers/inventory.py:340:1: W191 indentation contains tabs
self.mark_dirty(slot_a)
^
spock/plugins/helpers/inventory.py:341:1: W191 indentation contains tabs
self.mark_dirty(slot_b)
^
spock/plugins/helpers/inventory.py:343:1: W191 indentation contains tabs
def transfer(self, from_slot, to_slot, max_amount):
^
spock/plugins/helpers/inventory.py:344:1: W191 indentation contains tabs
transfer_amount = min(max_amount, from_slot.amount, to_slot.max_amount - to_slot.amount)
^
spock/plugins/helpers/inventory.py:344:80: E501 line too long (90 > 79 characters)
transfer_amount = min(max_amount, from_slot.amount, to_slot.max_amount - to_slot.amount)
^
spock/plugins/helpers/inventory.py:345:1: W191 indentation contains tabs
if transfer_amount <= 0: return
^
spock/plugins/helpers/inventory.py:345:26: E701 multiple statements on one line (colon)
if transfer_amount <= 0: return
^
spock/plugins/helpers/inventory.py:346:1: W191 indentation contains tabs
self.copy_slot_type(from_slot, to_slot)
^
spock/plugins/helpers/inventory.py:347:1: W191 indentation contains tabs
to_slot.amount += transfer_amount
^
spock/plugins/helpers/inventory.py:348:1: W191 indentation contains tabs
from_slot.amount -= transfer_amount
^
spock/plugins/helpers/inventory.py:349:1: W191 indentation contains tabs
self.cleanup_if_empty(from_slot)
^
spock/plugins/helpers/inventory.py:351:1: W191 indentation contains tabs
def cleanup_if_empty(self, slot):
^
spock/plugins/helpers/inventory.py:352:1: W191 indentation contains tabs
if slot.is_empty():
^
spock/plugins/helpers/inventory.py:353:1: W191 indentation contains tabs
empty_slot_at_same_position = Slot(slot.window, slot.slot_nr)
^
spock/plugins/helpers/inventory.py:354:1: W191 indentation contains tabs
self.copy_slot_type(empty_slot_at_same_position, slot)
^
spock/plugins/helpers/inventory.py:355:1: W191 indentation contains tabs
self.mark_dirty(slot)
^
spock/plugins/helpers/inventory.py:357:1: W191 indentation contains tabs
def mark_dirty(self, slot):
^
spock/plugins/helpers/inventory.py:358:1: W191 indentation contains tabs
self.dirty.add(slot)
^
spock/plugins/helpers/inventory.py:360:1: E302 expected 2 blank lines, found 1
class SingleClick(BaseClick):
^
spock/plugins/helpers/inventory.py:361:1: W191 indentation contains tabs
def __init__(self, slot, button=INV_BUTTON_LEFT):
^
spock/plugins/helpers/inventory.py:362:1: W191 indentation contains tabs
self.slot = slot
^
spock/plugins/helpers/inventory.py:363:1: W191 indentation contains tabs
self.button= button
^
spock/plugins/helpers/inventory.py:363:14: E225 missing whitespace around operator
self.button= button
^
spock/plugins/helpers/inventory.py:364:1: W191 indentation contains tabs
if button not in (INV_BUTTON_LEFT, INV_BUTTON_RIGHT):
^
spock/plugins/helpers/inventory.py:365:1: W191 indentation contains tabs
raise NotImplementedError('Clicking with button %s not implemented' % button)
^
spock/plugins/helpers/inventory.py:365:80: E501 line too long (80 > 79 characters)
raise NotImplementedError('Clicking with button %s not implemented' % button)
^
spock/plugins/helpers/inventory.py:367:1: W191 indentation contains tabs
def get_packet(self, inv_plugin):
^
spock/plugins/helpers/inventory.py:368:1: W191 indentation contains tabs
return {
^
spock/plugins/helpers/inventory.py:369:1: W191 indentation contains tabs
'slot': self.slot.slot_nr,
^
spock/plugins/helpers/inventory.py:370:1: W191 indentation contains tabs
'button': self.button,
^
spock/plugins/helpers/inventory.py:371:1: W191 indentation contains tabs
'mode': 0,
^
spock/plugins/helpers/inventory.py:372:1: W191 indentation contains tabs
'clicked_item': self.slot.get_dict(),
^
spock/plugins/helpers/inventory.py:373:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/inventory.py:375:1: W191 indentation contains tabs
def apply(self, inv_plugin):
^
spock/plugins/helpers/inventory.py:376:1: W191 indentation contains tabs
clicked = self.slot
^
spock/plugins/helpers/inventory.py:377:1: W191 indentation contains tabs
cursor = inv_plugin.cursor_slot
^
spock/plugins/helpers/inventory.py:378:1: W191 indentation contains tabs
if self.button == INV_BUTTON_LEFT:
^
spock/plugins/helpers/inventory.py:379:1: W191 indentation contains tabs
if clicked.stacks_with(cursor):
^
spock/plugins/helpers/inventory.py:380:1: W191 indentation contains tabs
self.transfer(cursor, clicked, cursor.amount)
^
spock/plugins/helpers/inventory.py:381:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/inventory.py:382:1: W191 indentation contains tabs
self.swap_slots(cursor, clicked)
^
spock/plugins/helpers/inventory.py:383:1: W191 indentation contains tabs
elif self.button == INV_BUTTON_RIGHT:
^
spock/plugins/helpers/inventory.py:384:1: W191 indentation contains tabs
if cursor.item_id == INV_ITEMID_EMPTY:
^
spock/plugins/helpers/inventory.py:385:1: W191 indentation contains tabs
# transfer half, round up
^
spock/plugins/helpers/inventory.py:386:1: W191 indentation contains tabs
self.transfer(clicked, cursor, (clicked.amount+1) // 2)
^
spock/plugins/helpers/inventory.py:387:1: W191 indentation contains tabs
elif clicked.is_empty() or clicked.stacks_with(cursor):
^
spock/plugins/helpers/inventory.py:388:1: W191 indentation contains tabs
self.transfer(cursor, clicked, 1)
^
spock/plugins/helpers/inventory.py:389:1: W191 indentation contains tabs
else: # slot items do not stack
^
spock/plugins/helpers/inventory.py:390:1: W191 indentation contains tabs
self.swap_slots(cursor, clicked)
^
spock/plugins/helpers/inventory.py:391:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/inventory.py:392:1: W191 indentation contains tabs
raise NotImplementedError('Clicking with button %s not implemented' % self.button)
^
spock/plugins/helpers/inventory.py:392:80: E501 line too long (85 > 79 characters)
raise NotImplementedError('Clicking with button %s not implemented' % self.button)
^
spock/plugins/helpers/inventory.py:394:1: E302 expected 2 blank lines, found 1
class DropClick(BaseClick):
^
spock/plugins/helpers/inventory.py:395:1: W191 indentation contains tabs
def __init__(self, slot, drop_stack=False):
^
spock/plugins/helpers/inventory.py:396:1: W191 indentation contains tabs
self.slot = slot
^
spock/plugins/helpers/inventory.py:397:1: W191 indentation contains tabs
self.drop_stack = drop_stack
^
spock/plugins/helpers/inventory.py:399:1: W191 indentation contains tabs
def get_packet(self, inv_plugin):
^
spock/plugins/helpers/inventory.py:400:1: W191 indentation contains tabs
if inv_plugin.cursor_slot.item_id != INV_ITEMID_EMPTY:
^
spock/plugins/helpers/inventory.py:401:1: W191 indentation contains tabs
return None # can't drop while holding an item
^
spock/plugins/helpers/inventory.py:402:1: W191 indentation contains tabs
return {
^
spock/plugins/helpers/inventory.py:403:1: W191 indentation contains tabs
'slot': self.slot.slot_nr,
^
spock/plugins/helpers/inventory.py:404:1: W191 indentation contains tabs
'button': 1 if self.drop_stack else 0,
^
spock/plugins/helpers/inventory.py:405:1: W191 indentation contains tabs
'mode': 4,
^
spock/plugins/helpers/inventory.py:406:1: W191 indentation contains tabs
'clicked_item': inv_plugin.cursor_slot.get_dict(),
^
spock/plugins/helpers/inventory.py:407:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/inventory.py:409:1: W191 indentation contains tabs
def apply(self, inv_plugin):
^
spock/plugins/helpers/inventory.py:410:1: W191 indentation contains tabs
if inv_plugin.cursor_slot.is_empty():
^
spock/plugins/helpers/inventory.py:411:1: W191 indentation contains tabs
if self.drop_stack:
^
spock/plugins/helpers/inventory.py:412:1: W191 indentation contains tabs
self.slot.amount = 0
^
spock/plugins/helpers/inventory.py:413:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/inventory.py:414:1: W191 indentation contains tabs
self.slot.amount -= 1
^
spock/plugins/helpers/inventory.py:415:1: W191 indentation contains tabs
self.cleanup_if_empty(self.slot)
^
spock/plugins/helpers/inventory.py:416:1: W191 indentation contains tabs
# else: can't drop while holding an item
^
spock/plugins/helpers/inventory.py:418:1: E302 expected 2 blank lines, found 1
class InventoryCore:
^
spock/plugins/helpers/inventory.py:419:1: W191 indentation contains tabs
""" Handles operations with the player inventory. """
^
spock/plugins/helpers/inventory.py:421:1: W191 indentation contains tabs
def __init__(self, net_plugin, send_click):
^
spock/plugins/helpers/inventory.py:422:1: W191 indentation contains tabs
self._net = net_plugin
^
spock/plugins/helpers/inventory.py:423:1: W191 indentation contains tabs
self.send_click = send_click
^
spock/plugins/helpers/inventory.py:424:1: W191 indentation contains tabs
self.active_slot_nr = 0
^
spock/plugins/helpers/inventory.py:425:1: W191 indentation contains tabs
self.cursor_slot = SlotCursor() # the slot that moves with the mouse when clicking a slot
^
spock/plugins/helpers/inventory.py:425:80: E501 line too long (92 > 79 characters)
self.cursor_slot = SlotCursor() # the slot that moves with the mouse when clicking a slot
^
spock/plugins/helpers/inventory.py:426:1: W191 indentation contains tabs
self.window = InventoryPlayer()
^
spock/plugins/helpers/inventory.py:428:1: W191 indentation contains tabs
def total_stored(self, item_id, meta=-1, slots=None):
^
spock/plugins/helpers/inventory.py:430:1: W191 indentation contains tabs
Calculates the total number of items of that type
^
spock/plugins/helpers/inventory.py:431:1: W191 indentation contains tabs
in the current window or given slot range.
^
spock/plugins/helpers/inventory.py:432:1: W191 indentation contains tabs
"""
^
spock/plugins/helpers/inventory.py:433:1: W191 indentation contains tabs
wanted = lambda s: item_id == s.item_id and meta in (-1, s.damage)
^
spock/plugins/helpers/inventory.py:434:1: W191 indentation contains tabs
amount = 0
^
spock/plugins/helpers/inventory.py:435:1: W191 indentation contains tabs
for slot in slots or self.window.slots:
^
spock/plugins/helpers/inventory.py:436:1: W191 indentation contains tabs
if wanted(slot):
^
spock/plugins/helpers/inventory.py:437:1: W191 indentation contains tabs
amount += slot.amount
^
spock/plugins/helpers/inventory.py:438:1: W191 indentation contains tabs
return amount
^
spock/plugins/helpers/inventory.py:440:1: W191 indentation contains tabs
def find_slot(self, item_id, meta=-1, start=0):
^
spock/plugins/helpers/inventory.py:442:1: W191 indentation contains tabs
Returns the first slot containing the item or None if not found.
^
spock/plugins/helpers/inventory.py:443:1: W191 indentation contains tabs
Searches active hotbar slot, hotbar, inventory, open window in this order.
^
spock/plugins/helpers/inventory.py:444:1: W191 indentation contains tabs
Skips the first `start` slots of the current window.
^
spock/plugins/helpers/inventory.py:445:1: W191 indentation contains tabs
"""
^
spock/plugins/helpers/inventory.py:448:8: E127 continuation line over-indented for visual indent
and item_id == s.item_id \
^
spock/plugins/helpers/inventory.py:449:1: W191 indentation contains tabs
and meta in (-1, s.damage)
^
spock/plugins/helpers/inventory.py:449:8: E127 continuation line over-indented for visual indent
and meta in (-1, s.damage)
^
spock/plugins/helpers/inventory.py:451:1: W191 indentation contains tabs
if wanted(self.active_slot):
^
spock/plugins/helpers/inventory.py:452:1: W191 indentation contains tabs
return self.active_slot
^
spock/plugins/helpers/inventory.py:454:1: W191 indentation contains tabs
for slots in (self.window.hotbar_slots,
^
spock/plugins/helpers/inventory.py:455:1: W191 indentation contains tabs
self.window.inventory_slots,
^
spock/plugins/helpers/inventory.py:455:6: E101 indentation contains mixed spaces and tabs
self.window.inventory_slots,
^
spock/plugins/helpers/inventory.py:455:8: E128 continuation line under-indented for visual indent
self.window.inventory_slots,
^
spock/plugins/helpers/inventory.py:456:1: W191 indentation contains tabs
self.window.window_slots):
^
spock/plugins/helpers/inventory.py:456:6: E101 indentation contains mixed spaces and tabs
self.window.window_slots):
^
spock/plugins/helpers/inventory.py:456:8: E128 continuation line under-indented for visual indent
self.window.window_slots):
^
spock/plugins/helpers/inventory.py:457:1: W191 indentation contains tabs
for slot in slots:
^
spock/plugins/helpers/inventory.py:458:1: W191 indentation contains tabs
if wanted(slot):
^
spock/plugins/helpers/inventory.py:459:1: W191 indentation contains tabs
return slot
^
spock/plugins/helpers/inventory.py:460:1: W191 indentation contains tabs
return None
^
spock/plugins/helpers/inventory.py:462:1: W191 indentation contains tabs
def select_active_slot(self, hotbar_index):
^
spock/plugins/helpers/inventory.py:463:1: W191 indentation contains tabs
assert 0 <= hotbar_index < INV_SLOTS_HOTBAR, 'Invalid hotbar index'
^
spock/plugins/helpers/inventory.py:464:1: W191 indentation contains tabs
if hotbar_index != self.active_slot_nr:
^
spock/plugins/helpers/inventory.py:465:1: W191 indentation contains tabs
self.active_slot_nr = hotbar_index
^
spock/plugins/helpers/inventory.py:466:1: W191 indentation contains tabs
self._net.push_packet('PLAY>Held Item Change', {'slot': hotbar_index})
^
spock/plugins/helpers/inventory.py:468:1: W191 indentation contains tabs
def click_slot(self, slot, right=False):
^
spock/plugins/helpers/inventory.py:469:1: W191 indentation contains tabs
button = INV_BUTTON_RIGHT if right else INV_BUTTON_LEFT
^
spock/plugins/helpers/inventory.py:470:1: W191 indentation contains tabs
return self.send_click(SingleClick(slot, button))
^
spock/plugins/helpers/inventory.py:472:1: W191 indentation contains tabs
def drop_slot(self, slot=None, drop_stack=False):
^
spock/plugins/helpers/inventory.py:473:1: W191 indentation contains tabs
if slot is None: # drop held item
^
spock/plugins/helpers/inventory.py:474:1: W191 indentation contains tabs
slot = self.active_slot
^
spock/plugins/helpers/inventory.py:475:1: W191 indentation contains tabs
return self.send_click(DropClick(slot, drop_stack))
^
spock/plugins/helpers/inventory.py:477:1: W191 indentation contains tabs
def close_window(self):
^
spock/plugins/helpers/inventory.py:478:1: W191 indentation contains tabs
# TODO does the server send a close window, or should we close the window now?
^
spock/plugins/helpers/inventory.py:478:80: E501 line too long (80 > 79 characters)
# TODO does the server send a close window, or should we close the window now?
^
spock/plugins/helpers/inventory.py:479:1: W191 indentation contains tabs
self._net.push_packet('PLAY>Close Window', {'window_id': self.window.window_id})
^
spock/plugins/helpers/inventory.py:479:80: E501 line too long (82 > 79 characters)
self._net.push_packet('PLAY>Close Window', {'window_id': self.window.window_id})
^
spock/plugins/helpers/inventory.py:481:1: W191 indentation contains tabs
def creative_set_slot(self, slot):
^
spock/plugins/helpers/inventory.py:482:1: W191 indentation contains tabs
# TODO test
^
spock/plugins/helpers/inventory.py:483:1: W191 indentation contains tabs
self._net.push_packet('PLAY>Creative Inventory Action', {
^
spock/plugins/helpers/inventory.py:484:1: W191 indentation contains tabs
'slot': slot.slot_nr,
^
spock/plugins/helpers/inventory.py:485:1: W191 indentation contains tabs
'clicked_item': slot.get_dict(),
^
spock/plugins/helpers/inventory.py:486:1: W191 indentation contains tabs
})
^
spock/plugins/helpers/inventory.py:488:1: W191 indentation contains tabs
@property
^
spock/plugins/helpers/inventory.py:489:1: W191 indentation contains tabs
def active_slot(self):
^
spock/plugins/helpers/inventory.py:490:1: W191 indentation contains tabs
return self.window.hotbar_slots[self.active_slot_nr]
^
spock/plugins/helpers/inventory.py:492:1: W191 indentation contains tabs
@property
^
spock/plugins/helpers/inventory.py:493:1: W191 indentation contains tabs
def hotbar_start(self):
^
spock/plugins/helpers/inventory.py:494:1: W191 indentation contains tabs
return self.window.hotbar_slots[0].slot_nr
^
spock/plugins/helpers/inventory.py:496:1: E302 expected 2 blank lines, found 1
@pl_announce('Inventory')
^
spock/plugins/helpers/inventory.py:498:1: W191 indentation contains tabs
requires = ('Event', 'Net', 'Timers')
^
spock/plugins/helpers/inventory.py:499:1: W191 indentation contains tabs
events = {
^
spock/plugins/helpers/inventory.py:500:1: W191 indentation contains tabs
'PLAY<Held Item Change': 'handle_held_item_change',
^
spock/plugins/helpers/inventory.py:501:1: W191 indentation contains tabs
'PLAY<Set Slot': 'handle_set_slot',
^
spock/plugins/helpers/inventory.py:502:1: W191 indentation contains tabs
'PLAY<Window Items': 'handle_window_items',
^
spock/plugins/helpers/inventory.py:503:1: W191 indentation contains tabs
'PLAY<Window Property': 'handle_window_prop',
^
spock/plugins/helpers/inventory.py:504:1: W191 indentation contains tabs
'PLAY<Confirm Transaction': 'handle_confirm_transaction',
^
spock/plugins/helpers/inventory.py:505:1: W191 indentation contains tabs
'PLAY<Open Window': 'handle_open_window',
^
spock/plugins/helpers/inventory.py:506:1: W191 indentation contains tabs
'PLAY<Close Window': 'handle_close_window',
^
spock/plugins/helpers/inventory.py:507:1: W191 indentation contains tabs
# also register to serverbound, as server does not send Close Window when we do
^
spock/plugins/helpers/inventory.py:507:80: E501 line too long (81 > 79 characters)
# also register to serverbound, as server does not send Close Window when we do
^
spock/plugins/helpers/inventory.py:508:1: W191 indentation contains tabs
'PLAY>Close Window': 'handle_close_window',
^
spock/plugins/helpers/inventory.py:509:1: W191 indentation contains tabs
}
^
spock/plugins/helpers/inventory.py:510:1: W191 indentation contains tabs
def __init__(self, ploader, settings):
^
spock/plugins/helpers/inventory.py:510:2: E301 expected 1 blank line, found 0
def __init__(self, ploader, settings):
^
spock/plugins/helpers/inventory.py:511:1: W191 indentation contains tabs
super(self.__class__, self).__init__(ploader, settings)
^
spock/plugins/helpers/inventory.py:513:1: W191 indentation contains tabs
self.inventory = InventoryCore(self.net, self.send_click)
^
spock/plugins/helpers/inventory.py:514:1: W191 indentation contains tabs
ploader.provides('Inventory', self.inventory)
^
spock/plugins/helpers/inventory.py:516:1: W191 indentation contains tabs
# click sending
^
spock/plugins/helpers/inventory.py:517:1: W191 indentation contains tabs
self.action_id = 1 # start at 1 so bool(action_id) is False only for None, see send_click
^
spock/plugins/helpers/inventory.py:517:80: E501 line too long (92 > 79 characters)
self.action_id = 1 # start at 1 so bool(action_id) is False only for None, see send_click
^
spock/plugins/helpers/inventory.py:518:1: W191 indentation contains tabs
self.last_click = None # stores the last click action for confirmation
^
spock/plugins/helpers/inventory.py:520:1: W191 indentation contains tabs
def handle_held_item_change(self, event, packet):
^
spock/plugins/helpers/inventory.py:521:1: W191 indentation contains tabs
self.inventory.active_slot_nr = packet.data['slot']
^
spock/plugins/helpers/inventory.py:522:1: W191 indentation contains tabs
self.event.emit('inv_held_item_change', packet.data)
^
spock/plugins/helpers/inventory.py:524:1: W191 indentation contains tabs
def handle_open_window(self, event, packet):
^
spock/plugins/helpers/inventory.py:525:1: W191 indentation contains tabs
InvType = inv_types[packet.data['inv_type']]
^
spock/plugins/helpers/inventory.py:525:3: N806 variable in function should be lowercase
InvType = inv_types[packet.data['inv_type']]
^
spock/plugins/helpers/inventory.py:526:1: W191 indentation contains tabs
self.inventory.window = InvType(persistent_slots=self.inventory.window.slots, **packet.data)
^
spock/plugins/helpers/inventory.py:526:80: E501 line too long (94 > 79 characters)
self.inventory.window = InvType(persistent_slots=self.inventory.window.slots, **packet.data)
^
spock/plugins/helpers/inventory.py:527:1: W191 indentation contains tabs
self.event.emit('inv_open_window', {'window': self.inventory.window})
^
spock/plugins/helpers/inventory.py:529:1: W191 indentation contains tabs
def handle_close_window(self, event, packet):
^
spock/plugins/helpers/inventory.py:530:1: W191 indentation contains tabs
closed_window = self.inventory.window
^
spock/plugins/helpers/inventory.py:531:1: W191 indentation contains tabs
self.inventory.window = InventoryPlayer(persistent_slots=closed_window.slots)
^
spock/plugins/helpers/inventory.py:532:1: W191 indentation contains tabs
self.event.emit('inv_close_window', {'window': closed_window})
^
spock/plugins/helpers/inventory.py:534:1: W191 indentation contains tabs
def handle_set_slot(self, event, packet):
^
spock/plugins/helpers/inventory.py:535:1: W191 indentation contains tabs
self.set_slot(packet.data['window_id'], packet.data['slot'], packet.data['slot_data'])
^
spock/plugins/helpers/inventory.py:535:80: E501 line too long (88 > 79 characters)
self.set_slot(packet.data['window_id'], packet.data['slot'], packet.data['slot_data'])
^
spock/plugins/helpers/inventory.py:537:1: W191 indentation contains tabs
def handle_window_items(self, event, packet):
^
spock/plugins/helpers/inventory.py:538:1: W191 indentation contains tabs
window_id = packet.data['window_id']
^
spock/plugins/helpers/inventory.py:539:1: W191 indentation contains tabs
for slot_nr, slot_data in enumerate(packet.data['slots']):
^
spock/plugins/helpers/inventory.py:540:1: W191 indentation contains tabs
self.set_slot(window_id, slot_nr, slot_data)
^
spock/plugins/helpers/inventory.py:542:1: W191 indentation contains tabs
def set_slot(self, window_id, slot_nr, slot_data):
^
spock/plugins/helpers/inventory.py:543:1: W191 indentation contains tabs
if window_id == INV_WINID_CURSOR and slot_nr == INV_SLOT_NR_CURSOR:
^
spock/plugins/helpers/inventory.py:544:1: W191 indentation contains tabs
slot = self.inventory.cursor_slot = SlotCursor(**slot_data)
^
spock/plugins/helpers/inventory.py:545:1: W191 indentation contains tabs
elif window_id == self.inventory.window.window_id:
^
spock/plugins/helpers/inventory.py:546:1: W191 indentation contains tabs
slot = self.inventory.window.slots[slot_nr] = Slot(self.inventory.window, slot_nr, **slot_data)
^
spock/plugins/helpers/inventory.py:546:80: E501 line too long (98 > 79 characters)
slot = self.inventory.window.slots[slot_nr] = Slot(self.inventory.window, slot_nr, **slot_data)
^
spock/plugins/helpers/inventory.py:547:1: W191 indentation contains tabs
else:
^
spock/plugins/helpers/inventory.py:548:1: W191 indentation contains tabs
raise ValueError('Unexpected window ID (%i) or slot_nr (%i)' % (window_id, slot_nr))
^
spock/plugins/helpers/inventory.py:548:80: E501 line too long (87 > 79 characters)
raise ValueError('Unexpected window ID (%i) or slot_nr (%i)' % (window_id, slot_nr))
^
spock/plugins/helpers/inventory.py:549:1: W191 indentation contains tabs
self.emit_set_slot(slot)
^
spock/plugins/helpers/inventory.py:551:1: W191 indentation contains tabs
def emit_set_slot(self, slot):
^
spock/plugins/helpers/inventory.py:552:1: W191 indentation contains tabs
self.event.emit('inv_set_slot', {'slot': slot})
^
spock/plugins/helpers/inventory.py:554:1: W191 indentation contains tabs
def handle_window_prop(self, event, packet):
^
spock/plugins/helpers/inventory.py:555:1: W191 indentation contains tabs
self.inventory.window.properties[packet.data['property']] = packet.data['value']
^
spock/plugins/helpers/inventory.py:555:80: E501 line too long (82 > 79 characters)
self.inventory.window.properties[packet.data['property']] = packet.data['value']
^
spock/plugins/helpers/inventory.py:556:1: W191 indentation contains tabs
self.event.emit('inv_win_prop', packet.data)
^
spock/plugins/helpers/inventory.py:558:1: W191 indentation contains tabs
def handle_confirm_transaction(self, event, packet):
^
spock/plugins/helpers/inventory.py:559:1: W191 indentation contains tabs
click, self.last_click = self.last_click, None
^
spock/plugins/helpers/inventory.py:560:1: W191 indentation contains tabs
action_id = packet.data['action']
^
spock/plugins/helpers/inventory.py:561:1: W191 indentation contains tabs
accepted = packet.data['accepted']
^
spock/plugins/helpers/inventory.py:562:1: W191 indentation contains tabs
def emit_response_event():
^
spock/plugins/helpers/inventory.py:562:3: E301 expected 1 blank line, found 0
def emit_response_event():
^
spock/plugins/helpers/inventory.py:563:1: W191 indentation contains tabs
self.event.emit('inv_click_response_%s' % action_id, {'accepted': accepted, 'click': click})
^
spock/plugins/helpers/inventory.py:563:80: E501 line too long (95 > 79 characters)
self.event.emit('inv_click_response_%s' % action_id, {'accepted': accepted, 'click': click})
^
spock/plugins/helpers/inventory.py:564:1: W191 indentation contains tabs
if accepted:
^
spock/plugins/helpers/inventory.py:565:1: W191 indentation contains tabs
# TODO check if the wrong window/action ID was confirmed, never occured during testing
^
spock/plugins/helpers/inventory.py:565:80: E501 line too long (89 > 79 characters)
# TODO check if the wrong window/action ID was confirmed, never occured during testing
^
spock/plugins/helpers/inventory.py:566:1: W191 indentation contains tabs
# update inventory, because 1.8 server does not send slot updates after successful clicks
^
spock/plugins/helpers/inventory.py:566:80: E501 line too long (92 > 79 characters)
# update inventory, because 1.8 server does not send slot updates after successful clicks
^
spock/plugins/helpers/inventory.py:567:1: W191 indentation contains tabs
click.on_success(self.inventory, self.emit_set_slot)
^
spock/plugins/helpers/inventory.py:568:1: W191 indentation contains tabs
emit_response_event()
^
spock/plugins/helpers/inventory.py:569:1: W191 indentation contains tabs
else: # click not accepted
^
spock/plugins/helpers/inventory.py:570:1: W191 indentation contains tabs
# confirm that we received this packet
^
spock/plugins/helpers/inventory.py:571:1: W191 indentation contains tabs
packet.new_ident('PLAY>Confirm Transaction')
^
spock/plugins/helpers/inventory.py:572:1: W191 indentation contains tabs
self.net.push(packet)
^
spock/plugins/helpers/inventory.py:573:1: W191 indentation contains tabs
# 1.8 server will re-send all slots now
^
spock/plugins/helpers/inventory.py:574:1: W191 indentation contains tabs
# TODO are 2 ticks always enough?
^
spock/plugins/helpers/inventory.py:575:1: W191 indentation contains tabs
self.timers.reg_tick_timer(2, emit_response_event, runs=1)
^
spock/plugins/helpers/inventory.py:577:1: W191 indentation contains tabs
def send_click(self, click):
^
spock/plugins/helpers/inventory.py:579:1: W191 indentation contains tabs
Returns the click's action ID if the click could be sent,
^
spock/plugins/helpers/inventory.py:580:1: W191 indentation contains tabs
None if the previous click has not been received and confirmed yet.
^
spock/plugins/helpers/inventory.py:581:1: W191 indentation contains tabs
"""
^
spock/plugins/helpers/inventory.py:582:1: W191 indentation contains tabs
# only send if previous click got confirmed
^
spock/plugins/helpers/inventory.py:583:1: W191 indentation contains tabs
if self.last_click:
^
spock/plugins/helpers/inventory.py:584:1: W191 indentation contains tabs
return None
^
spock/plugins/helpers/inventory.py:585:1: W191 indentation contains tabs
packet = click.get_packet(self.inventory)
^
spock/plugins/helpers/inventory.py:586:1: W191 indentation contains tabs
try:
^
spock/plugins/helpers/inventory.py:587:1: W191 indentation contains tabs
craft_result_slot = self.inventory.window.craft_result_slot.slot_nr
^
spock/plugins/helpers/inventory.py:588:1: W191 indentation contains tabs
if packet['slot'] == craft_result_slot:
^
spock/plugins/helpers/inventory.py:589:1: W191 indentation contains tabs
# send wrong click to update inventory after crafting
^
spock/plugins/helpers/inventory.py:590:1: W191 indentation contains tabs
packet['clicked_item'] = {'id': -1}
^
spock/plugins/helpers/inventory.py:591:1: W191 indentation contains tabs
except AttributeError:
^
spock/plugins/helpers/inventory.py:592:1: W191 indentation contains tabs
pass # not crafting
^
spock/plugins/helpers/inventory.py:593:1: W191 indentation contains tabs
packet['window_id'] = self.inventory.window.window_id
^
spock/plugins/helpers/inventory.py:594:1: W191 indentation contains tabs
packet['action'] = self.action_id
^
spock/plugins/helpers/inventory.py:595:1: W191 indentation contains tabs
self.action_id += 1
^
spock/plugins/helpers/inventory.py:596:1: W191 indentation contains tabs
self.last_click = click
^
spock/plugins/helpers/inventory.py:597:1: W191 indentation contains tabs
self.net.push_packet('PLAY>Click Window', packet)
^
spock/plugins/helpers/inventory.py:598:1: W191 indentation contains tabs
return self.action_id
^
spock/mcp/datautils.py:2:1: F401 'zlib' imported but unused
import zlib
^
spock/mcp/datautils.py:3:1: I100 Imports statements are in the wrong order. import json should be before import zlib
import json
^
spock/mcp/datautils.py:4:1: I201 Missing newline before sections or imports.
from spock import utils
^
spock/mcp/datautils.py:6:1: F401 'MC_BOOL' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/datautils.py:6:1: F401 'MC_DOUBLE' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/datautils.py:6:1: F401 'MC_UINT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/datautils.py:6:1: F401 'MC_USHORT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/datautils.py:6:1: I101 Imported names are in the wrong order. Should be MC_BOOL, MC_BYTE, MC_CHAT, MC_DOUBLE, MC_FLOAT, MC_FP_BYTE, MC_FP_INT, MC_INT, MC_LONG, MC_META, MC_POSITION, MC_SHORT, MC_SLOT, MC_STRING, MC_UBYTE, MC_UINT, MC_ULONG, MC_USHORT, MC_UUID, MC_VARINT, MC_VARLONG
from spock.mcp.mcdata import (
^
spock/mcp/datautils.py:7:1: W191 indentation contains tabs
MC_BOOL, MC_UBYTE, MC_BYTE, MC_USHORT, MC_SHORT, MC_UINT, MC_INT, MC_ULONG,
^
spock/mcp/datautils.py:8:1: W191 indentation contains tabs
MC_LONG, MC_FLOAT, MC_DOUBLE, MC_VARINT, MC_VARLONG, MC_FP_INT, MC_FP_BYTE,
^
spock/mcp/datautils.py:9:1: W191 indentation contains tabs
MC_UUID, MC_POSITION, MC_STRING, MC_CHAT, MC_SLOT, MC_META
^
spock/mcp/datautils.py:12:1: E265 block comment should start with '# '
#Unpack/Pack functions return None on error
^
spock/mcp/datautils.py:16:1: E302 expected 2 blank lines, found 1
def unpack_varint(bbuff):
^
spock/mcp/datautils.py:17:1: W191 indentation contains tabs
total = 0
^
spock/mcp/datautils.py:18:1: W191 indentation contains tabs
shift = 0
^
spock/mcp/datautils.py:19:1: W191 indentation contains tabs
val = 0x80
^
spock/mcp/datautils.py:20:1: W191 indentation contains tabs
while val & 0x80:
^
spock/mcp/datautils.py:21:1: W191 indentation contains tabs
val = struct.unpack('B', bbuff.read(1))[0]
^
spock/mcp/datautils.py:22:1: W191 indentation contains tabs
total |= (val & 0x7F) << shift
^
spock/mcp/datautils.py:23:1: W191 indentation contains tabs
shift += 7
^
spock/mcp/datautils.py:24:1: W191 indentation contains tabs
if total >= (1<<32):
^
spock/mcp/datautils.py:24:16: E227 missing whitespace around bitwise or shift operator
if total >= (1<<32):
^
spock/mcp/datautils.py:25:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:26:1: W191 indentation contains tabs
if total & (1<<31):
^
spock/mcp/datautils.py:26:15: E227 missing whitespace around bitwise or shift operator
if total & (1<<31):
^
spock/mcp/datautils.py:27:1: W191 indentation contains tabs
total -= 1<<32
^
spock/mcp/datautils.py:27:13: E227 missing whitespace around bitwise or shift operator
total -= 1<<32
^
spock/mcp/datautils.py:28:1: W191 indentation contains tabs
return total
^
spock/mcp/datautils.py:30:1: E302 expected 2 blank lines, found 1
def pack_varint(val):
^
spock/mcp/datautils.py:31:1: W191 indentation contains tabs
if val >= (1<<31) or val < -(1<<31):
^
spock/mcp/datautils.py:31:14: E227 missing whitespace around bitwise or shift operator
if val >= (1<<31) or val < -(1<<31):
^
spock/mcp/datautils.py:31:32: E227 missing whitespace around bitwise or shift operator
if val >= (1<<31) or val < -(1<<31):
^
spock/mcp/datautils.py:32:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:33:1: W191 indentation contains tabs
o = b''
^
spock/mcp/datautils.py:34:1: W191 indentation contains tabs
if val < 0:
^
spock/mcp/datautils.py:35:1: W191 indentation contains tabs
val += 1<<32
^
spock/mcp/datautils.py:35:11: E227 missing whitespace around bitwise or shift operator
val += 1<<32
^
spock/mcp/datautils.py:36:1: W191 indentation contains tabs
while val >= 0x80:
^
spock/mcp/datautils.py:37:1: W191 indentation contains tabs
bits = val & 0x7F
^
spock/mcp/datautils.py:38:1: W191 indentation contains tabs
val >>= 7
^
spock/mcp/datautils.py:39:1: W191 indentation contains tabs
o += struct.pack('B', (0x80 | bits))
^
spock/mcp/datautils.py:40:1: W191 indentation contains tabs
bits = val&0x7F
^
spock/mcp/datautils.py:40:12: E227 missing whitespace around bitwise or shift operator
bits = val&0x7F
^
spock/mcp/datautils.py:41:1: W191 indentation contains tabs
o += struct.pack('B', bits)
^
spock/mcp/datautils.py:42:1: W191 indentation contains tabs
return o
^
spock/mcp/datautils.py:44:1: E265 block comment should start with '# '
#Like a varint, but a 64-bit signed value
^
spock/mcp/datautils.py:45:1: E302 expected 2 blank lines, found 1
def unpack_varlong(bbuff):
^
spock/mcp/datautils.py:46:1: W191 indentation contains tabs
total = 0
^
spock/mcp/datautils.py:47:1: W191 indentation contains tabs
shift = 0
^
spock/mcp/datautils.py:48:1: W191 indentation contains tabs
val = 0x80
^
spock/mcp/datautils.py:49:1: W191 indentation contains tabs
while val & 0x80:
^
spock/mcp/datautils.py:50:1: W191 indentation contains tabs
val = struct.unpack('B', bbuff.read(1))[0]
^
spock/mcp/datautils.py:51:1: W191 indentation contains tabs
total |= ((val & 0x7F) << shift)
^
spock/mcp/datautils.py:52:1: W191 indentation contains tabs
shift += 7
^
spock/mcp/datautils.py:53:1: W191 indentation contains tabs
if total >= 1<<64:
^
spock/mcp/datautils.py:53:15: E227 missing whitespace around bitwise or shift operator
if total >= 1<<64:
^
spock/mcp/datautils.py:54:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:55:1: W191 indentation contains tabs
if total & (1<<64):
^
spock/mcp/datautils.py:55:15: E227 missing whitespace around bitwise or shift operator
if total & (1<<64):
^
spock/mcp/datautils.py:56:1: W191 indentation contains tabs
total -= 1 << 64
^
spock/mcp/datautils.py:57:1: W191 indentation contains tabs
return total
^
spock/mcp/datautils.py:59:1: E302 expected 2 blank lines, found 1
def pack_varlong(val):
^
spock/mcp/datautils.py:60:1: W191 indentation contains tabs
if val >= (1<<63) or val < -(1<<63):
^
spock/mcp/datautils.py:60:14: E227 missing whitespace around bitwise or shift operator
if val >= (1<<63) or val < -(1<<63):
^
spock/mcp/datautils.py:60:32: E227 missing whitespace around bitwise or shift operator
if val >= (1<<63) or val < -(1<<63):
^
spock/mcp/datautils.py:61:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:62:1: W191 indentation contains tabs
o = b''
^
spock/mcp/datautils.py:63:1: W191 indentation contains tabs
if val < 0:
^
spock/mcp/datautils.py:64:1: W191 indentation contains tabs
val += 1<<64
^
spock/mcp/datautils.py:64:11: E227 missing whitespace around bitwise or shift operator
val += 1<<64
^
spock/mcp/datautils.py:65:1: W191 indentation contains tabs
while val >= 0x80:
^
spock/mcp/datautils.py:66:1: W191 indentation contains tabs
bits = val & 0x7F
^
spock/mcp/datautils.py:67:1: W191 indentation contains tabs
val >>= 7
^
spock/mcp/datautils.py:68:1: W191 indentation contains tabs
o += struct.pack('B', (0x80 | bits))
^
spock/mcp/datautils.py:69:1: W191 indentation contains tabs
bits = val & 0x7F
^
spock/mcp/datautils.py:70:1: W191 indentation contains tabs
o += struct.pack('B', bits)
^
spock/mcp/datautils.py:71:1: W191 indentation contains tabs
return o
^
spock/mcp/datautils.py:75:1: E302 expected 2 blank lines, found 1
def unpack_position(bbuff):
^
spock/mcp/datautils.py:76:1: W191 indentation contains tabs
position = {}
^
spock/mcp/datautils.py:77:1: W191 indentation contains tabs
val = unpack(MC_LONG, bbuff)
^
spock/mcp/datautils.py:78:1: W191 indentation contains tabs
position['x'] = val >> 38
^
spock/mcp/datautils.py:79:1: W191 indentation contains tabs
position['y'] = (val >> 26) & 0xFFF
^
spock/mcp/datautils.py:80:1: W191 indentation contains tabs
z = val & 0x3FFFFFF
^
spock/mcp/datautils.py:81:1: W191 indentation contains tabs
if z & (1<<25):
^
spock/mcp/datautils.py:81:11: E227 missing whitespace around bitwise or shift operator
if z & (1<<25):
^
spock/mcp/datautils.py:82:1: W191 indentation contains tabs
z -= (1<<26)
^
spock/mcp/datautils.py:82:10: E227 missing whitespace around bitwise or shift operator
z -= (1<<26)
^
spock/mcp/datautils.py:83:1: W191 indentation contains tabs
position['z'] = z
^
spock/mcp/datautils.py:84:1: W191 indentation contains tabs
return position
^
spock/mcp/datautils.py:86:1: E302 expected 2 blank lines, found 1
def pack_position(position):
^
spock/mcp/datautils.py:87:1: W191 indentation contains tabs
val = (int(position['x']) & 0x3FFFFFF) << 38
^
spock/mcp/datautils.py:87:5: E221 multiple spaces before operator
val = (int(position['x']) & 0x3FFFFFF) << 38
^
spock/mcp/datautils.py:88:1: W191 indentation contains tabs
val |= (int(position['y']) & 0xFFF) << 26
^
spock/mcp/datautils.py:89:1: W191 indentation contains tabs
val |= (int(position['z']) & 0x3FFFFFF)
^
spock/mcp/datautils.py:90:1: W191 indentation contains tabs
return pack(MC_ULONG, val)
^
spock/mcp/datautils.py:92:1: E265 block comment should start with '# '
#Fixed point number where the first 5 bits are dedicated to the decimal place
^
spock/mcp/datautils.py:93:1: E265 block comment should start with '# '
#Internally vanilla mc implements these as doubles, so we do the same thing
^
spock/mcp/datautils.py:94:1: E302 expected 2 blank lines, found 1
def unpack_fixed_point(mc_type, bbuff):
^
spock/mcp/datautils.py:95:1: W191 indentation contains tabs
val = unpack(mc_type, bbuff)
^
spock/mcp/datautils.py:96:1: W191 indentation contains tabs
val = float(val) / (1<<5)
^
spock/mcp/datautils.py:96:23: E227 missing whitespace around bitwise or shift operator
val = float(val) / (1<<5)
^
spock/mcp/datautils.py:97:1: W191 indentation contains tabs
return val
^
spock/mcp/datautils.py:99:1: E302 expected 2 blank lines, found 1
def pack_fixed_point(mc_type, val):
^
spock/mcp/datautils.py:100:1: W191 indentation contains tabs
val = int(val * (1<<5))
^
spock/mcp/datautils.py:100:20: E227 missing whitespace around bitwise or shift operator
val = int(val * (1<<5))
^
spock/mcp/datautils.py:101:1: W191 indentation contains tabs
return pack(mc_type, val)
^
spock/mcp/datautils.py:107:1: E302 expected 2 blank lines, found 1
def unpack_slot(bbuff):
^
spock/mcp/datautils.py:108:1: W191 indentation contains tabs
slot = {}
^
spock/mcp/datautils.py:109:1: W191 indentation contains tabs
slot['id'] = unpack(MC_SHORT, bbuff)
^
spock/mcp/datautils.py:110:1: W191 indentation contains tabs
if slot['id'] != -1:
^
spock/mcp/datautils.py:111:1: W191 indentation contains tabs
slot['amount'] = unpack(MC_BYTE, bbuff)
^
spock/mcp/datautils.py:112:1: W191 indentation contains tabs
slot['damage'] = unpack(MC_SHORT, bbuff)
^
spock/mcp/datautils.py:113:1: W191 indentation contains tabs
nbt_start = unpack(MC_BYTE, bbuff)
^
spock/mcp/datautils.py:114:1: W191 indentation contains tabs
if nbt_start > 0:
^
spock/mcp/datautils.py:115:1: W191 indentation contains tabs
if nbt_start != nbt.TAG_COMPOUND:
^
spock/mcp/datautils.py:116:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:117:1: W191 indentation contains tabs
name = nbt.TAG_String(buffer = bbuff).value
^
spock/mcp/datautils.py:117:32: E251 unexpected spaces around keyword / parameter equals
name = nbt.TAG_String(buffer = bbuff).value
^
spock/mcp/datautils.py:117:34: E251 unexpected spaces around keyword / parameter equals
name = nbt.TAG_String(buffer = bbuff).value
^
spock/mcp/datautils.py:118:1: W191 indentation contains tabs
ench = nbt.TAG_Compound(buffer = bbuff)
^
spock/mcp/datautils.py:118:34: E251 unexpected spaces around keyword / parameter equals
ench = nbt.TAG_Compound(buffer = bbuff)
^
spock/mcp/datautils.py:118:36: E251 unexpected spaces around keyword / parameter equals
ench = nbt.TAG_Compound(buffer = bbuff)
^
spock/mcp/datautils.py:119:1: W191 indentation contains tabs
ench.name = name
^
spock/mcp/datautils.py:120:1: W191 indentation contains tabs
slot['enchants'] = ench
^
spock/mcp/datautils.py:121:1: W191 indentation contains tabs
return slot
^
spock/mcp/datautils.py:123:1: E302 expected 2 blank lines, found 1
def pack_slot(slot):
^
spock/mcp/datautils.py:124:1: W191 indentation contains tabs
o = pack(MC_SHORT, slot['id'])
^
spock/mcp/datautils.py:125:1: W191 indentation contains tabs
if slot['id'] != -1:
^
spock/mcp/datautils.py:126:1: W191 indentation contains tabs
o += pack(MC_BYTE, slot['amount'])
^
spock/mcp/datautils.py:127:1: W191 indentation contains tabs
o += pack(MC_SHORT, slot['damage'])
^
spock/mcp/datautils.py:128:1: W191 indentation contains tabs
if 'enchants' in slot:
^
spock/mcp/datautils.py:129:1: W191 indentation contains tabs
ench = slot['enchants']
^
spock/mcp/datautils.py:130:1: W191 indentation contains tabs
bbuff = utils.BoundBuffer()
^
spock/mcp/datautils.py:131:1: W191 indentation contains tabs
nbt.TAG_Byte(ench.id)._render_buffer(bbuff)
^
spock/mcp/datautils.py:132:1: W191 indentation contains tabs
nbt.TAG_String(ench.name)._render_buffer(bbuff)
^
spock/mcp/datautils.py:133:1: W191 indentation contains tabs
ench._render_buffer(bbuff)
^
spock/mcp/datautils.py:134:1: W191 indentation contains tabs
o += bbuff.flush()
^
spock/mcp/datautils.py:135:1: W191 indentation contains tabs
else:
^
spock/mcp/datautils.py:136:1: W191 indentation contains tabs
o += pack(MC_BYTE, 0)
^
spock/mcp/datautils.py:137:1: W191 indentation contains tabs
return o
^
spock/mcp/datautils.py:145:1: E302 expected 2 blank lines, found 1
def unpack_metadata(bbuff):
^
spock/mcp/datautils.py:146:1: W191 indentation contains tabs
metadata = []
^
spock/mcp/datautils.py:147:1: W191 indentation contains tabs
head = unpack(MC_UBYTE, bbuff)
^
spock/mcp/datautils.py:148:1: W191 indentation contains tabs
while head != 0x7F:
^
spock/mcp/datautils.py:149:1: W191 indentation contains tabs
key = head & 0x1F # Lower 5 bits
^
spock/mcp/datautils.py:149:20: E261 at least two spaces before inline comment
key = head & 0x1F # Lower 5 bits
^
spock/mcp/datautils.py:150:1: W191 indentation contains tabs
typ = head >> 5 # Upper 3 bits
^
spock/mcp/datautils.py:150:18: E261 at least two spaces before inline comment
typ = head >> 5 # Upper 3 bits
^
spock/mcp/datautils.py:151:1: W191 indentation contains tabs
if 0 <= typ < len(metadata_lookup):
^
spock/mcp/datautils.py:152:1: W191 indentation contains tabs
val = unpack(metadata_lookup[typ], bbuff)
^
spock/mcp/datautils.py:153:1: W191 indentation contains tabs
elif typ == 6:
^
spock/mcp/datautils.py:154:1: W191 indentation contains tabs
val = [unpack(MC_INT, bbuff)] * 3
^
spock/mcp/datautils.py:155:1: W191 indentation contains tabs
elif typ == 7:
^
spock/mcp/datautils.py:156:1: W191 indentation contains tabs
val = [unpack(MC_FLOAT, bbuff)] * 3
^
spock/mcp/datautils.py:157:1: W191 indentation contains tabs
else:
^
spock/mcp/datautils.py:158:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:159:1: W191 indentation contains tabs
metadata.append((key, (typ, val)))
^
spock/mcp/datautils.py:160:1: W191 indentation contains tabs
head = unpack(MC_UBYTE, bbuff)
^
spock/mcp/datautils.py:161:1: W191 indentation contains tabs
return metadata
^
spock/mcp/datautils.py:163:1: E302 expected 2 blank lines, found 1
def pack_metadata(data):
^
spock/mcp/datautils.py:164:1: W191 indentation contains tabs
o = b''
^
spock/mcp/datautils.py:165:1: W191 indentation contains tabs
for key, tmp in data:
^
spock/mcp/datautils.py:166:1: W191 indentation contains tabs
typ, val = tmp
^
spock/mcp/datautils.py:167:1: W191 indentation contains tabs
o += pack(MC_UBYTE, (typ << 5)|key)
^
spock/mcp/datautils.py:167:33: E227 missing whitespace around bitwise or shift operator
o += pack(MC_UBYTE, (typ << 5)|key)
^
spock/mcp/datautils.py:168:1: W191 indentation contains tabs
if 0 <= typ < len(metadata_lookup):
^
spock/mcp/datautils.py:169:1: W191 indentation contains tabs
o += pack(metadata_lookup[typ], val)
^
spock/mcp/datautils.py:170:1: W191 indentation contains tabs
elif typ == 6:
^
spock/mcp/datautils.py:171:1: W191 indentation contains tabs
for i in range(3):
^
spock/mcp/datautils.py:172:1: W191 indentation contains tabs
o += pack(MC_INT, val[i])
^
spock/mcp/datautils.py:173:1: W191 indentation contains tabs
elif typ == 7:
^
spock/mcp/datautils.py:174:1: W191 indentation contains tabs
for i in range(3):
^
spock/mcp/datautils.py:175:1: W191 indentation contains tabs
o += pack(MC_FLOAT, val[i])
^
spock/mcp/datautils.py:176:1: W191 indentation contains tabs
else:
^
spock/mcp/datautils.py:177:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:178:1: W191 indentation contains tabs
o += pack(MC_BYTE, 0x7F)
^
spock/mcp/datautils.py:179:1: W191 indentation contains tabs
return o
^
spock/mcp/datautils.py:183:1: E302 expected 2 blank lines, found 1
def unpack(data_type, bbuff):
^
spock/mcp/datautils.py:184:1: W191 indentation contains tabs
if data_type < len(mcdata.data_structs):
^
spock/mcp/datautils.py:185:1: W191 indentation contains tabs
format = mcdata.data_structs[data_type]
^
spock/mcp/datautils.py:186:1: W191 indentation contains tabs
return struct.unpack(endian+format[0], bbuff.recv(format[1]))[0]
^
spock/mcp/datautils.py:187:1: W191 indentation contains tabs
elif data_type == MC_VARINT:
^
spock/mcp/datautils.py:188:1: W191 indentation contains tabs
return unpack_varint(bbuff)
^
spock/mcp/datautils.py:189:1: W191 indentation contains tabs
elif data_type == MC_VARLONG:
^
spock/mcp/datautils.py:190:1: W191 indentation contains tabs
return unpack_varlong(bbuff)
^
spock/mcp/datautils.py:191:1: W191 indentation contains tabs
elif data_type == MC_FP_INT:
^
spock/mcp/datautils.py:192:1: W191 indentation contains tabs
return unpack_fixed_point(MC_INT, bbuff)
^
spock/mcp/datautils.py:193:1: W191 indentation contains tabs
elif data_type == MC_FP_BYTE:
^
spock/mcp/datautils.py:194:1: W191 indentation contains tabs
return unpack_fixed_point(MC_BYTE, bbuff)
^
spock/mcp/datautils.py:195:1: W191 indentation contains tabs
elif data_type == MC_UUID:
^
spock/mcp/datautils.py:196:1: W191 indentation contains tabs
a, b = struct.unpack('>QQ', bbuff.recv(16))
^
spock/mcp/datautils.py:197:1: W191 indentation contains tabs
return (a<<64)|b
^
spock/mcp/datautils.py:197:12: E227 missing whitespace around bitwise or shift operator
return (a<<64)|b
^
spock/mcp/datautils.py:197:17: E227 missing whitespace around bitwise or shift operator
return (a<<64)|b
^
spock/mcp/datautils.py:198:1: W191 indentation contains tabs
elif data_type == MC_POSITION:
^
spock/mcp/datautils.py:199:1: W191 indentation contains tabs
return unpack_position(bbuff)
^
spock/mcp/datautils.py:200:1: W191 indentation contains tabs
elif data_type == MC_STRING:
^
spock/mcp/datautils.py:201:1: W191 indentation contains tabs
return bbuff.recv(unpack(MC_VARINT, bbuff)).decode('utf-8')
^
spock/mcp/datautils.py:202:1: W191 indentation contains tabs
elif data_type == MC_CHAT:
^
spock/mcp/datautils.py:203:1: W191 indentation contains tabs
return json.loads(unpack(MC_STRING, bbuff))
^
spock/mcp/datautils.py:204:1: W191 indentation contains tabs
elif data_type == MC_SLOT:
^
spock/mcp/datautils.py:205:1: W191 indentation contains tabs
return unpack_slot(bbuff)
^
spock/mcp/datautils.py:206:1: W191 indentation contains tabs
elif data_type == MC_META:
^
spock/mcp/datautils.py:207:1: W191 indentation contains tabs
return unpack_metadata(bbuff)
^
spock/mcp/datautils.py:208:1: W191 indentation contains tabs
else:
^
spock/mcp/datautils.py:209:1: W191 indentation contains tabs
return None
^
spock/mcp/datautils.py:211:1: E302 expected 2 blank lines, found 1
def pack(data_type, data):
^
spock/mcp/datautils.py:212:1: W191 indentation contains tabs
if data_type < len(mcdata.data_structs):
^
spock/mcp/datautils.py:213:1: W191 indentation contains tabs
format = mcdata.data_structs[data_type]
^
spock/mcp/datautils.py:214:1: W191 indentation contains tabs
return struct.pack(endian+format[0], data)
^
spock/mcp/datautils.py:215:1: W191 indentation contains tabs
elif data_type == MC_VARINT:
^
spock/mcp/datautils.py:216:1: W191 indentation contains tabs
return pack_varint(data)
^
spock/mcp/datautils.py:217:1: W191 indentation contains tabs
elif data_type == MC_VARLONG:
^
spock/mcp/datautils.py:218:1: W191 indentation contains tabs
return pack_varlong(data)
^
spock/mcp/datautils.py:219:1: W191 indentation contains tabs
elif data_type == MC_FP_INT:
^
spock/mcp/datautils.py:220:1: W191 indentation contains tabs
return pack_fixed_point(MC_INT, data)
^
spock/mcp/datautils.py:221:1: W191 indentation contains tabs
elif data_type == MC_FP_BYTE:
^
spock/mcp/datautils.py:222:1: W191 indentation contains tabs
return pack_fixed_point(MC_BYTE, data)
^
spock/mcp/datautils.py:223:1: W191 indentation contains tabs
elif data_type == MC_UUID:
^
spock/mcp/datautils.py:224:1: W191 indentation contains tabs
return struct.pack('>QQ', (data>>64) & ((1<<64) - 1), data & ((1<<64) - 1))
^
spock/mcp/datautils.py:224:34: E227 missing whitespace around bitwise or shift operator
return struct.pack('>QQ', (data>>64) & ((1<<64) - 1), data & ((1<<64) - 1))
^
spock/mcp/datautils.py:224:45: E227 missing whitespace around bitwise or shift operator
return struct.pack('>QQ', (data>>64) & ((1<<64) - 1), data & ((1<<64) - 1))
^
spock/mcp/datautils.py:224:67: E227 missing whitespace around bitwise or shift operator
return struct.pack('>QQ', (data>>64) & ((1<<64) - 1), data & ((1<<64) - 1))
^
spock/mcp/datautils.py:225:1: W191 indentation contains tabs
elif data_type == MC_POSITION:
^
spock/mcp/datautils.py:226:1: W191 indentation contains tabs
return pack_position(data)
^
spock/mcp/datautils.py:227:1: W191 indentation contains tabs
elif data_type == MC_STRING:
^
spock/mcp/datautils.py:228:1: W191 indentation contains tabs
data = data.encode('utf-8')
^
spock/mcp/datautils.py:229:1: W191 indentation contains tabs
return pack(MC_VARINT, len(data)) + data
^
spock/mcp/datautils.py:230:1: W191 indentation contains tabs
elif data_type == MC_CHAT:
^
spock/mcp/datautils.py:231:1: W191 indentation contains tabs
return pack(MC_STRING, json.dumps(data))
^
spock/mcp/datautils.py:232:1: W191 indentation contains tabs
elif data_type == MC_SLOT:
^
spock/mcp/datautils.py:233:1: W191 indentation contains tabs
return pack_slot(data)
^
spock/mcp/datautils.py:234:1: W191 indentation contains tabs
elif data_type == MC_META:
^
spock/mcp/datautils.py:235:1: W191 indentation contains tabs
return pack_metadata(data)
^
spock/mcp/datautils.py:236:1: W191 indentation contains tabs
else:
^
spock/mcp/datautils.py:237:1: W191 indentation contains tabs
return None
^
spock/mcp/mcdata.py:1:1: E265 block comment should start with '# '
#Most of the data formats, structures, and magic values
^
spock/mcp/mcdata.py:5:17: E221 multiple spaces before operator
SERVER_TO_CLIENT = 0x00
^
spock/mcp/mcdata.py:6:17: E221 multiple spaces before operator
CLIENT_TO_SERVER = 0x01
^
spock/mcp/mcdata.py:8:14: E221 multiple spaces before operator
PROTO_COMP_ON = 0x00
^
spock/mcp/mcdata.py:9:15: E221 multiple spaces before operator
PROTO_COMP_OFF = 0x01
^
spock/mcp/mcdata.py:11:8: E221 multiple spaces before operator
MC_BOOL = 0x00
^
spock/mcp/mcdata.py:12:9: E221 multiple spaces before operator
MC_UBYTE = 0x01
^
spock/mcp/mcdata.py:13:8: E221 multiple spaces before operator
MC_BYTE = 0x02
^
spock/mcp/mcdata.py:14:10: E221 multiple spaces before operator
MC_USHORT = 0x03
^
spock/mcp/mcdata.py:15:9: E221 multiple spaces before operator
MC_SHORT = 0x04
^
spock/mcp/mcdata.py:16:8: E221 multiple spaces before operator
MC_UINT = 0x05
^
spock/mcp/mcdata.py:17:7: E221 multiple spaces before operator
MC_INT = 0x06
^
spock/mcp/mcdata.py:18:9: E221 multiple spaces before operator
MC_ULONG = 0x07
^
spock/mcp/mcdata.py:19:8: E221 multiple spaces before operator
MC_LONG = 0x08
^
spock/mcp/mcdata.py:20:9: E221 multiple spaces before operator
MC_FLOAT = 0x09
^
spock/mcp/mcdata.py:21:10: E221 multiple spaces before operator
MC_DOUBLE = 0x0A
^
spock/mcp/mcdata.py:22:10: E221 multiple spaces before operator
MC_VARINT = 0x0B
^
spock/mcp/mcdata.py:23:11: E221 multiple spaces before operator
MC_VARLONG = 0x0C
^
spock/mcp/mcdata.py:24:10: E221 multiple spaces before operator
MC_FP_INT = 0x0D
^
spock/mcp/mcdata.py:25:11: E221 multiple spaces before operator
MC_FP_BYTE = 0x0E
^
spock/mcp/mcdata.py:26:8: E221 multiple spaces before operator
MC_UUID = 0x0F
^
spock/mcp/mcdata.py:27:12: E221 multiple spaces before operator
MC_POSITION = 0x10
^
spock/mcp/mcdata.py:28:10: E221 multiple spaces before operator
MC_STRING = 0x11
^
spock/mcp/mcdata.py:29:8: E221 multiple spaces before operator
MC_CHAT = 0x12
^
spock/mcp/mcdata.py:30:8: E221 multiple spaces before operator
MC_SLOT = 0x13
^
spock/mcp/mcdata.py:31:8: E221 multiple spaces before operator
MC_META = 0x14
^
spock/mcp/mcdata.py:33:16: E221 multiple spaces before operator
HANDSHAKE_STATE = 0x00
^
spock/mcp/mcdata.py:34:13: E221 multiple spaces before operator
STATUS_STATE = 0x01
^
spock/mcp/mcdata.py:35:12: E221 multiple spaces before operator
LOGIN_STATE = 0x02
^
spock/mcp/mcdata.py:36:11: E221 multiple spaces before operator
PLAY_STATE = 0x03
^
spock/mcp/mcdata.py:38:11: E221 multiple spaces before operator
SMP_NETHER =-0x01
^
spock/mcp/mcdata.py:38:22: E225 missing whitespace around operator
SMP_NETHER =-0x01
^
spock/mcp/mcdata.py:39:14: E221 multiple spaces before operator
SMP_OVERWORLD = 0x00
^
spock/mcp/mcdata.py:40:8: E221 multiple spaces before operator
SMP_END = 0x01
^
spock/mcp/mcdata.py:42:13: E221 multiple spaces before operator
FLG_XPOS_REL = 0x01
^
spock/mcp/mcdata.py:43:13: E221 multiple spaces before operator
FLG_YPOS_REL = 0x02
^
spock/mcp/mcdata.py:44:13: E221 multiple spaces before operator
FLG_ZPOS_REL = 0x04
^
spock/mcp/mcdata.py:45:13: E221 multiple spaces before operator
FLG_YROT_REL = 0x08
^
spock/mcp/mcdata.py:46:13: E221 multiple spaces before operator
FLG_XROT_REL = 0x10
^
spock/mcp/mcdata.py:48:12: E221 multiple spaces before operator
GM_SURVIVAL = 0x00
^
spock/mcp/mcdata.py:49:12: E221 multiple spaces before operator
GM_CREATIVE = 0x01
^
spock/mcp/mcdata.py:50:13: E221 multiple spaces before operator
GM_ADVENTURE = 0x02
^
spock/mcp/mcdata.py:51:13: E221 multiple spaces before operator
GM_SPECTATOR = 0x03
^
spock/mcp/mcdata.py:53:1: E265 block comment should start with '# '
#Actions
^
spock/mcp/mcdata.py:54:1: E265 block comment should start with '# '
#Clientbound 0x38 Player List Item
^
spock/mcp/mcdata.py:55:14: E221 multiple spaces before operator
PL_ADD_PLAYER = 0x00
^
spock/mcp/mcdata.py:56:19: E221 multiple spaces before operator
PL_UPDATE_GAMEMODE = 0x01
^
spock/mcp/mcdata.py:57:18: E221 multiple spaces before operator
PL_UPDATE_LATENCY = 0x02
^
spock/mcp/mcdata.py:58:18: E221 multiple spaces before operator
PL_UPDATE_DISPLAY = 0x03
^
spock/mcp/mcdata.py:59:17: E221 multiple spaces before operator
PL_REMOVE_PLAYER = 0x04
^
spock/mcp/mcdata.py:61:1: E265 block comment should start with '# '
#Clientbound 0x3B Scoreboard Objective
^
spock/mcp/mcdata.py:62:16: E221 multiple spaces before operator
SO_CREATE_BOARD = 0x00
^
spock/mcp/mcdata.py:63:16: E221 multiple spaces before operator
SO_REMOVE_BOARD = 0x01
^
spock/mcp/mcdata.py:64:16: E221 multiple spaces before operator
SO_UPDATE_BOARD = 0x02
^
spock/mcp/mcdata.py:66:1: E265 block comment should start with '# '
#Clientbound 0x3C Update Score
^
spock/mcp/mcdata.py:67:16: E221 multiple spaces before operator
US_UPDATE_SCORE = 0x00
^
spock/mcp/mcdata.py:68:16: E221 multiple spaces before operator
US_REMOVE_SCORE = 0x01
^
spock/mcp/mcdata.py:70:1: E265 block comment should start with '# '
#Clientbound 0x3E Teams
^
spock/mcp/mcdata.py:71:15: E221 multiple spaces before operator
TE_CREATE_TEAM = 0x00
^
spock/mcp/mcdata.py:72:15: E221 multiple spaces before operator
TE_REMOVE_TEAM = 0x01
^
spock/mcp/mcdata.py:73:15: E221 multiple spaces before operator
TE_UPDATE_TEAM = 0x02
^
spock/mcp/mcdata.py:74:15: E221 multiple spaces before operator
TE_ADDPLY_TEAM = 0x03
^
spock/mcp/mcdata.py:75:15: E221 multiple spaces before operator
TE_REMPLY_TEAM = 0x04
^
spock/mcp/mcdata.py:77:1: E265 block comment should start with '# '
#Clientbound 0x42 Combat Event
^
spock/mcp/mcdata.py:78:16: E221 multiple spaces before operator
CE_ENTER_COMBAT = 0x00
^
spock/mcp/mcdata.py:79:14: E221 multiple spaces before operator
CE_END_COMBAT = 0x01
^
spock/mcp/mcdata.py:80:15: E221 multiple spaces before operator
CE_ENTITY_DEAD = 0x02
^
spock/mcp/mcdata.py:82:1: E265 block comment should start with '# '
#Clientbound 0x44 World Border
^
spock/mcp/mcdata.py:83:12: E221 multiple spaces before operator
WB_SET_SIZE = 0x00
^
spock/mcp/mcdata.py:84:13: E221 multiple spaces before operator
WB_LERP_SIZE = 0x01
^
spock/mcp/mcdata.py:85:14: E221 multiple spaces before operator
WB_SET_CENTER = 0x02
^
spock/mcp/mcdata.py:86:14: E221 multiple spaces before operator
WB_INITIALIZE = 0x03
^
spock/mcp/mcdata.py:87:17: E221 multiple spaces before operator
WB_SET_WARN_TIME = 0x04
^
spock/mcp/mcdata.py:88:19: E221 multiple spaces before operator
WB_SET_WARN_BLOCKS = 0x05
^
spock/mcp/mcdata.py:90:1: E265 block comment should start with '# '
#Clientbound 0x45 Title
^
spock/mcp/mcdata.py:91:9: E221 multiple spaces before operator
TL_TITLE = 0x00
^
spock/mcp/mcdata.py:92:12: E221 multiple spaces before operator
TL_SUBTITLE = 0x01
^
spock/mcp/mcdata.py:93:9: E221 multiple spaces before operator
TL_TIMES = 0x02
^
spock/mcp/mcdata.py:94:9: E221 multiple spaces before operator
TL_CLEAR = 0x03
^
spock/mcp/mcdata.py:95:9: E221 multiple spaces before operator
TL_RESET = 0x04
^
spock/mcp/mcdata.py:97:1: E265 block comment should start with '# '
#Serverbound 0x02 Use Entity
^
spock/mcp/mcdata.py:98:12: E221 multiple spaces before operator
UE_INTERACT = 0x00
^
spock/mcp/mcdata.py:99:10: E221 multiple spaces before operator
UE_ATTACK = 0x01
^
spock/mcp/mcdata.py:100:15: E221 multiple spaces before operator
UE_INTERACT_AT = 0x02
^
spock/mcp/mcdata.py:102:1: E265 block comment should start with '# '
#Serverbound 0x16 Client Status
^
spock/mcp/mcdata.py:103:18: E221 multiple spaces before operator
CL_STATUS_RESPAWN = 0x00
^
spock/mcp/mcdata.py:104:16: E221 multiple spaces before operator
CL_STATUS_STATS = 0x01
^
spock/mcp/mcdata.py:105:14: E221 multiple spaces before operator
CL_STATUS_INV = 0x02
^
spock/mcp/mcdata.py:107:1: E265 block comment should start with '# '
#Clientbound 0x2B Change Game State
^
spock/mcp/mcdata.py:108:15: E221 multiple spaces before operator
GS_INVALID_BED = 0x00
^
spock/mcp/mcdata.py:109:12: E221 multiple spaces before operator
GS_END_RAIN = 0x01
^
spock/mcp/mcdata.py:110:14: E221 multiple spaces before operator
GS_START_RAIN = 0x02
^
spock/mcp/mcdata.py:111:12: E221 multiple spaces before operator
GS_GAMEMODE = 0x03
^
spock/mcp/mcdata.py:112:11: E221 multiple spaces before operator
GS_CREDITS = 0x04
^
spock/mcp/mcdata.py:113:16: E221 multiple spaces before operator
GS_DEMO_MESSAGE = 0x05
^
spock/mcp/mcdata.py:114:9: E221 multiple spaces before operator
GS_ARROW = 0x06
^
spock/mcp/mcdata.py:115:14: E221 multiple spaces before operator
GS_FADE_VALUE = 0x07
^
spock/mcp/mcdata.py:116:13: E221 multiple spaces before operator
GS_FADE_TIME = 0x08
^
spock/mcp/mcdata.py:119:1: W191 indentation contains tabs
#(struct_suffix, size), #type
^
spock/mcp/mcdata.py:119:2: E265 block comment should start with '# '
#(struct_suffix, size), #type
^
spock/mcp/mcdata.py:120:1: W191 indentation contains tabs
('?', 1), #bool
^
spock/mcp/mcdata.py:120:11: E261 at least two spaces before inline comment
('?', 1), #bool
^
spock/mcp/mcdata.py:120:12: E262 inline comment should start with '# '
('?', 1), #bool
^
spock/mcp/mcdata.py:121:1: W191 indentation contains tabs
('B', 1), #ubyte
^
spock/mcp/mcdata.py:121:11: E261 at least two spaces before inline comment
('B', 1), #ubyte
^
spock/mcp/mcdata.py:121:12: E262 inline comment should start with '# '
('B', 1), #ubyte
^
spock/mcp/mcdata.py:122:1: W191 indentation contains tabs
('b', 1), #byte
^
spock/mcp/mcdata.py:122:11: E261 at least two spaces before inline comment
('b', 1), #byte
^
spock/mcp/mcdata.py:122:12: E262 inline comment should start with '# '
('b', 1), #byte
^
spock/mcp/mcdata.py:123:1: W191 indentation contains tabs
('H', 2), #ushort
^
spock/mcp/mcdata.py:123:11: E261 at least two spaces before inline comment
('H', 2), #ushort
^
spock/mcp/mcdata.py:123:12: E262 inline comment should start with '# '
('H', 2), #ushort
^
spock/mcp/mcdata.py:124:1: W191 indentation contains tabs
('h', 2), #short
^
spock/mcp/mcdata.py:124:11: E261 at least two spaces before inline comment
('h', 2), #short
^
spock/mcp/mcdata.py:124:12: E262 inline comment should start with '# '
('h', 2), #short
^
spock/mcp/mcdata.py:125:1: W191 indentation contains tabs
('I', 4), #uint
^
spock/mcp/mcdata.py:125:11: E261 at least two spaces before inline comment
('I', 4), #uint
^
spock/mcp/mcdata.py:125:12: E262 inline comment should start with '# '
('I', 4), #uint
^
spock/mcp/mcdata.py:126:1: W191 indentation contains tabs
('i', 4), #int
^
spock/mcp/mcdata.py:126:11: E261 at least two spaces before inline comment
('i', 4), #int
^
spock/mcp/mcdata.py:126:12: E262 inline comment should start with '# '
('i', 4), #int
^
spock/mcp/mcdata.py:127:1: W191 indentation contains tabs
('Q', 8), #ulong
^
spock/mcp/mcdata.py:127:11: E261 at least two spaces before inline comment
('Q', 8), #ulong
^
spock/mcp/mcdata.py:127:12: E262 inline comment should start with '# '
('Q', 8), #ulong
^
spock/mcp/mcdata.py:128:1: W191 indentation contains tabs
('q', 8), #long
^
spock/mcp/mcdata.py:128:11: E261 at least two spaces before inline comment
('q', 8), #long
^
spock/mcp/mcdata.py:128:12: E262 inline comment should start with '# '
('q', 8), #long
^
spock/mcp/mcdata.py:129:1: W191 indentation contains tabs
('f', 4), #float
^
spock/mcp/mcdata.py:129:11: E261 at least two spaces before inline comment
('f', 4), #float
^
spock/mcp/mcdata.py:129:12: E262 inline comment should start with '# '
('f', 4), #float
^
spock/mcp/mcdata.py:130:1: W191 indentation contains tabs
('d', 8), #double
^
spock/mcp/mcdata.py:130:11: E261 at least two spaces before inline comment
('d', 8), #double
^
spock/mcp/mcdata.py:130:12: E262 inline comment should start with '# '
('d', 8), #double
^
spock/mcp/mcdata.py:134:1: W191 indentation contains tabs
#(name, data_length)
^
spock/mcp/mcdata.py:134:2: E265 block comment should start with '# '
#(name, data_length)
^
spock/mcp/mcdata.py:135:1: W191 indentation contains tabs
('explosion_normal' , 0),
^
spock/mcp/mcdata.py:135:21: E203 whitespace before ','
('explosion_normal' , 0),
^
spock/mcp/mcdata.py:136:1: W191 indentation contains tabs
('explosion_large' , 0),
^
spock/mcp/mcdata.py:136:21: E203 whitespace before ','
('explosion_large' , 0),
^
spock/mcp/mcdata.py:137:1: W191 indentation contains tabs
('explosion_huge' , 0),
^
spock/mcp/mcdata.py:137:21: E203 whitespace before ','
('explosion_huge' , 0),
^
spock/mcp/mcdata.py:138:1: W191 indentation contains tabs
('fireworks_spark' , 0),
^
spock/mcp/mcdata.py:138:21: E203 whitespace before ','
('fireworks_spark' , 0),
^
spock/mcp/mcdata.py:139:1: W191 indentation contains tabs
('water_bubble' , 0),
^
spock/mcp/mcdata.py:139:21: E203 whitespace before ','
('water_bubble' , 0),
^
spock/mcp/mcdata.py:140:1: W191 indentation contains tabs
('water_splash' , 0),
^
spock/mcp/mcdata.py:140:21: E203 whitespace before ','
('water_splash' , 0),
^
spock/mcp/mcdata.py:141:1: W191 indentation contains tabs
('water_wake' , 0),
^
spock/mcp/mcdata.py:141:21: E203 whitespace before ','
('water_wake' , 0),
^
spock/mcp/mcdata.py:142:1: W191 indentation contains tabs
('suspended' , 0),
^
spock/mcp/mcdata.py:142:21: E203 whitespace before ','
('suspended' , 0),
^
spock/mcp/mcdata.py:143:1: W191 indentation contains tabs
('suspended_depth' , 0),
^
spock/mcp/mcdata.py:143:21: E203 whitespace before ','
('suspended_depth' , 0),
^
spock/mcp/mcdata.py:144:1: W191 indentation contains tabs
('crit' , 0),
^
spock/mcp/mcdata.py:144:21: E203 whitespace before ','
('crit' , 0),
^
spock/mcp/mcdata.py:145:1: W191 indentation contains tabs
('crit_magic' , 0),
^
spock/mcp/mcdata.py:145:21: E203 whitespace before ','
('crit_magic' , 0),
^
spock/mcp/mcdata.py:146:1: W191 indentation contains tabs
('smoke_normal' , 0),
^
spock/mcp/mcdata.py:146:21: E203 whitespace before ','
('smoke_normal' , 0),
^
spock/mcp/mcdata.py:147:1: W191 indentation contains tabs
('smoke_large' , 0),
^
spock/mcp/mcdata.py:147:21: E203 whitespace before ','
('smoke_large' , 0),
^
spock/mcp/mcdata.py:148:1: W191 indentation contains tabs
('spell' , 0),
^
spock/mcp/mcdata.py:148:21: E203 whitespace before ','
('spell' , 0),
^
spock/mcp/mcdata.py:149:1: W191 indentation contains tabs
('spell_instant' , 0),
^
spock/mcp/mcdata.py:149:21: E203 whitespace before ','
('spell_instant' , 0),
^
spock/mcp/mcdata.py:150:1: W191 indentation contains tabs
('spell_mob' , 0),
^
spock/mcp/mcdata.py:150:21: E203 whitespace before ','
('spell_mob' , 0),
^
spock/mcp/mcdata.py:151:1: W191 indentation contains tabs
('spell_mob_ambient', 0),
^
spock/mcp/mcdata.py:152:1: W191 indentation contains tabs
('spell_witch' , 0),
^
spock/mcp/mcdata.py:152:21: E203 whitespace before ','
('spell_witch' , 0),
^
spock/mcp/mcdata.py:153:1: W191 indentation contains tabs
('drip_water' , 0),
^
spock/mcp/mcdata.py:153:21: E203 whitespace before ','
('drip_water' , 0),
^
spock/mcp/mcdata.py:154:1: W191 indentation contains tabs
('drip_lava' , 0),
^
spock/mcp/mcdata.py:154:21: E203 whitespace before ','
('drip_lava' , 0),
^
spock/mcp/mcdata.py:155:1: W191 indentation contains tabs
('villager_angry' , 0),
^
spock/mcp/mcdata.py:155:21: E203 whitespace before ','
('villager_angry' , 0),
^
spock/mcp/mcdata.py:156:1: W191 indentation contains tabs
('villager_happy' , 0),
^
spock/mcp/mcdata.py:156:21: E203 whitespace before ','
('villager_happy' , 0),
^
spock/mcp/mcdata.py:157:1: W191 indentation contains tabs
('town_aura' , 0),
^
spock/mcp/mcdata.py:157:21: E203 whitespace before ','
('town_aura' , 0),
^
spock/mcp/mcdata.py:158:1: W191 indentation contains tabs
('note' , 0),
^
spock/mcp/mcdata.py:158:21: E203 whitespace before ','
('note' , 0),
^
spock/mcp/mcdata.py:159:1: W191 indentation contains tabs
('portal' , 0),
^
spock/mcp/mcdata.py:159:21: E203 whitespace before ','
('portal' , 0),
^
spock/mcp/mcdata.py:160:1: W191 indentation contains tabs
('enchantment_table', 0),
^
spock/mcp/mcdata.py:161:1: W191 indentation contains tabs
('flame' , 0),
^
spock/mcp/mcdata.py:161:21: E203 whitespace before ','
('flame' , 0),
^
spock/mcp/mcdata.py:162:1: W191 indentation contains tabs
('lava' , 0),
^
spock/mcp/mcdata.py:162:21: E203 whitespace before ','
('lava' , 0),
^
spock/mcp/mcdata.py:163:1: W191 indentation contains tabs
('footstep' , 0),
^
spock/mcp/mcdata.py:163:21: E203 whitespace before ','
('footstep' , 0),
^
spock/mcp/mcdata.py:164:1: W191 indentation contains tabs
('cloud' , 0),
^
spock/mcp/mcdata.py:164:21: E203 whitespace before ','
('cloud' , 0),
^
spock/mcp/mcdata.py:165:1: W191 indentation contains tabs
('redstone' , 0),
^
spock/mcp/mcdata.py:165:21: E203 whitespace before ','
('redstone' , 0),
^
spock/mcp/mcdata.py:166:1: W191 indentation contains tabs
('snowball' , 0),
^
spock/mcp/mcdata.py:166:21: E203 whitespace before ','
('snowball' , 0),
^
spock/mcp/mcdata.py:167:1: W191 indentation contains tabs
('snow_shovel' , 0),
^
spock/mcp/mcdata.py:167:21: E203 whitespace before ','
('snow_shovel' , 0),
^
spock/mcp/mcdata.py:168:1: W191 indentation contains tabs
('slime' , 0),
^
spock/mcp/mcdata.py:168:21: E203 whitespace before ','
('slime' , 0),
^
spock/mcp/mcdata.py:169:1: W191 indentation contains tabs
('heart' , 0),
^
spock/mcp/mcdata.py:169:21: E203 whitespace before ','
('heart' , 0),
^
spock/mcp/mcdata.py:170:1: W191 indentation contains tabs
('barrier' , 0),
^
spock/mcp/mcdata.py:170:21: E203 whitespace before ','
('barrier' , 0),
^
spock/mcp/mcdata.py:171:1: W191 indentation contains tabs
('icon_crack' , 2),
^
spock/mcp/mcdata.py:171:21: E203 whitespace before ','
('icon_crack' , 2),
^
spock/mcp/mcdata.py:172:1: W191 indentation contains tabs
('block_crack' , 1),
^
spock/mcp/mcdata.py:172:21: E203 whitespace before ','
('block_crack' , 1),
^
spock/mcp/mcdata.py:173:1: W191 indentation contains tabs
('block_dust' , 1),
^
spock/mcp/mcdata.py:173:21: E203 whitespace before ','
('block_dust' , 1),
^
spock/mcp/mcdata.py:174:1: W191 indentation contains tabs
('water_drop' , 0),
^
spock/mcp/mcdata.py:174:21: E203 whitespace before ','
('water_drop' , 0),
^
spock/mcp/mcdata.py:175:1: W191 indentation contains tabs
('item_take' , 0),
^
spock/mcp/mcdata.py:175:21: E203 whitespace before ','
('item_take' , 0),
^
spock/mcp/mcdata.py:176:1: W191 indentation contains tabs
('mob_appearance' , 0),
^
spock/mcp/mcdata.py:176:21: E203 whitespace before ','
('mob_appearance' , 0),
^
spock/mcp/mcdata.py:179:1: E265 block comment should start with '# '
#Structs formatted for readibility
^
spock/mcp/mcdata.py:180:1: E265 block comment should start with '# '
#Packed into tuples at end of file
^
spock/mcp/mcdata.py:182:1: W191 indentation contains tabs
HANDSHAKE_STATE: {
^
spock/mcp/mcdata.py:183:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {},
^
spock/mcp/mcdata.py:184:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:185:1: W191 indentation contains tabs
0x00: 'Handshake',
^
spock/mcp/mcdata.py:186:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:187:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:189:1: W191 indentation contains tabs
STATUS_STATE: {
^
spock/mcp/mcdata.py:190:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:191:1: W191 indentation contains tabs
0x00: 'Status Response',
^
spock/mcp/mcdata.py:192:1: W191 indentation contains tabs
0x01: 'Status Ping',
^
spock/mcp/mcdata.py:193:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:194:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:195:1: W191 indentation contains tabs
0x00: 'Status Request',
^
spock/mcp/mcdata.py:196:1: W191 indentation contains tabs
0x01: 'Status Ping',
^
spock/mcp/mcdata.py:197:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:198:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:200:1: W191 indentation contains tabs
LOGIN_STATE: {
^
spock/mcp/mcdata.py:201:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:202:1: W191 indentation contains tabs
0x00: 'Disconnect',
^
spock/mcp/mcdata.py:203:1: W191 indentation contains tabs
0x01: 'Encryption Request',
^
spock/mcp/mcdata.py:204:1: W191 indentation contains tabs
0x02: 'Login Success',
^
spock/mcp/mcdata.py:205:1: W191 indentation contains tabs
0x03: 'Set Compression',
^
spock/mcp/mcdata.py:206:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:207:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:208:1: W191 indentation contains tabs
0x00: 'Login Start',
^
spock/mcp/mcdata.py:209:1: W191 indentation contains tabs
0x01: 'Encryption Response',
^
spock/mcp/mcdata.py:210:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:211:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:213:1: W191 indentation contains tabs
PLAY_STATE: {
^
spock/mcp/mcdata.py:214:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:215:1: W191 indentation contains tabs
0x00: 'Keep Alive',
^
spock/mcp/mcdata.py:216:1: W191 indentation contains tabs
0x01: 'Join Game',
^
spock/mcp/mcdata.py:217:1: W191 indentation contains tabs
0x02: 'Chat Message',
^
spock/mcp/mcdata.py:218:1: W191 indentation contains tabs
0x03: 'Time Update',
^
spock/mcp/mcdata.py:219:1: W191 indentation contains tabs
0x04: 'Entity Equipment',
^
spock/mcp/mcdata.py:220:1: W191 indentation contains tabs
0x05: 'Spawn Position',
^
spock/mcp/mcdata.py:221:1: W191 indentation contains tabs
0x06: 'Update Health',
^
spock/mcp/mcdata.py:222:1: W191 indentation contains tabs
0x07: 'Respawn',
^
spock/mcp/mcdata.py:223:1: W191 indentation contains tabs
0x08: 'Player Position and Look',
^
spock/mcp/mcdata.py:224:1: W191 indentation contains tabs
0x09: 'Held Item Change',
^
spock/mcp/mcdata.py:225:1: W191 indentation contains tabs
0x0A: 'Use Bed',
^
spock/mcp/mcdata.py:226:1: W191 indentation contains tabs
0x0B: 'Animation',
^
spock/mcp/mcdata.py:227:1: W191 indentation contains tabs
0x0C: 'Spawn Player',
^
spock/mcp/mcdata.py:228:1: W191 indentation contains tabs
0x0D: 'Collect Item',
^
spock/mcp/mcdata.py:229:1: W191 indentation contains tabs
0x0E: 'Spawn Object',
^
spock/mcp/mcdata.py:230:1: W191 indentation contains tabs
0x0F: 'Spawn Mob',
^
spock/mcp/mcdata.py:231:1: W191 indentation contains tabs
0x10: 'Spawn Painting',
^
spock/mcp/mcdata.py:232:1: W191 indentation contains tabs
0x11: 'Spawn Experience Orb',
^
spock/mcp/mcdata.py:233:1: W191 indentation contains tabs
0x12: 'Entity Velocity',
^
spock/mcp/mcdata.py:234:1: W191 indentation contains tabs
0x13: 'Destroy Entities',
^
spock/mcp/mcdata.py:235:1: W191 indentation contains tabs
0x14: 'Entity',
^
spock/mcp/mcdata.py:236:1: W191 indentation contains tabs
0x15: 'Entity Relative Move',
^
spock/mcp/mcdata.py:237:1: W191 indentation contains tabs
0x16: 'Entity Look',
^
spock/mcp/mcdata.py:238:1: W191 indentation contains tabs
0x17: 'Entity Look and Relative Move',
^
spock/mcp/mcdata.py:239:1: W191 indentation contains tabs
0x18: 'Entity Teleport',
^
spock/mcp/mcdata.py:240:1: W191 indentation contains tabs
0x19: 'Entity Head Look',
^
spock/mcp/mcdata.py:241:1: W191 indentation contains tabs
0x1A: 'Entity Status',
^
spock/mcp/mcdata.py:242:1: W191 indentation contains tabs
0x1B: 'Attach Entity',
^
spock/mcp/mcdata.py:243:1: W191 indentation contains tabs
0x1C: 'Entity Metadata',
^
spock/mcp/mcdata.py:244:1: W191 indentation contains tabs
0x1D: 'Entity Effect',
^
spock/mcp/mcdata.py:245:1: W191 indentation contains tabs
0x1E: 'Remove Entity Effect',
^
spock/mcp/mcdata.py:246:1: W191 indentation contains tabs
0x1F: 'Set Experience',
^
spock/mcp/mcdata.py:247:1: W191 indentation contains tabs
0x20: 'Entity Properties',
^
spock/mcp/mcdata.py:248:1: W191 indentation contains tabs
0x21: 'Chunk Data',
^
spock/mcp/mcdata.py:249:1: W191 indentation contains tabs
0x22: 'Multi Block Change',
^
spock/mcp/mcdata.py:250:1: W191 indentation contains tabs
0x23: 'Block Change',
^
spock/mcp/mcdata.py:251:1: W191 indentation contains tabs
0x24: 'Block Action',
^
spock/mcp/mcdata.py:252:1: W191 indentation contains tabs
0x25: 'Block Break Animation',
^
spock/mcp/mcdata.py:253:1: W191 indentation contains tabs
0x26: 'Map Chunk Bulk',
^
spock/mcp/mcdata.py:254:1: W191 indentation contains tabs
0x27: 'Explosion',
^
spock/mcp/mcdata.py:255:1: W191 indentation contains tabs
0x28: 'Effect',
^
spock/mcp/mcdata.py:256:1: W191 indentation contains tabs
0x29: 'Sound Effect',
^
spock/mcp/mcdata.py:257:1: W191 indentation contains tabs
0x2A: 'Particle',
^
spock/mcp/mcdata.py:258:1: W191 indentation contains tabs
0x2B: 'Change Game State',
^
spock/mcp/mcdata.py:259:1: W191 indentation contains tabs
0x2C: 'Spawn Global Entity',
^
spock/mcp/mcdata.py:260:1: W191 indentation contains tabs
0x2D: 'Open Window',
^
spock/mcp/mcdata.py:261:1: W191 indentation contains tabs
0x2E: 'Close Window',
^
spock/mcp/mcdata.py:262:1: W191 indentation contains tabs
0x2F: 'Set Slot',
^
spock/mcp/mcdata.py:263:1: W191 indentation contains tabs
0x30: 'Window Items',
^
spock/mcp/mcdata.py:264:1: W191 indentation contains tabs
0x31: 'Window Property',
^
spock/mcp/mcdata.py:265:1: W191 indentation contains tabs
0x32: 'Confirm Transaction',
^
spock/mcp/mcdata.py:266:1: W191 indentation contains tabs
0x33: 'Update Sign',
^
spock/mcp/mcdata.py:267:1: W191 indentation contains tabs
0x34: 'Maps',
^
spock/mcp/mcdata.py:268:1: W191 indentation contains tabs
0x35: 'Update Block Entity',
^
spock/mcp/mcdata.py:269:1: W191 indentation contains tabs
0x36: 'Sign Editor Open',
^
spock/mcp/mcdata.py:270:1: W191 indentation contains tabs
0x37: 'Statistics',
^
spock/mcp/mcdata.py:271:1: W191 indentation contains tabs
0x38: 'Player List Item',
^
spock/mcp/mcdata.py:272:1: W191 indentation contains tabs
0x39: 'Player Abilities',
^
spock/mcp/mcdata.py:273:1: W191 indentation contains tabs
0x3A: 'Tab-Complete',
^
spock/mcp/mcdata.py:274:1: W191 indentation contains tabs
0x3B: 'Scoreboard Objective',
^
spock/mcp/mcdata.py:275:1: W191 indentation contains tabs
0x3C: 'Update Score',
^
spock/mcp/mcdata.py:276:1: W191 indentation contains tabs
0x3D: 'Display Scoreboard',
^
spock/mcp/mcdata.py:277:1: W191 indentation contains tabs
0x3E: 'Teams',
^
spock/mcp/mcdata.py:278:1: W191 indentation contains tabs
0x3F: 'Plugin Message',
^
spock/mcp/mcdata.py:279:1: W191 indentation contains tabs
0x40: 'Disconnect',
^
spock/mcp/mcdata.py:280:1: W191 indentation contains tabs
0x41: 'Server Difficulty',
^
spock/mcp/mcdata.py:281:1: W191 indentation contains tabs
0x42: 'Combat Event',
^
spock/mcp/mcdata.py:282:1: W191 indentation contains tabs
0x43: 'Camera',
^
spock/mcp/mcdata.py:283:1: W191 indentation contains tabs
0x44: 'World Border',
^
spock/mcp/mcdata.py:284:1: W191 indentation contains tabs
0x45: 'Title',
^
spock/mcp/mcdata.py:285:1: W191 indentation contains tabs
0x46: 'Set Compression',
^
spock/mcp/mcdata.py:286:1: W191 indentation contains tabs
0x47: 'Player List Header/Footer',
^
spock/mcp/mcdata.py:287:1: W191 indentation contains tabs
0x48: 'Resource Pack Send',
^
spock/mcp/mcdata.py:288:1: W191 indentation contains tabs
0x49: 'Update Entity NBT',
^
spock/mcp/mcdata.py:289:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:291:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:292:1: W191 indentation contains tabs
0x00: 'Keep Alive',
^
spock/mcp/mcdata.py:293:1: W191 indentation contains tabs
0x01: 'Chat Message',
^
spock/mcp/mcdata.py:294:1: W191 indentation contains tabs
0x02: 'Use Entity',
^
spock/mcp/mcdata.py:295:1: W191 indentation contains tabs
0x03: 'Player',
^
spock/mcp/mcdata.py:296:1: W191 indentation contains tabs
0x04: 'Player Position',
^
spock/mcp/mcdata.py:297:1: W191 indentation contains tabs
0x05: 'Player Look',
^
spock/mcp/mcdata.py:298:1: W191 indentation contains tabs
0x06: 'Player Position and Look',
^
spock/mcp/mcdata.py:299:1: W191 indentation contains tabs
0x07: 'Player Digging',
^
spock/mcp/mcdata.py:300:1: W191 indentation contains tabs
0x08: 'Player Block Placement',
^
spock/mcp/mcdata.py:301:1: W191 indentation contains tabs
0x09: 'Held Item Change',
^
spock/mcp/mcdata.py:302:1: W191 indentation contains tabs
0x0A: 'Animation',
^
spock/mcp/mcdata.py:303:1: W191 indentation contains tabs
0x0B: 'Entity Action',
^
spock/mcp/mcdata.py:304:1: W191 indentation contains tabs
0x0C: 'Steer Vehicle',
^
spock/mcp/mcdata.py:305:1: W191 indentation contains tabs
0x0D: 'Close Window',
^
spock/mcp/mcdata.py:306:1: W191 indentation contains tabs
0x0E: 'Click Window',
^
spock/mcp/mcdata.py:307:1: W191 indentation contains tabs
0x0F: 'Confirm Transaction',
^
spock/mcp/mcdata.py:308:1: W191 indentation contains tabs
0x10: 'Creative Inventory Action',
^
spock/mcp/mcdata.py:309:1: W191 indentation contains tabs
0x11: 'Enchant Item',
^
spock/mcp/mcdata.py:310:1: W191 indentation contains tabs
0x12: 'Update Sign',
^
spock/mcp/mcdata.py:311:1: W191 indentation contains tabs
0x13: 'Player Abilities',
^
spock/mcp/mcdata.py:312:1: W191 indentation contains tabs
0x14: 'Tab-Complete',
^
spock/mcp/mcdata.py:313:1: W191 indentation contains tabs
0x15: 'Client Settings',
^
spock/mcp/mcdata.py:314:1: W191 indentation contains tabs
0x16: 'Client Status',
^
spock/mcp/mcdata.py:315:1: W191 indentation contains tabs
0x17: 'Plugin Message',
^
spock/mcp/mcdata.py:316:1: W191 indentation contains tabs
0x18: 'Spectate',
^
spock/mcp/mcdata.py:317:1: W191 indentation contains tabs
0x19: 'Resource Pack Status',
^
spock/mcp/mcdata.py:318:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:319:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:323:1: W191 indentation contains tabs
HANDSHAKE_STATE: {
^
spock/mcp/mcdata.py:324:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:325:1: W191 indentation contains tabs
#Empty, server doesn't handshake
^
spock/mcp/mcdata.py:325:4: E265 block comment should start with '# '
#Empty, server doesn't handshake
^
spock/mcp/mcdata.py:326:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:327:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:328:1: W191 indentation contains tabs
#Handshake
^
spock/mcp/mcdata.py:328:4: E265 block comment should start with '# '
#Handshake
^
spock/mcp/mcdata.py:329:1: W191 indentation contains tabs
0x00: (
^
spock/mcp/mcdata.py:330:1: W191 indentation contains tabs
(MC_VARINT, 'protocol_version'),
^
spock/mcp/mcdata.py:331:1: W191 indentation contains tabs
(MC_STRING, 'host'),
^
spock/mcp/mcdata.py:332:1: W191 indentation contains tabs
(MC_USHORT, 'port'),
^
spock/mcp/mcdata.py:333:1: W191 indentation contains tabs
(MC_VARINT, 'next_state'),
^
spock/mcp/mcdata.py:334:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:335:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:336:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:338:1: W191 indentation contains tabs
STATUS_STATE: {
^
spock/mcp/mcdata.py:339:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:340:1: W191 indentation contains tabs
#Status Response
^
spock/mcp/mcdata.py:340:4: E265 block comment should start with '# '
#Status Response
^
spock/mcp/mcdata.py:341:1: W191 indentation contains tabs
0x00: (
^
spock/mcp/mcdata.py:342:1: W191 indentation contains tabs
(MC_STRING, 'response'),
^
spock/mcp/mcdata.py:343:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:344:1: W191 indentation contains tabs
#Status Ping
^
spock/mcp/mcdata.py:344:4: E265 block comment should start with '# '
#Status Ping
^
spock/mcp/mcdata.py:345:1: W191 indentation contains tabs
0x01: (
^
spock/mcp/mcdata.py:346:1: W191 indentation contains tabs
(MC_LONG, 'time'),
^
spock/mcp/mcdata.py:347:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:348:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:349:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:350:1: W191 indentation contains tabs
#Status Request
^
spock/mcp/mcdata.py:350:4: E265 block comment should start with '# '
#Status Request
^
spock/mcp/mcdata.py:351:1: W191 indentation contains tabs
0x00: (
^
spock/mcp/mcdata.py:352:1: W191 indentation contains tabs
#Empty Packet
^
spock/mcp/mcdata.py:352:5: E265 block comment should start with '# '
#Empty Packet
^
spock/mcp/mcdata.py:353:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:354:1: W191 indentation contains tabs
#Status Ping
^
spock/mcp/mcdata.py:354:4: E265 block comment should start with '# '
#Status Ping
^
spock/mcp/mcdata.py:355:1: W191 indentation contains tabs
0x01: (
^
spock/mcp/mcdata.py:356:1: W191 indentation contains tabs
(MC_LONG, 'time'),
^
spock/mcp/mcdata.py:357:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:358:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:359:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:361:1: W191 indentation contains tabs
LOGIN_STATE: {
^
spock/mcp/mcdata.py:362:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:363:1: W191 indentation contains tabs
#Disconnect
^
spock/mcp/mcdata.py:363:4: E265 block comment should start with '# '
#Disconnect
^
spock/mcp/mcdata.py:364:1: W191 indentation contains tabs
0x00: (
^
spock/mcp/mcdata.py:365:1: W191 indentation contains tabs
(MC_CHAT, 'json_data'),
^
spock/mcp/mcdata.py:366:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:367:1: W191 indentation contains tabs
#Encryption Request
^
spock/mcp/mcdata.py:367:4: E265 block comment should start with '# '
#Encryption Request
^
spock/mcp/mcdata.py:368:1: W191 indentation contains tabs
0x01: (
^
spock/mcp/mcdata.py:369:1: W191 indentation contains tabs
(MC_STRING, 'server_id'),
^
spock/mcp/mcdata.py:370:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:370:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:371:1: W191 indentation contains tabs
#byte string 'public_key'
^
spock/mcp/mcdata.py:371:6: E131 continuation line unaligned for hanging indent
#byte string 'public_key'
^
spock/mcp/mcdata.py:371:6: E265 block comment should start with '# '
#byte string 'public_key'
^
spock/mcp/mcdata.py:372:1: W191 indentation contains tabs
#byte string 'verify_token'
^
spock/mcp/mcdata.py:372:6: E265 block comment should start with '# '
#byte string 'verify_token'
^
spock/mcp/mcdata.py:373:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:374:1: W191 indentation contains tabs
#Login Success
^
spock/mcp/mcdata.py:374:4: E265 block comment should start with '# '
#Login Success
^
spock/mcp/mcdata.py:375:1: W191 indentation contains tabs
0x02: (
^
spock/mcp/mcdata.py:376:1: W191 indentation contains tabs
(MC_STRING, 'uuid'),
^
spock/mcp/mcdata.py:377:1: W191 indentation contains tabs
(MC_STRING, 'username'),
^
spock/mcp/mcdata.py:378:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:379:1: W191 indentation contains tabs
#Set Compression
^
spock/mcp/mcdata.py:379:4: E265 block comment should start with '# '
#Set Compression
^
spock/mcp/mcdata.py:380:1: W191 indentation contains tabs
0x03: (
^
spock/mcp/mcdata.py:381:1: W191 indentation contains tabs
(MC_VARINT, 'threshold'),
^
spock/mcp/mcdata.py:382:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:383:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:384:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
spock/mcp/mcdata.py:385:1: W191 indentation contains tabs
#Login Start
^
spock/mcp/mcdata.py:385:4: E265 block comment should start with '# '
#Login Start
^
spock/mcp/mcdata.py:386:1: W191 indentation contains tabs
0x00: (
^
spock/mcp/mcdata.py:387:1: W191 indentation contains tabs
(MC_STRING, 'name'),
^
spock/mcp/mcdata.py:388:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:389:1: W191 indentation contains tabs
#Encryption Response
^
spock/mcp/mcdata.py:389:4: E265 block comment should start with '# '
#Encryption Response
^
spock/mcp/mcdata.py:390:1: W191 indentation contains tabs
0x01: (
^
spock/mcp/mcdata.py:391:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:391:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:392:1: W191 indentation contains tabs
#byte string 'shared_secret'
^
spock/mcp/mcdata.py:392:6: E131 continuation line unaligned for hanging indent
#byte string 'shared_secret'
^
spock/mcp/mcdata.py:392:6: E265 block comment should start with '# '
#byte string 'shared_secret'
^
spock/mcp/mcdata.py:393:1: W191 indentation contains tabs
#byte string 'verify token'
^
spock/mcp/mcdata.py:393:6: E265 block comment should start with '# '
#byte string 'verify token'
^
spock/mcp/mcdata.py:394:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:395:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:396:1: W191 indentation contains tabs
},
^
spock/mcp/mcdata.py:398:1: W191 indentation contains tabs
PLAY_STATE: {
^
spock/mcp/mcdata.py:399:1: W191 indentation contains tabs
SERVER_TO_CLIENT: {
^
spock/mcp/mcdata.py:400:1: W191 indentation contains tabs
#Keep Alive
^
spock/mcp/mcdata.py:400:4: E265 block comment should start with '# '
#Keep Alive
^
spock/mcp/mcdata.py:401:1: W191 indentation contains tabs
0x00: (
^
spock/mcp/mcdata.py:402:1: W191 indentation contains tabs
(MC_VARINT, 'keep_alive'),
^
spock/mcp/mcdata.py:403:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:404:1: W191 indentation contains tabs
#Join Game
^
spock/mcp/mcdata.py:404:4: E265 block comment should start with '# '
#Join Game
^
spock/mcp/mcdata.py:405:1: W191 indentation contains tabs
0x01: (
^
spock/mcp/mcdata.py:406:1: W191 indentation contains tabs
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:406:14: E203 whitespace before ','
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:407:1: W191 indentation contains tabs
(MC_UBYTE , 'gamemode'),
^
spock/mcp/mcdata.py:407:14: E203 whitespace before ','
(MC_UBYTE , 'gamemode'),
^
spock/mcp/mcdata.py:408:1: W191 indentation contains tabs
(MC_BYTE , 'dimension'),
^
spock/mcp/mcdata.py:408:14: E203 whitespace before ','
(MC_BYTE , 'dimension'),
^
spock/mcp/mcdata.py:409:1: W191 indentation contains tabs
(MC_UBYTE , 'difficulty'),
^
spock/mcp/mcdata.py:409:14: E203 whitespace before ','
(MC_UBYTE , 'difficulty'),
^
spock/mcp/mcdata.py:410:1: W191 indentation contains tabs
(MC_UBYTE , 'max_players'),
^
spock/mcp/mcdata.py:410:14: E203 whitespace before ','
(MC_UBYTE , 'max_players'),
^
spock/mcp/mcdata.py:411:1: W191 indentation contains tabs
(MC_STRING, 'level_type'),
^
spock/mcp/mcdata.py:412:1: W191 indentation contains tabs
(MC_BOOL , 'reduce_debug'),
^
spock/mcp/mcdata.py:412:14: E203 whitespace before ','
(MC_BOOL , 'reduce_debug'),
^
spock/mcp/mcdata.py:413:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:414:1: W191 indentation contains tabs
#Chat Message
^
spock/mcp/mcdata.py:414:4: E265 block comment should start with '# '
#Chat Message
^
spock/mcp/mcdata.py:415:1: W191 indentation contains tabs
0x02: (
^
spock/mcp/mcdata.py:416:1: W191 indentation contains tabs
(MC_CHAT, 'json_data'),
^
spock/mcp/mcdata.py:417:1: W191 indentation contains tabs
(MC_BYTE, 'position'),
^
spock/mcp/mcdata.py:418:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:419:1: W191 indentation contains tabs
#Time Update
^
spock/mcp/mcdata.py:419:4: E265 block comment should start with '# '
#Time Update
^
spock/mcp/mcdata.py:420:1: W191 indentation contains tabs
0x03: (
^
spock/mcp/mcdata.py:421:1: W191 indentation contains tabs
(MC_LONG, 'world_age'),
^
spock/mcp/mcdata.py:422:1: W191 indentation contains tabs
(MC_LONG, 'time_of_day'),
^
spock/mcp/mcdata.py:423:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:424:1: W191 indentation contains tabs
#Entity Equipment
^
spock/mcp/mcdata.py:424:4: E265 block comment should start with '# '
#Entity Equipment
^
spock/mcp/mcdata.py:425:1: W191 indentation contains tabs
0x04: (
^
spock/mcp/mcdata.py:426:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:427:1: W191 indentation contains tabs
(MC_SHORT , 'slot'),
^
spock/mcp/mcdata.py:427:14: E203 whitespace before ','
(MC_SHORT , 'slot'),
^
spock/mcp/mcdata.py:428:1: W191 indentation contains tabs
(MC_SLOT , 'item'),
^
spock/mcp/mcdata.py:428:14: E203 whitespace before ','
(MC_SLOT , 'item'),
^
spock/mcp/mcdata.py:429:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:430:1: W191 indentation contains tabs
#Spawn Position
^
spock/mcp/mcdata.py:430:4: E265 block comment should start with '# '
#Spawn Position
^
spock/mcp/mcdata.py:431:1: W191 indentation contains tabs
0x05: (
^
spock/mcp/mcdata.py:432:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:433:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:434:1: W191 indentation contains tabs
#Update Health
^
spock/mcp/mcdata.py:434:4: E265 block comment should start with '# '
#Update Health
^
spock/mcp/mcdata.py:435:1: W191 indentation contains tabs
0x06: (
^
spock/mcp/mcdata.py:436:1: W191 indentation contains tabs
(MC_FLOAT , 'health'),
^
spock/mcp/mcdata.py:436:14: E203 whitespace before ','
(MC_FLOAT , 'health'),
^
spock/mcp/mcdata.py:437:1: W191 indentation contains tabs
(MC_VARINT, 'food'),
^
spock/mcp/mcdata.py:438:1: W191 indentation contains tabs
(MC_FLOAT , 'saturation'),
^
spock/mcp/mcdata.py:438:14: E203 whitespace before ','
(MC_FLOAT , 'saturation'),
^
spock/mcp/mcdata.py:439:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:440:1: W191 indentation contains tabs
#Respawn
^
spock/mcp/mcdata.py:440:4: E265 block comment should start with '# '
#Respawn
^
spock/mcp/mcdata.py:441:1: W191 indentation contains tabs
0x07: (
^
spock/mcp/mcdata.py:442:1: W191 indentation contains tabs
(MC_INT , 'dimension'),
^
spock/mcp/mcdata.py:442:14: E203 whitespace before ','
(MC_INT , 'dimension'),
^
spock/mcp/mcdata.py:443:1: W191 indentation contains tabs
(MC_UBYTE , 'difficulty'),
^
spock/mcp/mcdata.py:443:14: E203 whitespace before ','
(MC_UBYTE , 'difficulty'),
^
spock/mcp/mcdata.py:444:1: W191 indentation contains tabs
(MC_UBYTE , 'gamemode'),
^
spock/mcp/mcdata.py:444:14: E203 whitespace before ','
(MC_UBYTE , 'gamemode'),
^
spock/mcp/mcdata.py:445:1: W191 indentation contains tabs
(MC_STRING, 'level_type'),
^
spock/mcp/mcdata.py:446:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:447:1: W191 indentation contains tabs
#Player Position and Look
^
spock/mcp/mcdata.py:447:4: E265 block comment should start with '# '
#Player Position and Look
^
spock/mcp/mcdata.py:448:1: W191 indentation contains tabs
0x08: (
^
spock/mcp/mcdata.py:449:1: W191 indentation contains tabs
(MC_DOUBLE, 'x'),
^
spock/mcp/mcdata.py:450:1: W191 indentation contains tabs
(MC_DOUBLE, 'y'),
^
spock/mcp/mcdata.py:451:1: W191 indentation contains tabs
(MC_DOUBLE, 'z'),
^
spock/mcp/mcdata.py:452:1: W191 indentation contains tabs
(MC_FLOAT , 'yaw'),
^
spock/mcp/mcdata.py:452:14: E203 whitespace before ','
(MC_FLOAT , 'yaw'),
^
spock/mcp/mcdata.py:453:1: W191 indentation contains tabs
(MC_FLOAT , 'pitch'),
^
spock/mcp/mcdata.py:453:14: E203 whitespace before ','
(MC_FLOAT , 'pitch'),
^
spock/mcp/mcdata.py:454:1: W191 indentation contains tabs
(MC_BYTE , 'flags'),
^
spock/mcp/mcdata.py:454:14: E203 whitespace before ','
(MC_BYTE , 'flags'),
^
spock/mcp/mcdata.py:455:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:456:1: W191 indentation contains tabs
#Held Item Change
^
spock/mcp/mcdata.py:456:4: E265 block comment should start with '# '
#Held Item Change
^
spock/mcp/mcdata.py:457:1: W191 indentation contains tabs
0x09: (
^
spock/mcp/mcdata.py:458:1: W191 indentation contains tabs
(MC_BYTE, 'slot'),
^
spock/mcp/mcdata.py:459:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:460:1: W191 indentation contains tabs
#Use Bed
^
spock/mcp/mcdata.py:460:4: E265 block comment should start with '# '
#Use Bed
^
spock/mcp/mcdata.py:461:1: W191 indentation contains tabs
0x0A: (
^
spock/mcp/mcdata.py:462:1: W191 indentation contains tabs
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:462:16: E203 whitespace before ','
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:463:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:464:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:465:1: W191 indentation contains tabs
#Animation
^
spock/mcp/mcdata.py:465:4: E265 block comment should start with '# '
#Animation
^
spock/mcp/mcdata.py:466:1: W191 indentation contains tabs
0x0B: (
^
spock/mcp/mcdata.py:467:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:468:1: W191 indentation contains tabs
(MC_UBYTE , 'animation'),
^
spock/mcp/mcdata.py:468:14: E203 whitespace before ','
(MC_UBYTE , 'animation'),
^
spock/mcp/mcdata.py:469:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:470:1: W191 indentation contains tabs
#Spawn Player
^
spock/mcp/mcdata.py:470:4: E265 block comment should start with '# '
#Spawn Player
^
spock/mcp/mcdata.py:471:1: W191 indentation contains tabs
0x0C: (
^
spock/mcp/mcdata.py:472:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:473:1: W191 indentation contains tabs
(MC_UUID , 'uuid'),
^
spock/mcp/mcdata.py:473:14: E203 whitespace before ','
(MC_UUID , 'uuid'),
^
spock/mcp/mcdata.py:474:1: W191 indentation contains tabs
(MC_FP_INT, 'x'),
^
spock/mcp/mcdata.py:475:1: W191 indentation contains tabs
(MC_FP_INT, 'y'),
^
spock/mcp/mcdata.py:476:1: W191 indentation contains tabs
(MC_FP_INT, 'z'),
^
spock/mcp/mcdata.py:477:1: W191 indentation contains tabs
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:477:14: E203 whitespace before ','
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:478:1: W191 indentation contains tabs
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:478:14: E203 whitespace before ','
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:479:1: W191 indentation contains tabs
(MC_SHORT , 'current_item'),
^
spock/mcp/mcdata.py:479:14: E203 whitespace before ','
(MC_SHORT , 'current_item'),
^
spock/mcp/mcdata.py:480:1: W191 indentation contains tabs
(MC_META , 'metadata'),
^
spock/mcp/mcdata.py:480:14: E203 whitespace before ','
(MC_META , 'metadata'),
^
spock/mcp/mcdata.py:481:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:482:1: W191 indentation contains tabs
#Collect Item
^
spock/mcp/mcdata.py:482:4: E265 block comment should start with '# '
#Collect Item
^
spock/mcp/mcdata.py:483:1: W191 indentation contains tabs
0x0D: (
^
spock/mcp/mcdata.py:484:1: W191 indentation contains tabs
(MC_VARINT, 'collected_eid'),
^
spock/mcp/mcdata.py:485:1: W191 indentation contains tabs
(MC_VARINT, 'collector_eid'),
^
spock/mcp/mcdata.py:486:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:487:1: W191 indentation contains tabs
#Spawn Object
^
spock/mcp/mcdata.py:487:4: E265 block comment should start with '# '
#Spawn Object
^
spock/mcp/mcdata.py:488:1: W191 indentation contains tabs
0x0E: (
^
spock/mcp/mcdata.py:489:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:490:1: W191 indentation contains tabs
(MC_UBYTE , 'obj_type'),
^
spock/mcp/mcdata.py:490:14: E203 whitespace before ','
(MC_UBYTE , 'obj_type'),
^
spock/mcp/mcdata.py:491:1: W191 indentation contains tabs
(MC_FP_INT, 'x'),
^
spock/mcp/mcdata.py:492:1: W191 indentation contains tabs
(MC_FP_INT, 'y'),
^
spock/mcp/mcdata.py:493:1: W191 indentation contains tabs
(MC_FP_INT, 'z'),
^
spock/mcp/mcdata.py:494:1: W191 indentation contains tabs
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:494:14: E203 whitespace before ','
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:495:1: W191 indentation contains tabs
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:495:14: E203 whitespace before ','
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:496:1: W191 indentation contains tabs
(MC_INT , 'obj_data'),
^
spock/mcp/mcdata.py:496:14: E203 whitespace before ','
(MC_INT , 'obj_data'),
^
spock/mcp/mcdata.py:497:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:497:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:498:1: W191 indentation contains tabs
#If obj_data != 0
^
spock/mcp/mcdata.py:498:6: E131 continuation line unaligned for hanging indent
#If obj_data != 0
^
spock/mcp/mcdata.py:498:6: E265 block comment should start with '# '
#If obj_data != 0
^
spock/mcp/mcdata.py:499:1: W191 indentation contains tabs
#short 'speed_x'
^
spock/mcp/mcdata.py:499:6: E265 block comment should start with '# '
#short 'speed_x'
^
spock/mcp/mcdata.py:500:1: W191 indentation contains tabs
#short 'speed_y'
^
spock/mcp/mcdata.py:500:6: E265 block comment should start with '# '
#short 'speed_y'
^
spock/mcp/mcdata.py:501:1: W191 indentation contains tabs
#short 'speed_z'
^
spock/mcp/mcdata.py:501:6: E265 block comment should start with '# '
#short 'speed_z'
^
spock/mcp/mcdata.py:502:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:503:1: W191 indentation contains tabs
#Spawn Mob
^
spock/mcp/mcdata.py:503:4: E265 block comment should start with '# '
#Spawn Mob
^
spock/mcp/mcdata.py:504:1: W191 indentation contains tabs
0x0F: (
^
spock/mcp/mcdata.py:505:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:506:1: W191 indentation contains tabs
(MC_UBYTE , 'type'),
^
spock/mcp/mcdata.py:506:14: E203 whitespace before ','
(MC_UBYTE , 'type'),
^
spock/mcp/mcdata.py:507:1: W191 indentation contains tabs
(MC_FP_INT, 'x'),
^
spock/mcp/mcdata.py:508:1: W191 indentation contains tabs
(MC_FP_INT, 'y'),
^
spock/mcp/mcdata.py:509:1: W191 indentation contains tabs
(MC_FP_INT, 'z'),
^
spock/mcp/mcdata.py:510:1: W191 indentation contains tabs
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:510:14: E203 whitespace before ','
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:511:1: W191 indentation contains tabs
(MC_BYTE , 'head_pitch'),
^
spock/mcp/mcdata.py:511:14: E203 whitespace before ','
(MC_BYTE , 'head_pitch'),
^
spock/mcp/mcdata.py:512:1: W191 indentation contains tabs
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:512:14: E203 whitespace before ','
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:513:1: W191 indentation contains tabs
(MC_SHORT , 'velocity_x'),
^
spock/mcp/mcdata.py:513:14: E203 whitespace before ','
(MC_SHORT , 'velocity_x'),
^
spock/mcp/mcdata.py:514:1: W191 indentation contains tabs
(MC_SHORT , 'velocity_y'),
^
spock/mcp/mcdata.py:514:14: E203 whitespace before ','
(MC_SHORT , 'velocity_y'),
^
spock/mcp/mcdata.py:515:1: W191 indentation contains tabs
(MC_SHORT , 'velocity_z'),
^
spock/mcp/mcdata.py:515:14: E203 whitespace before ','
(MC_SHORT , 'velocity_z'),
^
spock/mcp/mcdata.py:516:1: W191 indentation contains tabs
(MC_META , 'metadata'),
^
spock/mcp/mcdata.py:516:14: E203 whitespace before ','
(MC_META , 'metadata'),
^
spock/mcp/mcdata.py:517:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:518:1: W191 indentation contains tabs
#Spawn Painting
^
spock/mcp/mcdata.py:518:4: E265 block comment should start with '# '
#Spawn Painting
^
spock/mcp/mcdata.py:519:1: W191 indentation contains tabs
0x10: (
^
spock/mcp/mcdata.py:520:1: W191 indentation contains tabs
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:520:16: E203 whitespace before ','
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:521:1: W191 indentation contains tabs
(MC_STRING , 'title'),
^
spock/mcp/mcdata.py:521:16: E203 whitespace before ','
(MC_STRING , 'title'),
^
spock/mcp/mcdata.py:522:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:523:1: W191 indentation contains tabs
(MC_UBYTE , 'direction'),
^
spock/mcp/mcdata.py:523:16: E203 whitespace before ','
(MC_UBYTE , 'direction'),
^
spock/mcp/mcdata.py:524:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:525:1: W191 indentation contains tabs
#Spawn Experience Orb
^
spock/mcp/mcdata.py:525:4: E265 block comment should start with '# '
#Spawn Experience Orb
^
spock/mcp/mcdata.py:526:1: W191 indentation contains tabs
0x11: (
^
spock/mcp/mcdata.py:527:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:528:1: W191 indentation contains tabs
(MC_FP_INT, 'x'),
^
spock/mcp/mcdata.py:529:1: W191 indentation contains tabs
(MC_FP_INT, 'y'),
^
spock/mcp/mcdata.py:530:1: W191 indentation contains tabs
(MC_FP_INT, 'z'),
^
spock/mcp/mcdata.py:531:1: W191 indentation contains tabs
(MC_SHORT , 'count'),
^
spock/mcp/mcdata.py:531:14: E203 whitespace before ','
(MC_SHORT , 'count'),
^
spock/mcp/mcdata.py:532:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:533:1: W191 indentation contains tabs
#Entity Velocity
^
spock/mcp/mcdata.py:533:4: E265 block comment should start with '# '
#Entity Velocity
^
spock/mcp/mcdata.py:534:1: W191 indentation contains tabs
0x12: (
^
spock/mcp/mcdata.py:535:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:536:1: W191 indentation contains tabs
(MC_SHORT , 'velocity_x'),
^
spock/mcp/mcdata.py:536:14: E203 whitespace before ','
(MC_SHORT , 'velocity_x'),
^
spock/mcp/mcdata.py:537:1: W191 indentation contains tabs
(MC_SHORT , 'velocity_y'),
^
spock/mcp/mcdata.py:537:14: E203 whitespace before ','
(MC_SHORT , 'velocity_y'),
^
spock/mcp/mcdata.py:538:1: W191 indentation contains tabs
(MC_SHORT , 'velocity_z'),
^
spock/mcp/mcdata.py:538:14: E203 whitespace before ','
(MC_SHORT , 'velocity_z'),
^
spock/mcp/mcdata.py:539:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:540:1: W191 indentation contains tabs
#Destroy Entities
^
spock/mcp/mcdata.py:540:4: E265 block comment should start with '# '
#Destroy Entities
^
spock/mcp/mcdata.py:541:1: W191 indentation contains tabs
0x13: (
^
spock/mcp/mcdata.py:542:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:542:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:543:1: W191 indentation contains tabs
#List of ints 'eids'
^
spock/mcp/mcdata.py:543:6: E131 continuation line unaligned for hanging indent
#List of ints 'eids'
^
spock/mcp/mcdata.py:543:6: E265 block comment should start with '# '
#List of ints 'eids'
^
spock/mcp/mcdata.py:544:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:545:1: W191 indentation contains tabs
#Entity
^
spock/mcp/mcdata.py:545:4: E265 block comment should start with '# '
#Entity
^
spock/mcp/mcdata.py:546:1: W191 indentation contains tabs
0x14: (
^
spock/mcp/mcdata.py:547:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:548:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:549:1: W191 indentation contains tabs
#Entity Relative Move
^
spock/mcp/mcdata.py:549:4: E265 block comment should start with '# '
#Entity Relative Move
^
spock/mcp/mcdata.py:550:1: W191 indentation contains tabs
0x15: (
^
spock/mcp/mcdata.py:551:1: W191 indentation contains tabs
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:551:15: E203 whitespace before ','
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:552:1: W191 indentation contains tabs
(MC_FP_BYTE, 'dx'),
^
spock/mcp/mcdata.py:553:1: W191 indentation contains tabs
(MC_FP_BYTE, 'dy'),
^
spock/mcp/mcdata.py:554:1: W191 indentation contains tabs
(MC_FP_BYTE, 'dz'),
^
spock/mcp/mcdata.py:555:1: W191 indentation contains tabs
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:555:15: E203 whitespace before ','
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:556:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:557:1: W191 indentation contains tabs
#Entity Look
^
spock/mcp/mcdata.py:557:4: E265 block comment should start with '# '
#Entity Look
^
spock/mcp/mcdata.py:558:1: W191 indentation contains tabs
0x16: (
^
spock/mcp/mcdata.py:559:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:560:1: W191 indentation contains tabs
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:560:14: E203 whitespace before ','
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:561:1: W191 indentation contains tabs
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:561:14: E203 whitespace before ','
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:562:1: W191 indentation contains tabs
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:562:14: E203 whitespace before ','
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:563:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:564:1: W191 indentation contains tabs
#Entity Look and Relative Move
^
spock/mcp/mcdata.py:564:4: E265 block comment should start with '# '
#Entity Look and Relative Move
^
spock/mcp/mcdata.py:565:1: W191 indentation contains tabs
0x17: (
^
spock/mcp/mcdata.py:566:1: W191 indentation contains tabs
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:566:15: E203 whitespace before ','
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:567:1: W191 indentation contains tabs
(MC_FP_BYTE, 'dx'),
^
spock/mcp/mcdata.py:568:1: W191 indentation contains tabs
(MC_FP_BYTE, 'dy'),
^
spock/mcp/mcdata.py:569:1: W191 indentation contains tabs
(MC_FP_BYTE, 'dz'),
^
spock/mcp/mcdata.py:570:1: W191 indentation contains tabs
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:570:15: E203 whitespace before ','
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:571:1: W191 indentation contains tabs
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:571:15: E203 whitespace before ','
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:572:1: W191 indentation contains tabs
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:572:15: E203 whitespace before ','
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:573:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:574:1: W191 indentation contains tabs
#Entity Teleport
^
spock/mcp/mcdata.py:574:4: E265 block comment should start with '# '
#Entity Teleport
^
spock/mcp/mcdata.py:575:1: W191 indentation contains tabs
0x18: (
^
spock/mcp/mcdata.py:576:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:577:1: W191 indentation contains tabs
(MC_FP_INT, 'x'),
^
spock/mcp/mcdata.py:578:1: W191 indentation contains tabs
(MC_FP_INT, 'y'),
^
spock/mcp/mcdata.py:579:1: W191 indentation contains tabs
(MC_FP_INT, 'z'),
^
spock/mcp/mcdata.py:580:1: W191 indentation contains tabs
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:580:14: E203 whitespace before ','
(MC_BYTE , 'yaw'),
^
spock/mcp/mcdata.py:581:1: W191 indentation contains tabs
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:581:14: E203 whitespace before ','
(MC_BYTE , 'pitch'),
^
spock/mcp/mcdata.py:582:1: W191 indentation contains tabs
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:582:14: E203 whitespace before ','
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:583:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:584:1: W191 indentation contains tabs
#Entity Head Look
^
spock/mcp/mcdata.py:584:4: E265 block comment should start with '# '
#Entity Head Look
^
spock/mcp/mcdata.py:585:1: W191 indentation contains tabs
0x19: (
^
spock/mcp/mcdata.py:586:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:587:1: W191 indentation contains tabs
(MC_BYTE , 'head_yaw'),
^
spock/mcp/mcdata.py:587:14: E203 whitespace before ','
(MC_BYTE , 'head_yaw'),
^
spock/mcp/mcdata.py:588:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:589:1: W191 indentation contains tabs
#Entity Status
^
spock/mcp/mcdata.py:589:4: E265 block comment should start with '# '
#Entity Status
^
spock/mcp/mcdata.py:590:1: W191 indentation contains tabs
0x1A: (
^
spock/mcp/mcdata.py:591:1: W191 indentation contains tabs
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:591:12: E203 whitespace before ','
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:592:1: W191 indentation contains tabs
(MC_BYTE, 'status')
^
spock/mcp/mcdata.py:593:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:594:1: W191 indentation contains tabs
#Attach Entity
^
spock/mcp/mcdata.py:594:4: E265 block comment should start with '# '
#Attach Entity
^
spock/mcp/mcdata.py:595:1: W191 indentation contains tabs
0x1B: (
^
spock/mcp/mcdata.py:596:1: W191 indentation contains tabs
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:596:12: E203 whitespace before ','
(MC_INT , 'eid'),
^
spock/mcp/mcdata.py:597:1: W191 indentation contains tabs
(MC_INT , 'v_eid'),
^
spock/mcp/mcdata.py:597:12: E203 whitespace before ','
(MC_INT , 'v_eid'),
^
spock/mcp/mcdata.py:598:1: W191 indentation contains tabs
(MC_BOOL, 'leash'),
^
spock/mcp/mcdata.py:599:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:600:1: W191 indentation contains tabs
#Entity Metadata
^
spock/mcp/mcdata.py:600:4: E265 block comment should start with '# '
#Entity Metadata
^
spock/mcp/mcdata.py:601:1: W191 indentation contains tabs
0x1C: (
^
spock/mcp/mcdata.py:602:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:603:1: W191 indentation contains tabs
(MC_META , 'metadata'),
^
spock/mcp/mcdata.py:603:14: E203 whitespace before ','
(MC_META , 'metadata'),
^
spock/mcp/mcdata.py:604:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:605:1: W191 indentation contains tabs
#Entity Effect
^
spock/mcp/mcdata.py:605:4: E265 block comment should start with '# '
#Entity Effect
^
spock/mcp/mcdata.py:606:1: W191 indentation contains tabs
0x1D: (
^
spock/mcp/mcdata.py:607:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:608:1: W191 indentation contains tabs
(MC_BYTE , 'effect'),
^
spock/mcp/mcdata.py:608:14: E203 whitespace before ','
(MC_BYTE , 'effect'),
^
spock/mcp/mcdata.py:609:1: W191 indentation contains tabs
(MC_BYTE , 'amplifier'),
^
spock/mcp/mcdata.py:609:14: E203 whitespace before ','
(MC_BYTE , 'amplifier'),
^
spock/mcp/mcdata.py:610:1: W191 indentation contains tabs
(MC_VARINT, 'duration'),
^
spock/mcp/mcdata.py:611:1: W191 indentation contains tabs
(MC_BOOL , 'no_particles'),
^
spock/mcp/mcdata.py:611:14: E203 whitespace before ','
(MC_BOOL , 'no_particles'),
^
spock/mcp/mcdata.py:612:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:613:1: W191 indentation contains tabs
#Remove Entity Effect
^
spock/mcp/mcdata.py:613:4: E265 block comment should start with '# '
#Remove Entity Effect
^
spock/mcp/mcdata.py:614:1: W191 indentation contains tabs
0x1E: (
^
spock/mcp/mcdata.py:615:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:616:1: W191 indentation contains tabs
(MC_BYTE , 'effect'),
^
spock/mcp/mcdata.py:616:14: E203 whitespace before ','
(MC_BYTE , 'effect'),
^
spock/mcp/mcdata.py:617:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:618:1: W191 indentation contains tabs
#Set Experience
^
spock/mcp/mcdata.py:618:4: E265 block comment should start with '# '
#Set Experience
^
spock/mcp/mcdata.py:619:1: W191 indentation contains tabs
0x1F: (
^
spock/mcp/mcdata.py:620:1: W191 indentation contains tabs
(MC_FLOAT , 'exp_bar'),
^
spock/mcp/mcdata.py:620:14: E203 whitespace before ','
(MC_FLOAT , 'exp_bar'),
^
spock/mcp/mcdata.py:621:1: W191 indentation contains tabs
(MC_VARINT, 'level'),
^
spock/mcp/mcdata.py:622:1: W191 indentation contains tabs
(MC_VARINT, 'total_exp'),
^
spock/mcp/mcdata.py:623:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:624:1: W191 indentation contains tabs
#Entity Properties
^
spock/mcp/mcdata.py:624:4: E265 block comment should start with '# '
#Entity Properties
^
spock/mcp/mcdata.py:625:1: W191 indentation contains tabs
0x20: (
^
spock/mcp/mcdata.py:626:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:627:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:627:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:628:1: W191 indentation contains tabs
#List of dicts 'properties'
^
spock/mcp/mcdata.py:628:6: E131 continuation line unaligned for hanging indent
#List of dicts 'properties'
^
spock/mcp/mcdata.py:628:6: E265 block comment should start with '# '
#List of dicts 'properties'
^
spock/mcp/mcdata.py:629:1: W191 indentation contains tabs
#Entity properties are complex beasts
^
spock/mcp/mcdata.py:629:6: E265 block comment should start with '# '
#Entity properties are complex beasts
^
spock/mcp/mcdata.py:630:1: W191 indentation contains tabs
#Consult the decoder to get all of the keys
^
spock/mcp/mcdata.py:630:6: E265 block comment should start with '# '
#Consult the decoder to get all of the keys
^
spock/mcp/mcdata.py:631:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:632:1: W191 indentation contains tabs
#Chunk Data
^
spock/mcp/mcdata.py:632:4: E265 block comment should start with '# '
#Chunk Data
^
spock/mcp/mcdata.py:633:1: W191 indentation contains tabs
0x21: (
^
spock/mcp/mcdata.py:634:1: W191 indentation contains tabs
(MC_INT , 'chunk_x'),
^
spock/mcp/mcdata.py:634:14: E203 whitespace before ','
(MC_INT , 'chunk_x'),
^
spock/mcp/mcdata.py:635:1: W191 indentation contains tabs
(MC_INT , 'chunk_z'),
^
spock/mcp/mcdata.py:635:14: E203 whitespace before ','
(MC_INT , 'chunk_z'),
^
spock/mcp/mcdata.py:636:1: W191 indentation contains tabs
(MC_BOOL , 'continuous'),
^
spock/mcp/mcdata.py:636:14: E203 whitespace before ','
(MC_BOOL , 'continuous'),
^
spock/mcp/mcdata.py:637:1: W191 indentation contains tabs
(MC_USHORT, 'primary_bitmap'),
^
spock/mcp/mcdata.py:638:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:638:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:639:1: W191 indentation contains tabs
#byte string 'data'
^
spock/mcp/mcdata.py:639:6: E131 continuation line unaligned for hanging indent
#byte string 'data'
^
spock/mcp/mcdata.py:639:6: E265 block comment should start with '# '
#byte string 'data'
^
spock/mcp/mcdata.py:640:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:641:1: W191 indentation contains tabs
#Multi Block Change
^
spock/mcp/mcdata.py:641:4: E265 block comment should start with '# '
#Multi Block Change
^
spock/mcp/mcdata.py:642:1: W191 indentation contains tabs
0x22: (
^
spock/mcp/mcdata.py:643:1: W191 indentation contains tabs
(MC_INT , 'chunk_x'),
^
spock/mcp/mcdata.py:643:13: E203 whitespace before ','
(MC_INT , 'chunk_x'),
^
spock/mcp/mcdata.py:644:1: W191 indentation contains tabs
(MC_INT , 'chunk_z'),
^
spock/mcp/mcdata.py:644:13: E203 whitespace before ','
(MC_INT , 'chunk_z'),
^
spock/mcp/mcdata.py:645:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:645:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:646:1: W191 indentation contains tabs
#List of dicts 'blocks'
^
spock/mcp/mcdata.py:646:6: E131 continuation line unaligned for hanging indent
#List of dicts 'blocks'
^
spock/mcp/mcdata.py:646:6: E265 block comment should start with '# '
#List of dicts 'blocks'
^
spock/mcp/mcdata.py:647:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:648:1: W191 indentation contains tabs
#Block Change
^
spock/mcp/mcdata.py:648:4: E265 block comment should start with '# '
#Block Change
^
spock/mcp/mcdata.py:649:1: W191 indentation contains tabs
0x23: (
^
spock/mcp/mcdata.py:650:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:651:1: W191 indentation contains tabs
(MC_VARINT , 'block_data'),
^
spock/mcp/mcdata.py:651:16: E203 whitespace before ','
(MC_VARINT , 'block_data'),
^
spock/mcp/mcdata.py:652:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:653:1: W191 indentation contains tabs
#Block Action
^
spock/mcp/mcdata.py:653:4: E265 block comment should start with '# '
#Block Action
^
spock/mcp/mcdata.py:654:1: W191 indentation contains tabs
0x24: (
^
spock/mcp/mcdata.py:655:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:656:1: W191 indentation contains tabs
(MC_UBYTE , 'byte_1'),
^
spock/mcp/mcdata.py:656:16: E203 whitespace before ','
(MC_UBYTE , 'byte_1'),
^
spock/mcp/mcdata.py:657:1: W191 indentation contains tabs
(MC_UBYTE , 'byte_2'),
^
spock/mcp/mcdata.py:657:16: E203 whitespace before ','
(MC_UBYTE , 'byte_2'),
^
spock/mcp/mcdata.py:658:1: W191 indentation contains tabs
(MC_VARINT , 'block_id'),
^
spock/mcp/mcdata.py:658:16: E203 whitespace before ','
(MC_VARINT , 'block_id'),
^
spock/mcp/mcdata.py:659:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:660:1: W191 indentation contains tabs
#Block Break Animation
^
spock/mcp/mcdata.py:660:4: E265 block comment should start with '# '
#Block Break Animation
^
spock/mcp/mcdata.py:661:1: W191 indentation contains tabs
0x25: (
^
spock/mcp/mcdata.py:662:1: W191 indentation contains tabs
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:662:16: E203 whitespace before ','
(MC_VARINT , 'eid'),
^
spock/mcp/mcdata.py:663:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:664:1: W191 indentation contains tabs
(MC_BYTE , 'stage'),
^
spock/mcp/mcdata.py:664:16: E203 whitespace before ','
(MC_BYTE , 'stage'),
^
spock/mcp/mcdata.py:665:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:666:1: W191 indentation contains tabs
#Map Chunk Bulk
^
spock/mcp/mcdata.py:666:4: E265 block comment should start with '# '
#Map Chunk Bulk
^
spock/mcp/mcdata.py:667:1: W191 indentation contains tabs
0x26: (
^
spock/mcp/mcdata.py:668:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:668:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:669:1: W191 indentation contains tabs
#bool 'sky_light'
^
spock/mcp/mcdata.py:669:6: E131 continuation line unaligned for hanging indent
#bool 'sky_light'
^
spock/mcp/mcdata.py:669:6: E265 block comment should start with '# '
#bool 'sky_light'
^
spock/mcp/mcdata.py:670:1: W191 indentation contains tabs
#List of dicts 'metadata'
^
spock/mcp/mcdata.py:670:6: E265 block comment should start with '# '
#List of dicts 'metadata'
^
spock/mcp/mcdata.py:671:1: W191 indentation contains tabs
#byte string 'data'
^
spock/mcp/mcdata.py:671:6: E265 block comment should start with '# '
#byte string 'data'
^
spock/mcp/mcdata.py:672:1: W191 indentation contains tabs
#Metadata is identical to 0x21
^
spock/mcp/mcdata.py:672:6: E265 block comment should start with '# '
#Metadata is identical to 0x21
^
spock/mcp/mcdata.py:673:1: W191 indentation contains tabs
#But the 'continuous' bool is assumed True
^
spock/mcp/mcdata.py:673:6: E265 block comment should start with '# '
#But the 'continuous' bool is assumed True
^
spock/mcp/mcdata.py:674:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:675:1: W191 indentation contains tabs
#Explosion
^
spock/mcp/mcdata.py:675:4: E265 block comment should start with '# '
#Explosion
^
spock/mcp/mcdata.py:676:1: W191 indentation contains tabs
0x27: (
^
spock/mcp/mcdata.py:677:1: W191 indentation contains tabs
(MC_FLOAT, 'x'),
^
spock/mcp/mcdata.py:678:1: W191 indentation contains tabs
(MC_FLOAT, 'y'),
^
spock/mcp/mcdata.py:679:1: W191 indentation contains tabs
(MC_FLOAT, 'z'),
^
spock/mcp/mcdata.py:680:1: W191 indentation contains tabs
(MC_FLOAT, 'radius'),
^
spock/mcp/mcdata.py:681:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:681:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:682:1: W191 indentation contains tabs
#List of lists 'blocks'
^
spock/mcp/mcdata.py:682:6: E131 continuation line unaligned for hanging indent
#List of lists 'blocks'
^
spock/mcp/mcdata.py:682:6: E265 block comment should start with '# '
#List of lists 'blocks'
^
spock/mcp/mcdata.py:683:1: W191 indentation contains tabs
#Each list is 3 ints x,y,z
^
spock/mcp/mcdata.py:683:6: E265 block comment should start with '# '
#Each list is 3 ints x,y,z
^
spock/mcp/mcdata.py:684:1: W191 indentation contains tabs
#float 'player_x'
^
spock/mcp/mcdata.py:684:6: E265 block comment should start with '# '
#float 'player_x'
^
spock/mcp/mcdata.py:685:1: W191 indentation contains tabs
#float 'player_y'
^
spock/mcp/mcdata.py:685:6: E265 block comment should start with '# '
#float 'player_y'
^
spock/mcp/mcdata.py:686:1: W191 indentation contains tabs
#float 'player_z'
^
spock/mcp/mcdata.py:686:6: E265 block comment should start with '# '
#float 'player_z'
^
spock/mcp/mcdata.py:687:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:688:1: W191 indentation contains tabs
#Effect
^
spock/mcp/mcdata.py:688:4: E265 block comment should start with '# '
#Effect
^
spock/mcp/mcdata.py:689:1: W191 indentation contains tabs
0x28: (
^
spock/mcp/mcdata.py:690:1: W191 indentation contains tabs
(MC_INT , 'effect'),
^
spock/mcp/mcdata.py:690:16: E203 whitespace before ','
(MC_INT , 'effect'),
^
spock/mcp/mcdata.py:691:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:692:1: W191 indentation contains tabs
(MC_INT , 'data'),
^
spock/mcp/mcdata.py:692:16: E203 whitespace before ','
(MC_INT , 'data'),
^
spock/mcp/mcdata.py:693:1: W191 indentation contains tabs
(MC_BOOL , 'no_rel_vol'),
^
spock/mcp/mcdata.py:693:16: E203 whitespace before ','
(MC_BOOL , 'no_rel_vol'),
^
spock/mcp/mcdata.py:694:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:695:1: W191 indentation contains tabs
#Sound Effect
^
spock/mcp/mcdata.py:695:4: E265 block comment should start with '# '
#Sound Effect
^
spock/mcp/mcdata.py:696:1: W191 indentation contains tabs
0x29: (
^
spock/mcp/mcdata.py:697:1: W191 indentation contains tabs
(MC_STRING, 'name'),
^
spock/mcp/mcdata.py:698:1: W191 indentation contains tabs
(MC_INT , 'ef_x'),
^
spock/mcp/mcdata.py:698:14: E203 whitespace before ','
(MC_INT , 'ef_x'),
^
spock/mcp/mcdata.py:699:1: W191 indentation contains tabs
(MC_INT , 'ef_y'),
^
spock/mcp/mcdata.py:699:14: E203 whitespace before ','
(MC_INT , 'ef_y'),
^
spock/mcp/mcdata.py:700:1: W191 indentation contains tabs
(MC_INT , 'ef_z'),
^
spock/mcp/mcdata.py:700:14: E203 whitespace before ','
(MC_INT , 'ef_z'),
^
spock/mcp/mcdata.py:701:1: W191 indentation contains tabs
(MC_FLOAT , 'vol'),
^
spock/mcp/mcdata.py:701:14: E203 whitespace before ','
(MC_FLOAT , 'vol'),
^
spock/mcp/mcdata.py:702:1: W191 indentation contains tabs
(MC_UBYTE , 'pitch'),
^
spock/mcp/mcdata.py:702:14: E203 whitespace before ','
(MC_UBYTE , 'pitch'),
^
spock/mcp/mcdata.py:703:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:704:1: W191 indentation contains tabs
#Particle
^
spock/mcp/mcdata.py:704:4: E265 block comment should start with '# '
#Particle
^
spock/mcp/mcdata.py:705:1: W191 indentation contains tabs
0x2A: (
^
spock/mcp/mcdata.py:706:1: W191 indentation contains tabs
(MC_INT , 'id'),
^
spock/mcp/mcdata.py:706:14: E203 whitespace before ','
(MC_INT , 'id'),
^
spock/mcp/mcdata.py:707:1: W191 indentation contains tabs
(MC_BOOL , 'long_dist'),
^
spock/mcp/mcdata.py:707:14: E203 whitespace before ','
(MC_BOOL , 'long_dist'),
^
spock/mcp/mcdata.py:708:1: W191 indentation contains tabs
(MC_FLOAT , 'x'),
^
spock/mcp/mcdata.py:708:14: E203 whitespace before ','
(MC_FLOAT , 'x'),
^
spock/mcp/mcdata.py:709:1: W191 indentation contains tabs
(MC_FLOAT , 'y'),
^
spock/mcp/mcdata.py:709:14: E203 whitespace before ','
(MC_FLOAT , 'y'),
^
spock/mcp/mcdata.py:710:1: W191 indentation contains tabs
(MC_FLOAT , 'z'),
^
spock/mcp/mcdata.py:710:14: E203 whitespace before ','
(MC_FLOAT , 'z'),
^
spock/mcp/mcdata.py:711:1: W191 indentation contains tabs
(MC_FLOAT , 'off_x'),
^
spock/mcp/mcdata.py:711:14: E203 whitespace before ','
(MC_FLOAT , 'off_x'),
^
spock/mcp/mcdata.py:712:1: W191 indentation contains tabs
(MC_FLOAT , 'off_y'),
^
spock/mcp/mcdata.py:712:14: E203 whitespace before ','
(MC_FLOAT , 'off_y'),
^
spock/mcp/mcdata.py:713:1: W191 indentation contains tabs
(MC_FLOAT , 'off_z'),
^
spock/mcp/mcdata.py:713:14: E203 whitespace before ','
(MC_FLOAT , 'off_z'),
^
spock/mcp/mcdata.py:714:1: W191 indentation contains tabs
(MC_FLOAT , 'speed'),
^
spock/mcp/mcdata.py:714:14: E203 whitespace before ','
(MC_FLOAT , 'speed'),
^
spock/mcp/mcdata.py:715:1: W191 indentation contains tabs
(MC_INT , 'num'),
^
spock/mcp/mcdata.py:715:14: E203 whitespace before ','
(MC_INT , 'num'),
^
spock/mcp/mcdata.py:716:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:716:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:717:1: W191 indentation contains tabs
#List of ints 'data'
^
spock/mcp/mcdata.py:717:6: E131 continuation line unaligned for hanging indent
#List of ints 'data'
^
spock/mcp/mcdata.py:717:6: E265 block comment should start with '# '
#List of ints 'data'
^
spock/mcp/mcdata.py:718:1: W191 indentation contains tabs
#Possibly zero length list of
^
spock/mcp/mcdata.py:718:6: E265 block comment should start with '# '
#Possibly zero length list of
^
spock/mcp/mcdata.py:719:1: W191 indentation contains tabs
#particle-dependent data
^
spock/mcp/mcdata.py:719:6: E265 block comment should start with '# '
#particle-dependent data
^
spock/mcp/mcdata.py:720:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:721:1: W191 indentation contains tabs
#Change Game State
^
spock/mcp/mcdata.py:721:4: E265 block comment should start with '# '
#Change Game State
^
spock/mcp/mcdata.py:722:1: W191 indentation contains tabs
0x2B: (
^
spock/mcp/mcdata.py:723:1: W191 indentation contains tabs
(MC_UBYTE, 'reason'),
^
spock/mcp/mcdata.py:724:1: W191 indentation contains tabs
(MC_FLOAT, 'value'),
^
spock/mcp/mcdata.py:725:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:726:1: W191 indentation contains tabs
#Spawn Global Entity
^
spock/mcp/mcdata.py:726:4: E265 block comment should start with '# '
#Spawn Global Entity
^
spock/mcp/mcdata.py:727:1: W191 indentation contains tabs
0x2C: (
^
spock/mcp/mcdata.py:728:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
^
spock/mcp/mcdata.py:729:1: W191 indentation contains tabs
(MC_BYTE , 'type'),
^
spock/mcp/mcdata.py:729:14: E203 whitespace before ','
(MC_BYTE , 'type'),
^
spock/mcp/mcdata.py:730:1: W191 indentation contains tabs
(MC_FP_INT, 'x'),
^
spock/mcp/mcdata.py:731:1: W191 indentation contains tabs
(MC_FP_INT, 'y'),
^
spock/mcp/mcdata.py:732:1: W191 indentation contains tabs
(MC_FP_INT, 'z'),
^
spock/mcp/mcdata.py:733:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:734:1: W191 indentation contains tabs
#Open Window
^
spock/mcp/mcdata.py:734:4: E265 block comment should start with '# '
#Open Window
^
spock/mcp/mcdata.py:735:1: W191 indentation contains tabs
0x2D: (
^
spock/mcp/mcdata.py:736:1: W191 indentation contains tabs
(MC_UBYTE , 'window_id'),
^
spock/mcp/mcdata.py:736:14: E203 whitespace before ','
(MC_UBYTE , 'window_id'),
^
spock/mcp/mcdata.py:737:1: W191 indentation contains tabs
(MC_STRING, 'inv_type'),
^
spock/mcp/mcdata.py:738:1: W191 indentation contains tabs
(MC_CHAT , 'title'),
^
spock/mcp/mcdata.py:738:14: E203 whitespace before ','
(MC_CHAT , 'title'),
^
spock/mcp/mcdata.py:739:1: W191 indentation contains tabs
(MC_UBYTE , 'slot_count'),
^
spock/mcp/mcdata.py:739:14: E203 whitespace before ','
(MC_UBYTE , 'slot_count'),
^
spock/mcp/mcdata.py:740:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:740:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:741:1: W191 indentation contains tabs
#Only present if 'inv_type' == 'EntityHorse'
^
spock/mcp/mcdata.py:741:6: E131 continuation line unaligned for hanging indent
#Only present if 'inv_type' == 'EntityHorse'
^
spock/mcp/mcdata.py:741:6: E265 block comment should start with '# '
#Only present if 'inv_type' == 'EntityHorse'
^
spock/mcp/mcdata.py:742:1: W191 indentation contains tabs
#MC_INT 'eid'
^
spock/mcp/mcdata.py:742:6: E265 block comment should start with '# '
#MC_INT 'eid'
^
spock/mcp/mcdata.py:743:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:744:1: W191 indentation contains tabs
#Close Window
^
spock/mcp/mcdata.py:744:4: E265 block comment should start with '# '
#Close Window
^
spock/mcp/mcdata.py:745:1: W191 indentation contains tabs
0x2E: (
^
spock/mcp/mcdata.py:746:1: W191 indentation contains tabs
(MC_UBYTE, 'window_id'),
^
spock/mcp/mcdata.py:747:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:748:1: W191 indentation contains tabs
#Set Slot
^
spock/mcp/mcdata.py:748:4: E265 block comment should start with '# '
#Set Slot
^
spock/mcp/mcdata.py:749:1: W191 indentation contains tabs
0x2F: (
^
spock/mcp/mcdata.py:750:1: W191 indentation contains tabs
(MC_BYTE , 'window_id'),
^
spock/mcp/mcdata.py:750:13: E203 whitespace before ','
(MC_BYTE , 'window_id'),
^
spock/mcp/mcdata.py:751:1: W191 indentation contains tabs
(MC_SHORT, 'slot'),
^
spock/mcp/mcdata.py:752:1: W191 indentation contains tabs
(MC_SLOT , 'slot_data'),
^
spock/mcp/mcdata.py:752:13: E203 whitespace before ','
(MC_SLOT , 'slot_data'),
^
spock/mcp/mcdata.py:753:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:754:1: W191 indentation contains tabs
#Window Items
^
spock/mcp/mcdata.py:754:4: E265 block comment should start with '# '
#Window Items
^
spock/mcp/mcdata.py:755:1: W191 indentation contains tabs
0x30: (
^
spock/mcp/mcdata.py:756:1: W191 indentation contains tabs
(MC_UBYTE, 'window_id'),
^
spock/mcp/mcdata.py:757:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:757:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:758:1: W191 indentation contains tabs
#List of slots 'slots'
^
spock/mcp/mcdata.py:758:6: E131 continuation line unaligned for hanging indent
#List of slots 'slots'
^
spock/mcp/mcdata.py:758:6: E265 block comment should start with '# '
#List of slots 'slots'
^
spock/mcp/mcdata.py:759:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:760:1: W191 indentation contains tabs
#Window Property
^
spock/mcp/mcdata.py:760:4: E265 block comment should start with '# '
#Window Property
^
spock/mcp/mcdata.py:761:1: W191 indentation contains tabs
0x31: (
^
spock/mcp/mcdata.py:762:1: W191 indentation contains tabs
(MC_UBYTE, 'window_id'),
^
spock/mcp/mcdata.py:763:1: W191 indentation contains tabs
(MC_SHORT, 'property'),
^
spock/mcp/mcdata.py:764:1: W191 indentation contains tabs
(MC_SHORT, 'value'),
^
spock/mcp/mcdata.py:765:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:766:1: W191 indentation contains tabs
#Confirm Transaction
^
spock/mcp/mcdata.py:766:4: E265 block comment should start with '# '
#Confirm Transaction
^
spock/mcp/mcdata.py:767:1: W191 indentation contains tabs
0x32: (
^
spock/mcp/mcdata.py:768:1: W191 indentation contains tabs
(MC_UBYTE, 'window_id'),
^
spock/mcp/mcdata.py:769:1: W191 indentation contains tabs
(MC_SHORT, 'action'),
^
spock/mcp/mcdata.py:770:1: W191 indentation contains tabs
(MC_BOOL , 'accepted'),
^
spock/mcp/mcdata.py:770:13: E203 whitespace before ','
(MC_BOOL , 'accepted'),
^
spock/mcp/mcdata.py:771:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:772:1: W191 indentation contains tabs
#Update Sign
^
spock/mcp/mcdata.py:772:4: E265 block comment should start with '# '
#Update Sign
^
spock/mcp/mcdata.py:773:1: W191 indentation contains tabs
0x33: (
^
spock/mcp/mcdata.py:774:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:775:1: W191 indentation contains tabs
(MC_CHAT , 'line_1'),
^
spock/mcp/mcdata.py:775:16: E203 whitespace before ','
(MC_CHAT , 'line_1'),
^
spock/mcp/mcdata.py:776:1: W191 indentation contains tabs
(MC_CHAT , 'line_2'),
^
spock/mcp/mcdata.py:776:16: E203 whitespace before ','
(MC_CHAT , 'line_2'),
^
spock/mcp/mcdata.py:777:1: W191 indentation contains tabs
(MC_CHAT , 'line_3'),
^
spock/mcp/mcdata.py:777:16: E203 whitespace before ','
(MC_CHAT , 'line_3'),
^
spock/mcp/mcdata.py:778:1: W191 indentation contains tabs
(MC_CHAT , 'line_4'),
^
spock/mcp/mcdata.py:778:16: E203 whitespace before ','
(MC_CHAT , 'line_4'),
^
spock/mcp/mcdata.py:779:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:780:1: W191 indentation contains tabs
#Maps
^
spock/mcp/mcdata.py:780:4: E265 block comment should start with '# '
#Maps
^
spock/mcp/mcdata.py:781:1: W191 indentation contains tabs
0x34: (
^
spock/mcp/mcdata.py:782:1: W191 indentation contains tabs
(MC_VARINT, 'item_damage'),
^
spock/mcp/mcdata.py:783:1: W191 indentation contains tabs
(MC_BYTE , 'scale'),
^
spock/mcp/mcdata.py:783:14: E203 whitespace before ','
(MC_BYTE , 'scale'),
^
spock/mcp/mcdata.py:784:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:784:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:785:1: W191 indentation contains tabs
#List of tuples 'icons', (Direction, Type, X, Y)
^
spock/mcp/mcdata.py:785:6: E131 continuation line unaligned for hanging indent
#List of tuples 'icons', (Direction, Type, X, Y)
^
spock/mcp/mcdata.py:785:6: E265 block comment should start with '# '
#List of tuples 'icons', (Direction, Type, X, Y)
^
spock/mcp/mcdata.py:786:1: W191 indentation contains tabs
#MC_BYTE 'columns'
^
spock/mcp/mcdata.py:786:6: E265 block comment should start with '# '
#MC_BYTE 'columns'
^
spock/mcp/mcdata.py:787:1: W191 indentation contains tabs
#If Columns > 0
^
spock/mcp/mcdata.py:787:6: E265 block comment should start with '# '
#If Columns > 0
^
spock/mcp/mcdata.py:788:1: W191 indentation contains tabs
#MC_BYTE 'rows'
^
spock/mcp/mcdata.py:788:7: E131 continuation line unaligned for hanging indent
#MC_BYTE 'rows'
^
spock/mcp/mcdata.py:788:7: E265 block comment should start with '# '
#MC_BYTE 'rows'
^
spock/mcp/mcdata.py:789:1: W191 indentation contains tabs
#MC_BYTE 'x'
^
spock/mcp/mcdata.py:789:7: E265 block comment should start with '# '
#MC_BYTE 'x'
^
spock/mcp/mcdata.py:790:1: W191 indentation contains tabs
#MC_BYTE 'y'
^
spock/mcp/mcdata.py:790:7: E265 block comment should start with '# '
#MC_BYTE 'y'
^
spock/mcp/mcdata.py:791:1: W191 indentation contains tabs
#byte string 'data'
^
spock/mcp/mcdata.py:791:7: E265 block comment should start with '# '
#byte string 'data'
^
spock/mcp/mcdata.py:792:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:793:1: W191 indentation contains tabs
#Update Block Entity
^
spock/mcp/mcdata.py:793:4: E265 block comment should start with '# '
#Update Block Entity
^
spock/mcp/mcdata.py:794:1: W191 indentation contains tabs
0x35: (
^
spock/mcp/mcdata.py:795:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:796:1: W191 indentation contains tabs
(MC_UBYTE , 'action'),
^
spock/mcp/mcdata.py:796:16: E203 whitespace before ','
(MC_UBYTE , 'action'),
^
spock/mcp/mcdata.py:797:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:797:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:798:1: W191 indentation contains tabs
#NBT Data 'nbt'
^
spock/mcp/mcdata.py:798:6: E131 continuation line unaligned for hanging indent
#NBT Data 'nbt'
^
spock/mcp/mcdata.py:798:6: E265 block comment should start with '# '
#NBT Data 'nbt'
^
spock/mcp/mcdata.py:799:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:800:1: W191 indentation contains tabs
#Sign Editor Open
^
spock/mcp/mcdata.py:800:4: E265 block comment should start with '# '
#Sign Editor Open
^
spock/mcp/mcdata.py:801:1: W191 indentation contains tabs
0x36: (
^
spock/mcp/mcdata.py:802:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
^
spock/mcp/mcdata.py:803:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:804:1: W191 indentation contains tabs
#Statistics
^
spock/mcp/mcdata.py:804:4: E265 block comment should start with '# '
#Statistics
^
spock/mcp/mcdata.py:805:1: W191 indentation contains tabs
0x37: (
^
spock/mcp/mcdata.py:806:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:806:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:807:1: W191 indentation contains tabs
#List of lists 'entries'
^
spock/mcp/mcdata.py:807:6: E131 continuation line unaligned for hanging indent
#List of lists 'entries'
^
spock/mcp/mcdata.py:807:6: E265 block comment should start with '# '
#List of lists 'entries'
^
spock/mcp/mcdata.py:808:1: W191 indentation contains tabs
#First value is a string, stat's name
^
spock/mcp/mcdata.py:808:6: E265 block comment should start with '# '
#First value is a string, stat's name
^
spock/mcp/mcdata.py:809:1: W191 indentation contains tabs
#Second value is an int, stat's value
^
spock/mcp/mcdata.py:809:6: E265 block comment should start with '# '
#Second value is an int, stat's value
^
spock/mcp/mcdata.py:810:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:811:1: W191 indentation contains tabs
#Player List Item
^
spock/mcp/mcdata.py:811:4: E265 block comment should start with '# '
#Player List Item
^
spock/mcp/mcdata.py:812:1: W191 indentation contains tabs
0x38: (
^
spock/mcp/mcdata.py:813:1: W191 indentation contains tabs
(MC_VARINT, 'action'),
^
spock/mcp/mcdata.py:814:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:814:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:815:1: W191 indentation contains tabs
#List of dicts 'player_list'
^
spock/mcp/mcdata.py:815:5: E265 block comment should start with '# '
#List of dicts 'player_list'
^
spock/mcp/mcdata.py:816:1: W191 indentation contains tabs
#MC_UUID 'uuid'
^
spock/mcp/mcdata.py:816:6: E131 continuation line unaligned for hanging indent
#MC_UUID 'uuid'
^
spock/mcp/mcdata.py:816:6: E265 block comment should start with '# '
#MC_UUID 'uuid'
^
spock/mcp/mcdata.py:817:1: W191 indentation contains tabs
#PL_ADD_PLAYER
^
spock/mcp/mcdata.py:817:6: E265 block comment should start with '# '
#PL_ADD_PLAYER
^
spock/mcp/mcdata.py:818:1: W191 indentation contains tabs
#MC_STRING 'name'
^
spock/mcp/mcdata.py:818:7: E131 continuation line unaligned for hanging indent
#MC_STRING 'name'
^
spock/mcp/mcdata.py:818:7: E265 block comment should start with '# '
#MC_STRING 'name'
^
spock/mcp/mcdata.py:819:1: W191 indentation contains tabs
#List of dicts, 'properties'
^
spock/mcp/mcdata.py:819:7: E265 block comment should start with '# '
#List of dicts, 'properties'
^
spock/mcp/mcdata.py:820:1: W191 indentation contains tabs
#MC_STRING 'name'
^
spock/mcp/mcdata.py:820:8: E131 continuation line unaligned for hanging indent
#MC_STRING 'name'
^
spock/mcp/mcdata.py:820:8: E265 block comment should start with '# '
#MC_STRING 'name'
^
spock/mcp/mcdata.py:821:1: W191 indentation contains tabs
#MC_STRING 'value'
^
spock/mcp/mcdata.py:821:8: E265 block comment should start with '# '
#MC_STRING 'value'
^
spock/mcp/mcdata.py:822:1: W191 indentation contains tabs
#MC_BOOL 'signed'
^
spock/mcp/mcdata.py:822:8: E265 block comment should start with '# '
#MC_BOOL 'signed'
^
spock/mcp/mcdata.py:823:1: W191 indentation contains tabs
#signed == True
^
spock/mcp/mcdata.py:823:8: E265 block comment should start with '# '
#signed == True
^
spock/mcp/mcdata.py:824:1: W191 indentation contains tabs
#MC_STRING 'signature'
^
spock/mcp/mcdata.py:824:9: E131 continuation line unaligned for hanging indent
#MC_STRING 'signature'
^
spock/mcp/mcdata.py:824:9: E265 block comment should start with '# '
#MC_STRING 'signature'
^
spock/mcp/mcdata.py:825:1: W191 indentation contains tabs
#MC_VARINT 'gamemode'
^
spock/mcp/mcdata.py:825:7: E265 block comment should start with '# '
#MC_VARINT 'gamemode'
^
spock/mcp/mcdata.py:826:1: W191 indentation contains tabs
#MC_VARINT 'ping'
^
spock/mcp/mcdata.py:826:7: E265 block comment should start with '# '
#MC_VARINT 'ping'
^
spock/mcp/mcdata.py:827:1: W191 indentation contains tabs
#MC_BOOL 'has_display'
^
spock/mcp/mcdata.py:827:7: E265 block comment should start with '# '
#MC_BOOL 'has_display'
^
spock/mcp/mcdata.py:828:1: W191 indentation contains tabs
#has_display == True
^
spock/mcp/mcdata.py:828:7: E265 block comment should start with '# '
#has_display == True
^
spock/mcp/mcdata.py:829:1: W191 indentation contains tabs
#MC_CHAT 'display_name'
^
spock/mcp/mcdata.py:829:8: E265 block comment should start with '# '
#MC_CHAT 'display_name'
^
spock/mcp/mcdata.py:830:1: W191 indentation contains tabs
#PL_UPDATE_GAMEMODE
^
spock/mcp/mcdata.py:830:6: E265 block comment should start with '# '
#PL_UPDATE_GAMEMODE
^
spock/mcp/mcdata.py:831:1: W191 indentation contains tabs
#MC_VARINT 'gamemode'
^
spock/mcp/mcdata.py:831:7: E265 block comment should start with '# '
#MC_VARINT 'gamemode'
^
spock/mcp/mcdata.py:832:1: W191 indentation contains tabs
#PL_UPDATE_LATENCY
^
spock/mcp/mcdata.py:832:6: E265 block comment should start with '# '
#PL_UPDATE_LATENCY
^
spock/mcp/mcdata.py:833:1: W191 indentation contains tabs
#MC_VARINT 'ping'
^
spock/mcp/mcdata.py:833:7: E265 block comment should start with '# '
#MC_VARINT 'ping'
^
spock/mcp/mcdata.py:834:1: W191 indentation contains tabs
#PL_UPDATE_DISPLAY
^
spock/mcp/mcdata.py:834:6: E265 block comment should start with '# '
#PL_UPDATE_DISPLAY
^
spock/mcp/mcdata.py:835:1: W191 indentation contains tabs
#MC_BOOL 'has_display'
^
spock/mcp/mcdata.py:835:7: E265 block comment should start with '# '
#MC_BOOL 'has_display'
^
spock/mcp/mcdata.py:836:1: W191 indentation contains tabs
#has_display == True
^
spock/mcp/mcdata.py:836:7: E265 block comment should start with '# '
#has_display == True
^
spock/mcp/mcdata.py:837:1: W191 indentation contains tabs
#MC_CHAT 'display_name'
^
spock/mcp/mcdata.py:837:8: E265 block comment should start with '# '
#MC_CHAT 'display_name'
^
spock/mcp/mcdata.py:838:1: W191 indentation contains tabs
#PL_REMOVE_PLAYER
^
spock/mcp/mcdata.py:838:6: E265 block comment should start with '# '
#PL_REMOVE_PLAYER
^
spock/mcp/mcdata.py:839:1: W191 indentation contains tabs
#No extra fields
^
spock/mcp/mcdata.py:839:7: E265 block comment should start with '# '
#No extra fields
^
spock/mcp/mcdata.py:840:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:841:1: W191 indentation contains tabs
#Player Abilities
^
spock/mcp/mcdata.py:841:4: E265 block comment should start with '# '
#Player Abilities
^
spock/mcp/mcdata.py:842:1: W191 indentation contains tabs
0x39: (
^
spock/mcp/mcdata.py:843:1: W191 indentation contains tabs
(MC_BYTE , 'flags'),
^
spock/mcp/mcdata.py:843:13: E203 whitespace before ','
(MC_BYTE , 'flags'),
^
spock/mcp/mcdata.py:844:1: W191 indentation contains tabs
(MC_FLOAT, 'flying_speed'),
^
spock/mcp/mcdata.py:845:1: W191 indentation contains tabs
(MC_FLOAT, 'walking_speed'),
^
spock/mcp/mcdata.py:846:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:847:1: W191 indentation contains tabs
#Tab-Complete
^
spock/mcp/mcdata.py:847:4: E265 block comment should start with '# '
#Tab-Complete
^
spock/mcp/mcdata.py:848:1: W191 indentation contains tabs
0x3A: (
^
spock/mcp/mcdata.py:849:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:849:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:850:1: W191 indentation contains tabs
#List of strings 'matches'
^
spock/mcp/mcdata.py:850:6: E131 continuation line unaligned for hanging indent
#List of strings 'matches'
^
spock/mcp/mcdata.py:850:6: E265 block comment should start with '# '
#List of strings 'matches'
^
spock/mcp/mcdata.py:851:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:852:1: W191 indentation contains tabs
#Scoreboard Objective
^
spock/mcp/mcdata.py:852:4: E265 block comment should start with '# '
#Scoreboard Objective
^
spock/mcp/mcdata.py:853:1: W191 indentation contains tabs
0x3B: (
^
spock/mcp/mcdata.py:854:1: W191 indentation contains tabs
(MC_STRING, 'obj_name'),
^
spock/mcp/mcdata.py:855:1: W191 indentation contains tabs
(MC_BYTE , 'action'),
^
spock/mcp/mcdata.py:855:14: E203 whitespace before ','
(MC_BYTE , 'action'),
^
spock/mcp/mcdata.py:856:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:856:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:857:1: W191 indentation contains tabs
#SO_CREATE_BOARD
^
spock/mcp/mcdata.py:857:6: E131 continuation line unaligned for hanging indent
#SO_CREATE_BOARD
^
spock/mcp/mcdata.py:857:6: E265 block comment should start with '# '
#SO_CREATE_BOARD
^
spock/mcp/mcdata.py:858:1: W191 indentation contains tabs
#SO_UPDATE_BOARD
^
spock/mcp/mcdata.py:858:6: E265 block comment should start with '# '
#SO_UPDATE_BOARD
^
spock/mcp/mcdata.py:859:1: W191 indentation contains tabs
#MC_STRING 'obj_val'
^
spock/mcp/mcdata.py:859:7: E131 continuation line unaligned for hanging indent
#MC_STRING 'obj_val'
^
spock/mcp/mcdata.py:859:7: E265 block comment should start with '# '
#MC_STRING 'obj_val'
^
spock/mcp/mcdata.py:860:1: W191 indentation contains tabs
#MC_STRING 'type'
^
spock/mcp/mcdata.py:860:7: E265 block comment should start with '# '
#MC_STRING 'type'
^
spock/mcp/mcdata.py:861:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:862:1: W191 indentation contains tabs
#Update Score
^
spock/mcp/mcdata.py:862:4: E265 block comment should start with '# '
#Update Score
^
spock/mcp/mcdata.py:863:1: W191 indentation contains tabs
0x3C: (
^
spock/mcp/mcdata.py:864:1: W191 indentation contains tabs
(MC_STRING, 'item_name'),
^
spock/mcp/mcdata.py:865:1: W191 indentation contains tabs
(MC_BYTE , 'action'),
^
spock/mcp/mcdata.py:865:14: E203 whitespace before ','
(MC_BYTE , 'action'),
^
spock/mcp/mcdata.py:866:1: W191 indentation contains tabs
(MC_STRING, 'score_name'),
^
spock/mcp/mcdata.py:867:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:867:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:868:1: W191 indentation contains tabs
#US_UPDATE_SCORE
^
spock/mcp/mcdata.py:868:6: E131 continuation line unaligned for hanging indent
#US_UPDATE_SCORE
^
spock/mcp/mcdata.py:868:6: E265 block comment should start with '# '
#US_UPDATE_SCORE
^
spock/mcp/mcdata.py:869:1: W191 indentation contains tabs
#MC_VARINT 'value'
^
spock/mcp/mcdata.py:869:7: E131 continuation line unaligned for hanging indent
#MC_VARINT 'value'
^
spock/mcp/mcdata.py:869:7: E265 block comment should start with '# '
#MC_VARINT 'value'
^
spock/mcp/mcdata.py:870:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:871:1: W191 indentation contains tabs
#Display Scoreboard
^
spock/mcp/mcdata.py:871:4: E265 block comment should start with '# '
#Display Scoreboard
^
spock/mcp/mcdata.py:872:1: W191 indentation contains tabs
0x3D: (
^
spock/mcp/mcdata.py:873:1: W191 indentation contains tabs
(MC_BYTE , 'position'),
^
spock/mcp/mcdata.py:873:14: E203 whitespace before ','
(MC_BYTE , 'position'),
^
spock/mcp/mcdata.py:874:1: W191 indentation contains tabs
(MC_STRING, 'score_name'),
^
spock/mcp/mcdata.py:875:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:876:1: W191 indentation contains tabs
#Teams
^
spock/mcp/mcdata.py:876:4: E265 block comment should start with '# '
#Teams
^
spock/mcp/mcdata.py:877:1: W191 indentation contains tabs
0x3E: (
^
spock/mcp/mcdata.py:878:1: W191 indentation contains tabs
(MC_STRING, 'team_name'),
^
spock/mcp/mcdata.py:879:1: W191 indentation contains tabs
(MC_BYTE , 'action'),
^
spock/mcp/mcdata.py:879:14: E203 whitespace before ','
(MC_BYTE , 'action'),
^
spock/mcp/mcdata.py:880:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:880:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:881:1: W191 indentation contains tabs
#Depends on action
^
spock/mcp/mcdata.py:881:6: E131 continuation line unaligned for hanging indent
#Depends on action
^
spock/mcp/mcdata.py:881:6: E265 block comment should start with '# '
#Depends on action
^
spock/mcp/mcdata.py:882:1: W191 indentation contains tabs
#TE_CREATE_TEAM gets all fields
^
spock/mcp/mcdata.py:882:6: E265 block comment should start with '# '
#TE_CREATE_TEAM gets all fields
^
spock/mcp/mcdata.py:883:1: W191 indentation contains tabs
#TE_UPDATE_TEAM
^
spock/mcp/mcdata.py:883:6: E265 block comment should start with '# '
#TE_UPDATE_TEAM
^
spock/mcp/mcdata.py:884:1: W191 indentation contains tabs
#MC_STRING 'display_name'
^
spock/mcp/mcdata.py:884:7: E131 continuation line unaligned for hanging indent
#MC_STRING 'display_name'
^
spock/mcp/mcdata.py:884:7: E265 block comment should start with '# '
#MC_STRING 'display_name'
^
spock/mcp/mcdata.py:885:1: W191 indentation contains tabs
#MC_STRING 'team_prefix'
^
spock/mcp/mcdata.py:885:7: E265 block comment should start with '# '
#MC_STRING 'team_prefix'
^
spock/mcp/mcdata.py:886:1: W191 indentation contains tabs
#MC_STRING 'team_suffix'
^
spock/mcp/mcdata.py:886:7: E265 block comment should start with '# '
#MC_STRING 'team_suffix'
^
spock/mcp/mcdata.py:887:1: W191 indentation contains tabs
#MC_BYTE 'friendly_fire'
^
spock/mcp/mcdata.py:887:7: E265 block comment should start with '# '
#MC_BYTE 'friendly_fire'
^
spock/mcp/mcdata.py:888:1: W191 indentation contains tabs
#MC_STRING 'name_visibility'
^
spock/mcp/mcdata.py:888:7: E265 block comment should start with '# '
#MC_STRING 'name_visibility'
^
spock/mcp/mcdata.py:889:1: W191 indentation contains tabs
#MC_BYTE 'color'
^
spock/mcp/mcdata.py:889:7: E265 block comment should start with '# '
#MC_BYTE 'color'
^
spock/mcp/mcdata.py:890:1: W191 indentation contains tabs
#TE_ADDPLY_TEAM
^
spock/mcp/mcdata.py:890:6: E265 block comment should start with '# '
#TE_ADDPLY_TEAM
^
spock/mcp/mcdata.py:891:1: W191 indentation contains tabs
#TE_REMPLY_TEAM
^
spock/mcp/mcdata.py:891:6: E265 block comment should start with '# '
#TE_REMPLY_TEAM
^
spock/mcp/mcdata.py:892:1: W191 indentation contains tabs
# List of strings 'players'
^
spock/mcp/mcdata.py:893:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:894:1: W191 indentation contains tabs
#Plugin Message
^
spock/mcp/mcdata.py:894:4: E265 block comment should start with '# '
#Plugin Message
^
spock/mcp/mcdata.py:895:1: W191 indentation contains tabs
0x3F: (
^
spock/mcp/mcdata.py:896:1: W191 indentation contains tabs
(MC_STRING, 'channel'),
^
spock/mcp/mcdata.py:897:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:897:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:898:1: W191 indentation contains tabs
#byte string 'data'
^
spock/mcp/mcdata.py:898:6: E131 continuation line unaligned for hanging indent
#byte string 'data'
^
spock/mcp/mcdata.py:898:6: E265 block comment should start with '# '
#byte string 'data'
^
spock/mcp/mcdata.py:899:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:900:1: W191 indentation contains tabs
#Disconnect
^
spock/mcp/mcdata.py:900:4: E265 block comment should start with '# '
#Disconnect
^
spock/mcp/mcdata.py:901:1: W191 indentation contains tabs
0x40: (
^
spock/mcp/mcdata.py:902:1: W191 indentation contains tabs
(MC_STRING, 'reason'),
^
spock/mcp/mcdata.py:903:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:904:1: W191 indentation contains tabs
#Server Difficulty
^
spock/mcp/mcdata.py:904:4: E265 block comment should start with '# '
#Server Difficulty
^
spock/mcp/mcdata.py:905:1: W191 indentation contains tabs
0x41: (
^
spock/mcp/mcdata.py:906:1: W191 indentation contains tabs
(MC_UBYTE, 'difficulty'),
^
spock/mcp/mcdata.py:907:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:908:1: W191 indentation contains tabs
#Combat Event
^
spock/mcp/mcdata.py:908:4: E265 block comment should start with '# '
#Combat Event
^
spock/mcp/mcdata.py:909:1: W191 indentation contains tabs
0x42: (
^
spock/mcp/mcdata.py:910:1: W191 indentation contains tabs
(MC_VARINT, 'event'),
^
spock/mcp/mcdata.py:911:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:911:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:912:1: W191 indentation contains tabs
#CE_END_COMBAT
^
spock/mcp/mcdata.py:912:6: E131 continuation line unaligned for hanging indent
#CE_END_COMBAT
^
spock/mcp/mcdata.py:912:6: E265 block comment should start with '# '
#CE_END_COMBAT
^
spock/mcp/mcdata.py:913:1: W191 indentation contains tabs
#MC_VARINT 'duration'
^
spock/mcp/mcdata.py:913:7: E131 continuation line unaligned for hanging indent
#MC_VARINT 'duration'
^
spock/mcp/mcdata.py:913:7: E265 block comment should start with '# '
#MC_VARINT 'duration'
^
spock/mcp/mcdata.py:914:1: W191 indentation contains tabs
#MC_INT 'eid'
^
spock/mcp/mcdata.py:914:7: E265 block comment should start with '# '
#MC_INT 'eid'
^
spock/mcp/mcdata.py:915:1: W191 indentation contains tabs
#CE_ENTITY_DEAD
^
spock/mcp/mcdata.py:915:6: E265 block comment should start with '# '
#CE_ENTITY_DEAD
^
spock/mcp/mcdata.py:916:1: W191 indentation contains tabs
#MC_VARINT 'player_id'
^
spock/mcp/mcdata.py:916:7: E265 block comment should start with '# '
#MC_VARINT 'player_id'
^
spock/mcp/mcdata.py:917:1: W191 indentation contains tabs
#MC_INT 'eid'
^
spock/mcp/mcdata.py:917:7: E265 block comment should start with '# '
#MC_INT 'eid'
^
spock/mcp/mcdata.py:918:1: W191 indentation contains tabs
#MC_STRING 'message'
^
spock/mcp/mcdata.py:918:7: E265 block comment should start with '# '
#MC_STRING 'message'
^
spock/mcp/mcdata.py:919:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:920:1: W191 indentation contains tabs
#Camera
^
spock/mcp/mcdata.py:920:4: E265 block comment should start with '# '
#Camera
^
spock/mcp/mcdata.py:921:1: W191 indentation contains tabs
0x43: (
^
spock/mcp/mcdata.py:922:1: W191 indentation contains tabs
(MC_VARINT, 'camera_id'),
^
spock/mcp/mcdata.py:923:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:924:1: W191 indentation contains tabs
#World Border
^
spock/mcp/mcdata.py:924:4: E265 block comment should start with '# '
#World Border
^
spock/mcp/mcdata.py:925:1: W191 indentation contains tabs
0x44: (
^
spock/mcp/mcdata.py:926:1: W191 indentation contains tabs
(MC_VARINT, 'action'),
^
spock/mcp/mcdata.py:927:1: W191 indentation contains tabs
#Extension
^
spock/mcp/mcdata.py:927:5: E265 block comment should start with '# '
#Extension
^
spock/mcp/mcdata.py:928:1: W191 indentation contains tabs
#WB_SET_SIZE
^
spock/mcp/mcdata.py:928:6: E131 continuation line unaligned for hanging indent
#WB_SET_SIZE
^
spock/mcp/mcdata.py:928:6: E265 block comment should start with '# '
#WB_SET_SIZE
^
spock/mcp/mcdata.py:929:1: W191 indentation contains tabs
#MC_DOUBLE 'radius'
^
spock/mcp/mcdata.py:929:7: E131 continuation line unaligned for hanging indent
#MC_DOUBLE 'radius'
^
spock/mcp/mcdata.py:929:7: E265 block comment should start with '# '
#MC_DOUBLE 'radius'
^
spock/mcp/mcdata.py:930:1: W191 indentation contains tabs
#WB_LERP_SIZE
^
spock/mcp/mcdata.py:930:6: E265 block comment should start with '# '
#WB_LERP_SIZE
^
spock/mcp/mcdata.py:931:1: W191 indentation contains tabs
#MC_DOUBLE 'old_radius'
^
spock/mcp/mcdata.py:931:7: E265 block comment should start with '# '
#MC_DOUBLE 'old_radius'
^
spock/mcp/mcdata.py:932:1: W191 indentation contains tabs
#MC_DOUBLE 'new_radius'
^
spock/mcp/mcdata.py:932:7: E265 block comment should start with '# '
#MC_DOUBLE 'new_radius'
^
spock/mcp/mcdata.py:933:1: W191 indentation contains tabs
#MC_VARLONG 'speed'
^
spock/mcp/mcdata.py:933:7: E265 block comment should start with '# '
#MC_VARLONG 'speed'
^
spock/mcp/mcdata.py:934:1: W191 indentation contains tabs
#WB_SET_CENTER
^
spock/mcp/mcdata.py:934:6: E265 block comment should start with '# '
#WB_SET_CENTER
^
spock/mcp/mcdata.py:935:1: W191 indentation contains tabs
#MC_DOUBLE 'x'
^
spock/mcp/mcdata.py:935:7: E265 block comment should start with '# '
#MC_DOUBLE 'x'
^
spock/mcp/mcdata.py:936:1: W191 indentation contains tabs
#MC_DOUBLE 'z'
^
spock/mcp/mcdata.py:936:7: E265 block comment should start with '# '
#MC_DOUBLE 'z'
^
spock/mcp/mcdata.py:937:1: W191 indentation contains tabs
#WB_INITIALIZE
^
spock/mcp/mcdata.py:937:6: E265 block comment should start with '# '
#WB_INITIALIZE
^
spock/mcp/mcdata.py:938:1: W191 indentation contains tabs
#MC_DOUBLE 'x'
^
spock/mcp/mcdata.py:938:7: E265 block comment should start with '# '
#MC_DOUBLE 'x'
^
spock/mcp/mcdata.py:939:1: W191 indentation contains tabs
#MC_DOUBLE 'z'
^
spock/mcp/mcdata.py:939:7: E265 block comment should start with '# '
#MC_DOUBLE 'z'
^
spock/mcp/mcdata.py:940:1: W191 indentation contains tabs
#MC_DOUBLE 'old_radius'
^
spock/mcp/mcdata.py:940:7: E265 block comment should start with '# '
#MC_DOUBLE 'old_radius'
^
spock/mcp/mcdata.py:941:1: W191 indentation contains tabs
#MC_DOUBLE 'new_radius'
^
spock/mcp/mcdata.py:941:7: E265 block comment should start with '# '
#MC_DOUBLE 'new_radius'
^
spock/mcp/mcdata.py:942:1: W191 indentation contains tabs
#MC_VARLONG 'speed'
^
spock/mcp/mcdata.py:942:7: E265 block comment should start with '# '
#MC_VARLONG 'speed'
^
spock/mcp/mcdata.py:943:1: W191 indentation contains tabs
#MC_VARINT 'port_tele_bound' #Portal Teleport Boundary
^
spock/mcp/mcdata.py:943:7: E265 block comment should start with '# '
#MC_VARINT 'port_tele_bound' #Portal Teleport Boundary
^
spock/mcp/mcdata.py:944:1: W191 indentation contains tabs
#MC_VARINT 'warn_time'
^
spock/mcp/mcdata.py:944:7: E265 block comment should start with '# '
#MC_VARINT 'warn_time'
^
spock/mcp/mcdata.py:945:1: W191 indentation contains tabs
#MC_VARINT 'warn_blocks'
^
spock/mcp/mcdata.py:945:7: E265 block comment should start with '# '
#MC_VARINT 'warn_blocks'
^
spock/mcp/mcdata.py:946:1: W191 indentation contains tabs
#WB_SET_WARN_TIME
^
spock/mcp/mcdata.py:946:6: E265 block comment should start with '# '
#WB_SET_WARN_TIME
^
spock/mcp/nbt.py:5:1: N812 lowercase imported as non lowercase
spock/mcp/mcdata.py:947:1: W191 indentation contains tabs
#MC_VARINT 'warn_time'
from struct import Struct, error as StructError
^
spock/mcp/mcdata.py:947:7: E265 block comment should start with '# '
#MC_VARINT 'warn_time'
^
^
spock/mcp/mcdata.py:948:1: W191 indentation contains tabs
spock/mcp/nbt.py:6:1: I100 Imports statements are in the wrong order. from collections should be before from struct
#WB_SET_WARN_BLOCKS
^
from collections import MutableMapping, MutableSequence, Sequence
spock/mcp/mcdata.py:948:6: E265 block comment should start with '# '
#WB_SET_WARN_BLOCKS
^
^
spock/mcp/mcdata.py:949:1: W191 indentation contains tabs
spock/mcp/nbt.py:9:1: W191 indentation contains tabs
#MC_VARINT 'warn_blocks'
^
unicode
spock/mcp/mcdata.py:949:7: E265 block comment should start with '# '
#MC_VARINT 'warn_blocks'
^
^
spock/mcp/mcdata.py:950:1: W191 indentation contains tabs
spock/mcp/nbt.py:10:1: W191 indentation contains tabs
),
^
basestring
spock/mcp/mcdata.py:951:1: W191 indentation contains tabs
#Title
^
^
spock/mcp/mcdata.py:951:4: E265 block comment should start with '# '
spock/mcp/nbt.py:12:1: W191 indentation contains tabs
#Title
^
unicode = str # compatibility for Python 3
spock/mcp/mcdata.py:952:1: W191 indentation contains tabs
0x45: (
^
^
spock/mcp/mcdata.py:953:1: W191 indentation contains tabs
spock/mcp/nbt.py:13:1: W191 indentation contains tabs
(MC_VARINT, 'action'),
^
basestring = str # compatibility for Python 3
spock/mcp/mcdata.py:954:1: W191 indentation contains tabs
#Extension
^
^
spock/mcp/mcdata.py:954:5: E265 block comment should start with '# '
spock/mcp/nbt.py:29:1: E302 expected 2 blank lines, found 1
#Extension
class MalformedFileError(Exception):
^
spock/mcp/mcdata.py:955:1: W191 indentation contains tabs
^
#TL_TITLE
^
spock/mcp/nbt.py:30:1: W191 indentation contains tabs
spock/mcp/mcdata.py:955:6: E131 continuation line unaligned for hanging indent
#TL_TITLE
"""Exception raised on parse error."""
^
spock/mcp/mcdata.py:955:6: E265 block comment should start with '# '
^
#TL_TITLE
^
spock/mcp/nbt.py:31:1: W191 indentation contains tabs
spock/mcp/mcdata.py:956:1: W191 indentation contains tabs
#TL_SUBTITLE
pass
^
spock/mcp/mcdata.py:956:6: E265 block comment should start with '# '
^
#TL_SUBTITLE
^
spock/mcp/nbt.py:33:1: E302 expected 2 blank lines, found 1
spock/mcp/mcdata.py:957:1: W191 indentation contains tabs
#MC_CHAT 'text'
class TAG(object):
^
spock/mcp/mcdata.py:957:7: E131 continuation line unaligned for hanging indent
^
#MC_CHAT 'text'
^
spock/mcp/nbt.py:34:1: W191 indentation contains tabs
spock/mcp/mcdata.py:957:7: E265 block comment should start with '# '
#MC_CHAT 'text'
"""TAG, a variable with an intrinsic name."""
^
spock/mcp/mcdata.py:958:1: W191 indentation contains tabs
^
#TL_TIMES
^
spock/mcp/nbt.py:35:1: W191 indentation contains tabs
spock/mcp/mcdata.py:958:6: E265 block comment should start with '# '
#TL_TIMES
id = None
^
spock/mcp/mcdata.py:959:1: W191 indentation contains tabs
^
#MC_INT 'fade_in'
^
spock/mcp/nbt.py:37:1: W191 indentation contains tabs
spock/mcp/mcdata.py:959:7: E265 block comment should start with '# '
#MC_INT 'fade_in'
def __init__(self, value=None, name=None):
^
spock/mcp/mcdata.py:960:1: W191 indentation contains tabs
^
#MC_INT 'stay'
^
spock/mcp/nbt.py:38:1: W191 indentation contains tabs
spock/mcp/mcdata.py:960:7: E265 block comment should start with '# '
#MC_INT 'stay'
self.name = name
^
spock/mcp/mcdata.py:961:1: W191 indentation contains tabs
^
#MC_INT 'fade_out'
^
spock/mcp/nbt.py:39:1: W191 indentation contains tabs
spock/mcp/mcdata.py:961:7: E265 block comment should start with '# '
#MC_INT 'fade_out'
self.value = value
^
^
spock/mcp/mcdata.py:962:1: W191 indentation contains tabs
),
spock/mcp/nbt.py:41:1: W191 indentation contains tabs
^
#Parsers and Generators
spock/mcp/mcdata.py:963:1: W191 indentation contains tabs
#Set Compression
^
^
spock/mcp/mcdata.py:963:4: E265 block comment should start with '# '
spock/mcp/nbt.py:41:2: E265 block comment should start with '# '
#Set Compression
#Parsers and Generators
^
spock/mcp/mcdata.py:964:1: W191 indentation contains tabs
^
0x46: (
^
spock/mcp/nbt.py:42:1: W191 indentation contains tabs
spock/mcp/mcdata.py:965:1: W191 indentation contains tabs
(MC_VARINT, 'threshold'),
def _parse_buffer(self, buffer):
^
spock/mcp/mcdata.py:966:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:43:1: W191 indentation contains tabs
spock/mcp/mcdata.py:967:1: W191 indentation contains tabs
#Play List Header/Footer
raise NotImplementedError(self.__class__.__name__)
^
spock/mcp/mcdata.py:967:4: E265 block comment should start with '# '
^
#Play List Header/Footer
^
spock/mcp/nbt.py:45:1: W191 indentation contains tabs
spock/mcp/mcdata.py:968:1: W191 indentation contains tabs
0x47: (
def _render_buffer(self, buffer):
^
spock/mcp/mcdata.py:969:1: W191 indentation contains tabs
^
(MC_CHAT, 'header'),
^
spock/mcp/nbt.py:46:1: W191 indentation contains tabs
spock/mcp/mcdata.py:970:1: W191 indentation contains tabs
(MC_CHAT, 'footer'),
raise NotImplementedError(self.__class__.__name__)
^
spock/mcp/mcdata.py:971:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:48:1: W191 indentation contains tabs
spock/mcp/mcdata.py:972:1: W191 indentation contains tabs
#Resource Pack Send
#Printing and Formatting of tree
^
spock/mcp/mcdata.py:972:4: E265 block comment should start with '# '
^
#Resource Pack Send
^
spock/mcp/nbt.py:48:2: E265 block comment should start with '# '
spock/mcp/mcdata.py:973:1: W191 indentation contains tabs
0x48: (
#Printing and Formatting of tree
^
spock/mcp/mcdata.py:974:1: W191 indentation contains tabs
^
(MC_STRING, 'url'),
^
spock/mcp/nbt.py:49:1: W191 indentation contains tabs
spock/mcp/mcdata.py:975:1: W191 indentation contains tabs
(MC_STRING, 'hash'),
def tag_info(self):
^
spock/mcp/mcdata.py:976:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:50:1: W191 indentation contains tabs
spock/mcp/mcdata.py:977:1: W191 indentation contains tabs
#Update Entity NBT
"""Return Unicode string with class, name and unnested value."""
^
spock/mcp/mcdata.py:977:4: E265 block comment should start with '# '
^
#Update Entity NBT
^
spock/mcp/nbt.py:52:5: E127 continuation line over-indented for visual indent
spock/mcp/mcdata.py:978:1: W191 indentation contains tabs
0x49: (
('(%r)' % self.name if self.name else "") + \
^
spock/mcp/mcdata.py:979:1: W191 indentation contains tabs
^
(MC_VARINT, 'eid'),
^
spock/mcp/nbt.py:53:1: W191 indentation contains tabs
spock/mcp/mcdata.py:980:1: W191 indentation contains tabs
#Extension
": " + self.valuestr()
^
spock/mcp/mcdata.py:980:5: E265 block comment should start with '# '
^
#Extension
^
spock/mcp/nbt.py:53:5: E127 continuation line over-indented for visual indent
spock/mcp/mcdata.py:981:1: W191 indentation contains tabs
#NBT Data 'nbt'
": " + self.valuestr()
^
spock/mcp/mcdata.py:981:6: E131 continuation line unaligned for hanging indent
^
#NBT Data 'nbt'
^
spock/mcp/nbt.py:54:1: W191 indentation contains tabs
spock/mcp/mcdata.py:981:6: E265 block comment should start with '# '
#NBT Data 'nbt'
def valuestr(self):
^
^
spock/mcp/mcdata.py:982:1: W191 indentation contains tabs
),
spock/mcp/nbt.py:54:2: E301 expected 1 blank line, found 0
^
def valuestr(self):
spock/mcp/mcdata.py:983:1: W191 indentation contains tabs
},
^
^
spock/mcp/mcdata.py:985:1: W191 indentation contains tabs
spock/mcp/nbt.py:55:1: W191 indentation contains tabs
CLIENT_TO_SERVER: {
^
"""Return Unicode string of unnested value. For iterators, this returns a summary."""
spock/mcp/mcdata.py:986:1: W191 indentation contains tabs
^
#Keep Alive
^
spock/mcp/nbt.py:55:80: E501 line too long (87 > 79 characters)
spock/mcp/mcdata.py:986:4: E265 block comment should start with '# '
#Keep Alive
"""Return Unicode string of unnested value. For iterators, this returns a summary."""
^
spock/mcp/mcdata.py:987:1: W191 indentation contains tabs
0x00: (
^
^
spock/mcp/mcdata.py:988:1: W191 indentation contains tabs
(MC_VARINT, 'keep_alive'),
^
spock/mcp/nbt.py:56:1: W191 indentation contains tabs
spock/mcp/mcdata.py:989:1: W191 indentation contains tabs
),
return unicode(self.value)
^
spock/mcp/mcdata.py:990:1: W191 indentation contains tabs
^
#Chat Message
^
spock/mcp/nbt.py:58:1: W191 indentation contains tabs
spock/mcp/mcdata.py:990:4: E265 block comment should start with '# '
#Chat Message
def pretty_tree(self, indent=0):
^
spock/mcp/mcdata.py:991:1: W191 indentation contains tabs
^
0x01: (
^
spock/mcp/nbt.py:59:1: W191 indentation contains tabs
spock/mcp/mcdata.py:992:1: W191 indentation contains tabs
(MC_STRING, 'message'),
"""Return formated Unicode string of self, where iterable items are recursively listed in detail."""
^
spock/mcp/mcdata.py:993:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:59:80: E501 line too long (102 > 79 characters)
spock/mcp/mcdata.py:994:1: W191 indentation contains tabs
#Use Entity
"""Return formated Unicode string of self, where iterable items are recursively listed in detail."""
^
spock/mcp/mcdata.py:994:4: E265 block comment should start with '# '
#Use Entity
^
^
spock/mcp/mcdata.py:995:1: W191 indentation contains tabs
0x02: (
spock/mcp/nbt.py:60:1: W191 indentation contains tabs
^
return ("\t"*indent) + self.tag_info()
spock/mcp/mcdata.py:996:1: W191 indentation contains tabs
(MC_VARINT, 'target'),
^
^
spock/mcp/mcdata.py:997:1: W191 indentation contains tabs
spock/mcp/nbt.py:62:1: W191 indentation contains tabs
(MC_VARINT, 'action'),
^
# Python 2 compatibility; Python 3 uses __str__ instead.
spock/mcp/mcdata.py:998:1: W191 indentation contains tabs
#Extension
^
^
spock/mcp/mcdata.py:998:5: E265 block comment should start with '# '
spock/mcp/nbt.py:63:1: W191 indentation contains tabs
#Extension
^
def __unicode__(self):
spock/mcp/mcdata.py:999:1: W191 indentation contains tabs
#UE_INTERACT_AT
^
^
spock/mcp/mcdata.py:999:6: E131 continuation line unaligned for hanging indent
spock/mcp/nbt.py:64:1: W191 indentation contains tabs
#UE_INTERACT_AT
^
"""Return a unicode string with the result in human readable format. Unlike valuestr(), the result is recursive for iterators till at least one level deep."""
spock/mcp/mcdata.py:999:6: E265 block comment should start with '# '
#UE_INTERACT_AT
^
^
spock/mcp/mcdata.py:1000:1: W191 indentation contains tabs
spock/mcp/nbt.py:64:80: E501 line too long (160 > 79 characters)
#MC_FLOAT 'target_x'
^
"""Return a unicode string with the result in human readable format. Unlike valuestr(), the result is recursive for iterators till at least one level deep."""
spock/mcp/mcdata.py:1000:7: E131 continuation line unaligned for hanging indent
#MC_FLOAT 'target_x'
^
spock/mcp/mcdata.py:1000:7: E265 block comment should start with '# '
#MC_FLOAT 'target_x'
^
^
spock/mcp/mcdata.py:1001:1: W191 indentation contains tabs
spock/mcp/nbt.py:65:1: W191 indentation contains tabs
#MC_FLOAT 'target_y'
^
return unicode(self.value)
spock/mcp/mcdata.py:1001:7: E265 block comment should start with '# '
#MC_FLOAT 'target_y'
^
^
spock/mcp/mcdata.py:1002:1: W191 indentation contains tabs
spock/mcp/nbt.py:67:1: W191 indentation contains tabs
#MC_FLOAT 'target_z'
^
def __str__(self):
spock/mcp/mcdata.py:1002:7: E265 block comment should start with '# '
#MC_FLOAT 'target_z'
^
^
spock/mcp/mcdata.py:1003:1: W191 indentation contains tabs
spock/mcp/nbt.py:68:1: W191 indentation contains tabs
),
^
"""Return a string (ascii formated for Python 2, unicode for Python 3) with the result in human readable format. Unlike valuestr(), the result is recursive for iterators till at least one level deep."""
spock/mcp/mcdata.py:1004:1: W191 indentation contains tabs
#Player
^
^
spock/mcp/mcdata.py:1004:4: E265 block comment should start with '# '
spock/mcp/nbt.py:68:80: E501 line too long (204 > 79 characters)
#Player
^
"""Return a string (ascii formated for Python 2, unicode for Python 3) with the result in human readable format. Unlike valuestr(), the result is recursive for iterators till at least one level deep."""
spock/mcp/mcdata.py:1005:1: W191 indentation contains tabs
0x03: (
^
spock/mcp/mcdata.py:1006:1: W191 indentation contains tabs
(MC_BOOL, 'on_ground'),
^
^
spock/mcp/mcdata.py:1007:1: W191 indentation contains tabs
spock/mcp/nbt.py:69:1: W191 indentation contains tabs
),
return str(self.value)
^
spock/mcp/mcdata.py:1008:1: W191 indentation contains tabs
^
#Player Position
^
spock/mcp/nbt.py:70:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1008:4: E265 block comment should start with '# '
#Player Position
# Unlike regular iterators, __repr__() is not recursive.
^
spock/mcp/mcdata.py:1009:1: W191 indentation contains tabs
^
0x04: (
^
spock/mcp/nbt.py:71:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1010:1: W191 indentation contains tabs
(MC_DOUBLE, 'x'),
# Use pretty_tree for recursive results.
^
spock/mcp/mcdata.py:1011:1: W191 indentation contains tabs
^
(MC_DOUBLE, 'y'),
^
spock/mcp/nbt.py:72:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1012:1: W191 indentation contains tabs
(MC_DOUBLE, 'z'),
# iterators should use __repr__ or tag_info for each item, like regular iterators
^
spock/mcp/mcdata.py:1013:1: W191 indentation contains tabs
^
(MC_BOOL , 'on_ground'),
^
spock/mcp/nbt.py:72:80: E501 line too long (82 > 79 characters)
spock/mcp/mcdata.py:1013:14: E203 whitespace before ','
(MC_BOOL , 'on_ground'),
# iterators should use __repr__ or tag_info for each item, like regular iterators
^
spock/mcp/mcdata.py:1014:1: W191 indentation contains tabs
),
^
^
spock/mcp/mcdata.py:1015:1: W191 indentation contains tabs
#Player Look
spock/mcp/nbt.py:73:1: W191 indentation contains tabs
^
spock/mcp/mcdata.py:1015:4: E265 block comment should start with '# '
def __repr__(self):
#Player Look
^
^
spock/mcp/mcdata.py:1016:1: W191 indentation contains tabs
0x05: (
spock/mcp/nbt.py:73:2: E301 expected 1 blank line, found 0
^
def __repr__(self):
spock/mcp/mcdata.py:1017:1: W191 indentation contains tabs
(MC_FLOAT, 'yaw'),
^
^
spock/mcp/mcdata.py:1018:1: W191 indentation contains tabs
spock/mcp/nbt.py:74:1: W191 indentation contains tabs
(MC_FLOAT, 'pitch'),
^
"""Return a string (ascii formated for Python 2, unicode for Python 3) describing the class, name and id for debugging purposes."""
spock/mcp/mcdata.py:1019:1: W191 indentation contains tabs
(MC_BOOL , 'on_ground'),
^
^
spock/mcp/mcdata.py:1019:13: E203 whitespace before ','
spock/mcp/nbt.py:74:80: E501 line too long (133 > 79 characters)
(MC_BOOL , 'on_ground'),
"""Return a string (ascii formated for Python 2, unicode for Python 3) describing the class, name and id for debugging purposes."""
^
spock/mcp/mcdata.py:1020:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:1021:1: W191 indentation contains tabs
^
#Player Position and Look
^
spock/mcp/nbt.py:75:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1021:4: E265 block comment should start with '# '
#Player Position and Look
return "<%s(%r) at 0x%x>" % (self.__class__.__name__,self.name,id(self))
^
spock/mcp/mcdata.py:1022:1: W191 indentation contains tabs
0x06: (
^
^
spock/mcp/mcdata.py:1023:1: W191 indentation contains tabs
(MC_DOUBLE, 'x'),
^
spock/mcp/mcdata.py:1024:1: W191 indentation contains tabs
(MC_DOUBLE, 'y'),
^
spock/mcp/mcdata.py:1025:1: W191 indentation contains tabs
(MC_DOUBLE, 'z'),
spock/mcp/nbt.py:75:55: E231 missing whitespace after ','
^
spock/mcp/mcdata.py:1026:1: W191 indentation contains tabs
return "<%s(%r) at 0x%x>" % (self.__class__.__name__,self.name,id(self))
(MC_FLOAT, 'yaw'),
^
spock/mcp/mcdata.py:1027:1: W191 indentation contains tabs
(MC_FLOAT, 'pitch'),
^
^
spock/mcp/mcdata.py:1028:1: W191 indentation contains tabs
spock/mcp/nbt.py:75:65: E231 missing whitespace after ','
(MC_BOOL , 'on_ground'),
^
return "<%s(%r) at 0x%x>" % (self.__class__.__name__,self.name,id(self))
spock/mcp/mcdata.py:1028:13: E203 whitespace before ','
(MC_BOOL , 'on_ground'),
^
spock/mcp/mcdata.py:1029:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:77:1: E302 expected 2 blank lines, found 1
spock/mcp/mcdata.py:1030:1: W191 indentation contains tabs
#Player Digging
class _TAG_Numeric(TAG):
^
spock/mcp/mcdata.py:1030:4: E265 block comment should start with '# '
^
#Player Digging
^
spock/mcp/nbt.py:77:7: N801 class names should use CapWords convention
spock/mcp/mcdata.py:1031:1: W191 indentation contains tabs
0x07: (
class _TAG_Numeric(TAG):
^
spock/mcp/mcdata.py:1032:1: W191 indentation contains tabs
^
(MC_BYTE , 'status'),
^
spock/mcp/nbt.py:78:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1032:16: E203 whitespace before ','
(MC_BYTE , 'status'),
"""_TAG_Numeric, comparable to int with an intrinsic name"""
^
^
spock/mcp/mcdata.py:1033:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
spock/mcp/nbt.py:79:1: W191 indentation contains tabs
^
def __init__(self, value=None, name=None, buffer=None):
spock/mcp/mcdata.py:1034:1: W191 indentation contains tabs
(MC_BYTE , 'face'),
^
^
spock/mcp/mcdata.py:1034:16: E203 whitespace before ','
spock/mcp/nbt.py:80:1: W191 indentation contains tabs
(MC_BYTE , 'face'),
super(_TAG_Numeric, self).__init__(value, name)
^
spock/mcp/mcdata.py:1035:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:81:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1036:1: W191 indentation contains tabs
#Player Block Placement
if buffer:
^
spock/mcp/mcdata.py:1036:4: E265 block comment should start with '# '
^
#Player Block Placement
^
spock/mcp/nbt.py:82:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1037:1: W191 indentation contains tabs
0x08: (
self._parse_buffer(buffer)
^
spock/mcp/mcdata.py:1038:1: W191 indentation contains tabs
^
(MC_POSITION, 'location'),
^
spock/mcp/nbt.py:84:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1039:1: W191 indentation contains tabs
(MC_BYTE , 'direction'),
#Parsers and Generators
^
spock/mcp/mcdata.py:1039:16: E203 whitespace before ','
^
(MC_BYTE , 'direction'),
^
spock/mcp/nbt.py:84:2: E265 block comment should start with '# '
spock/mcp/mcdata.py:1040:1: W191 indentation contains tabs
#Parsers and Generators
(MC_SLOT , 'held_item'),
^
^
spock/mcp/mcdata.py:1040:16: E203 whitespace before ','
(MC_SLOT , 'held_item'),
spock/mcp/nbt.py:85:1: W191 indentation contains tabs
^
def _parse_buffer(self, buffer):
spock/mcp/mcdata.py:1041:1: W191 indentation contains tabs
(MC_BYTE , 'cur_pos_x'),
^
^
spock/mcp/mcdata.py:1041:16: E203 whitespace before ','
spock/mcp/nbt.py:86:1: W191 indentation contains tabs
(MC_BYTE , 'cur_pos_x'),
# Note: buffer.read() may raise an IOError, for example if buffer is a corrupt gzip.GzipFile
^
spock/mcp/mcdata.py:1042:1: W191 indentation contains tabs
^
(MC_BYTE , 'cur_pos_y'),
^
spock/mcp/nbt.py:86:80: E501 line too long (94 > 79 characters)
spock/mcp/mcdata.py:1042:16: E203 whitespace before ','
(MC_BYTE , 'cur_pos_y'),
# Note: buffer.read() may raise an IOError, for example if buffer is a corrupt gzip.GzipFile
^
spock/mcp/mcdata.py:1043:1: W191 indentation contains tabs
(MC_BYTE , 'cur_pos_z'),
^
^
spock/mcp/mcdata.py:1043:16: E203 whitespace before ','
(MC_BYTE , 'cur_pos_z'),
spock/mcp/nbt.py:87:1: W191 indentation contains tabs
^
self.value = self.fmt.unpack(buffer.read(self.fmt.size))[0]
spock/mcp/mcdata.py:1044:1: W191 indentation contains tabs
),
^
^
spock/mcp/mcdata.py:1045:1: W191 indentation contains tabs
spock/mcp/nbt.py:89:1: W191 indentation contains tabs
#Held Item Change
^
def _render_buffer(self, buffer):
spock/mcp/mcdata.py:1045:4: E265 block comment should start with '# '
#Held Item Change
^
^
spock/mcp/mcdata.py:1046:1: W191 indentation contains tabs
spock/mcp/nbt.py:90:1: W191 indentation contains tabs
0x09: (
buffer.write(self.fmt.pack(self.value))
^
spock/mcp/mcdata.py:1047:1: W191 indentation contains tabs
^
(MC_SHORT, 'slot'),
^
spock/mcp/nbt.py:92:1: E302 expected 2 blank lines, found 1
spock/mcp/mcdata.py:1048:1: W191 indentation contains tabs
),
class _TAG_End(TAG):
^
spock/mcp/mcdata.py:1049:1: W191 indentation contains tabs
^
#Animation
^
spock/mcp/nbt.py:92:7: N801 class names should use CapWords convention
spock/mcp/mcdata.py:1049:4: E265 block comment should start with '# '
#Animation
class _TAG_End(TAG):
^
spock/mcp/mcdata.py:1050:1: W191 indentation contains tabs
^
0x0A: (
^
spock/mcp/nbt.py:93:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1051:1: W191 indentation contains tabs
#Empty Packet
id = TAG_END
^
spock/mcp/mcdata.py:1051:5: E265 block comment should start with '# '
^
#Empty Packet
^
spock/mcp/nbt.py:94:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1052:1: W191 indentation contains tabs
),
fmt = Struct(">b")
^
spock/mcp/mcdata.py:1053:1: W191 indentation contains tabs
^
#Entity Action
^
spock/mcp/nbt.py:96:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1053:4: E265 block comment should start with '# '
#Entity Action
def _parse_buffer(self, buffer):
^
spock/mcp/mcdata.py:1054:1: W191 indentation contains tabs
^
0x0B: (
^
spock/mcp/nbt.py:97:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1055:1: W191 indentation contains tabs
(MC_VARINT, 'eid'),
# Note: buffer.read() may raise an IOError, for example if buffer is a corrupt gzip.GzipFile
^
spock/mcp/mcdata.py:1056:1: W191 indentation contains tabs
^
(MC_VARINT, 'action'),
^
spock/mcp/nbt.py:97:80: E501 line too long (94 > 79 characters)
spock/mcp/mcdata.py:1057:1: W191 indentation contains tabs
(MC_VARINT, 'jump_boost'),
# Note: buffer.read() may raise an IOError, for example if buffer is a corrupt gzip.GzipFile
^
spock/mcp/mcdata.py:1058:1: W191 indentation contains tabs
),
^
spock/mcp/mcdata.py:1059:1: W191 indentation contains tabs
^
#Steer Vehicle
^
spock/mcp/nbt.py:98:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1059:4: E265 block comment should start with '# '
#Steer Vehicle
value = self.fmt.unpack(buffer.read(1))[0]
^
spock/mcp/mcdata.py:1060:1: W191 indentation contains tabs
^
0x0C: (
^
spock/mcp/nbt.py:99:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1061:1: W191 indentation contains tabs
(MC_FLOAT, 'sideways'),
if value != 0:
^
spock/mcp/mcdata.py:1062:1: W191 indentation contains tabs
^
(MC_FLOAT, 'forward'),
^
spock/mcp/nbt.py:100:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1063:1: W191 indentation contains tabs
(MC_UBYTE, 'flags'),
raise ValueError("A Tag End must be rendered as '0', not as '%d'." % (value))
^
spock/mcp/mcdata.py:1064:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:100:80: E501 line too long (80 > 79 characters)
spock/mcp/mcdata.py:1065:1: W191 indentation contains tabs
raise ValueError("A Tag End must be rendered as '0', not as '%d'." % (value))
#Close Window
^
spock/mcp/mcdata.py:1065:4: E265 block comment should start with '# '
#Close Window
^
^
spock/mcp/mcdata.py:1066:1: W191 indentation contains tabs
0x0D: (
spock/mcp/nbt.py:102:1: W191 indentation contains tabs
^
def _render_buffer(self, buffer):
spock/mcp/mcdata.py:1067:1: W191 indentation contains tabs
(MC_BYTE, 'window_id'),
^
^
spock/mcp/mcdata.py:1068:1: W191 indentation contains tabs
spock/mcp/nbt.py:103:1: W191 indentation contains tabs
),
^
buffer.write(b'\x00')
spock/mcp/mcdata.py:1069:1: W191 indentation contains tabs
#Click Window
^
^
spock/mcp/mcdata.py:1069:4: E265 block comment should start with '# '
spock/mcp/nbt.py:105:1: E265 block comment should start with '# '
#Click Window
^
#== Value Tags ==#
spock/mcp/mcdata.py:1070:1: W191 indentation contains tabs
0x0E: (
^
^
spock/mcp/mcdata.py:1071:1: W191 indentation contains tabs
spock/mcp/nbt.py:106:1: E302 expected 2 blank lines, found 1
(MC_BYTE , 'window_id'),
^
class TAG_Byte(_TAG_Numeric):
spock/mcp/mcdata.py:1071:13: E203 whitespace before ','
(MC_BYTE , 'window_id'),
^
^
spock/mcp/mcdata.py:1072:1: W191 indentation contains tabs
spock/mcp/nbt.py:106:7: N801 class names should use CapWords convention
(MC_SHORT, 'slot'),
^
class TAG_Byte(_TAG_Numeric):
spock/mcp/mcdata.py:1073:1: W191 indentation contains tabs
(MC_BYTE , 'button'),
^
^
spock/mcp/mcdata.py:1073:13: E203 whitespace before ','
spock/mcp/nbt.py:107:1: W191 indentation contains tabs
(MC_BYTE , 'button'),
"""Represent a single tag storing 1 byte."""
^
spock/mcp/mcdata.py:1074:1: W191 indentation contains tabs
^
(MC_SHORT, 'action'),
^
spock/mcp/nbt.py:108:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1075:1: W191 indentation contains tabs
(MC_BYTE , 'mode'),
id = TAG_BYTE
^
spock/mcp/mcdata.py:1075:13: E203 whitespace before ','
^
(MC_BYTE , 'mode'),
^
spock/mcp/nbt.py:109:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1076:1: W191 indentation contains tabs
fmt = Struct(">b")
(MC_SLOT , 'clicked_item'),
^
^
spock/mcp/mcdata.py:1076:13: E203 whitespace before ','
(MC_SLOT , 'clicked_item'),
spock/mcp/nbt.py:111:1: E302 expected 2 blank lines, found 1
^
class TAG_Short(_TAG_Numeric):
spock/mcp/mcdata.py:1077:1: W191 indentation contains tabs
),
^
^
spock/mcp/mcdata.py:1078:1: W191 indentation contains tabs
spock/mcp/nbt.py:111:7: N801 class names should use CapWords convention
#Confirm Transaction
^
class TAG_Short(_TAG_Numeric):
spock/mcp/mcdata.py:1078:4: E265 block comment should start with '# '
#Confirm Transaction
^
^
spock/mcp/mcdata.py:1079:1: W191 indentation contains tabs
spock/mcp/nbt.py:112:1: W191 indentation contains tabs
0x0F: (
^
"""Represent a single tag storing 1 short."""
spock/mcp/mcdata.py:1080:1: W191 indentation contains tabs
(MC_BYTE , 'window_id'),
^
^
spock/mcp/mcdata.py:1080:13: E203 whitespace before ','
spock/mcp/nbt.py:113:1: W191 indentation contains tabs
(MC_BYTE , 'window_id'),
id = TAG_SHORT
^
spock/mcp/mcdata.py:1081:1: W191 indentation contains tabs
^
(MC_SHORT, 'action'),
^
spock/mcp/nbt.py:114:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1082:1: W191 indentation contains tabs
(MC_BOOL , 'accepted'),
fmt = Struct(">h")
^
spock/mcp/mcdata.py:1082:13: E203 whitespace before ','
^
(MC_BOOL , 'accepted'),
^
spock/mcp/nbt.py:116:1: E302 expected 2 blank lines, found 1
spock/mcp/mcdata.py:1083:1: W191 indentation contains tabs
class TAG_Int(_TAG_Numeric):
),
^
^
spock/mcp/mcdata.py:1084:1: W191 indentation contains tabs
#Creative Inventory Action
spock/mcp/nbt.py:116:7: N801 class names should use CapWords convention
^
spock/mcp/mcdata.py:1084:4: E265 block comment should start with '# '
class TAG_Int(_TAG_Numeric):
#Creative Inventory Action
^
^
spock/mcp/mcdata.py:1085:1: W191 indentation contains tabs
0x10: (
spock/mcp/nbt.py:117:1: W191 indentation contains tabs
^
"""Represent a single tag storing 1 int."""
spock/mcp/mcdata.py:1086:1: W191 indentation contains tabs
(MC_SHORT, 'slot'),
^
^
spock/mcp/mcdata.py:1087:1: W191 indentation contains tabs
spock/mcp/nbt.py:118:1: W191 indentation contains tabs
(MC_SLOT , 'clicked_item'),
^
id = TAG_INT
spock/mcp/mcdata.py:1087:13: E203 whitespace before ','
(MC_SLOT , 'clicked_item'),
^
^
spock/mcp/mcdata.py:1088:1: W191 indentation contains tabs
spock/mcp/nbt.py:119:1: W191 indentation contains tabs
),
fmt = Struct(">i")
^
spock/mcp/mcdata.py:1089:1: W191 indentation contains tabs
^
#Enchant Item
^
spock/mcp/nbt.py:120:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1089:4: E265 block comment should start with '# '
#Enchant Item
"""Struct(">i"), 32-bits integer, big-endian"""
^
spock/mcp/mcdata.py:1090:1: W191 indentation contains tabs
^
0x11: (
^
spock/mcp/nbt.py:122:1: E302 expected 2 blank lines, found 1
spock/mcp/mcdata.py:1091:1: W191 indentation contains tabs
(MC_BYTE, 'window_id'),
class TAG_Long(_TAG_Numeric):
^
spock/mcp/mcdata.py:1092:1: W191 indentation contains tabs
^
(MC_BYTE, 'enchantment'),
^
spock/mcp/nbt.py:122:7: N801 class names should use CapWords convention
spock/mcp/mcdata.py:1093:1: W191 indentation contains tabs
),
class TAG_Long(_TAG_Numeric):
^
spock/mcp/mcdata.py:1094:1: W191 indentation contains tabs
^
#Update Sign
^
spock/mcp/nbt.py:123:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1094:4: E265 block comment should start with '# '
#Update Sign
"""Represent a single tag storing 1 long."""
^
spock/mcp/mcdata.py:1095:1: W191 indentation contains tabs
^
0x12: (
^
spock/mcp/nbt.py:124:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1096:1: W191 indentation contains tabs
(MC_POSITION, 'location'),
id = TAG_LONG
^
spock/mcp/mcdata.py:1097:1: W191 indentation contains tabs
^
(MC_CHAT , 'line_1'),
^
spock/mcp/nbt.py:125:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1097:16: E203 whitespace before ','
(MC_CHAT , 'line_1'),
fmt = Struct(">q")
^
^
spock/mcp/mcdata.py:1098:1: W191 indentation contains tabs
(MC_CHAT , 'line_2'),
spock/mcp/nbt.py:127:1: E302 expected 2 blank lines, found 1
^
class TAG_Float(_TAG_Numeric):
spock/mcp/mcdata.py:1098:16: E203 whitespace before ','
(MC_CHAT , 'line_2'),
^
^
spock/mcp/mcdata.py:1099:1: W191 indentation contains tabs
spock/mcp/nbt.py:127:7: N801 class names should use CapWords convention
(MC_CHAT , 'line_3'),
^
class TAG_Float(_TAG_Numeric):
spock/mcp/mcdata.py:1099:16: E203 whitespace before ','
(MC_CHAT , 'line_3'),
^
^
spock/mcp/mcdata.py:1100:1: W191 indentation contains tabs
spock/mcp/nbt.py:128:1: W191 indentation contains tabs
(MC_CHAT , 'line_4'),
^
"""Represent a single tag storing 1 IEEE-754 floating point number."""
spock/mcp/mcdata.py:1100:16: E203 whitespace before ','
(MC_CHAT , 'line_4'),
^
^
spock/mcp/mcdata.py:1101:1: W191 indentation contains tabs
spock/mcp/nbt.py:129:1: W191 indentation contains tabs
),
^
id = TAG_FLOAT
spock/mcp/mcdata.py:1102:1: W191 indentation contains tabs
#Player Abilities
^
^
spock/mcp/mcdata.py:1102:4: E265 block comment should start with '# '
spock/mcp/nbt.py:130:1: W191 indentation contains tabs
#Player Abilities
fmt = Struct(">f")
^
spock/mcp/mcdata.py:1103:1: W191 indentation contains tabs
^
0x13: (
^
spock/mcp/nbt.py:132:1: E302 expected 2 blank lines, found 1
spock/mcp/mcdata.py:1104:1: W191 indentation contains tabs
(MC_BYTE , 'flags'),
class TAG_Double(_TAG_Numeric):
^
spock/mcp/mcdata.py:1104:13: E203 whitespace before ','
^
(MC_BYTE , 'flags'),
^
spock/mcp/nbt.py:132:7: N801 class names should use CapWords convention
spock/mcp/mcdata.py:1105:1: W191 indentation contains tabs
(MC_FLOAT, 'flying_speed'),
class TAG_Double(_TAG_Numeric):
^
spock/mcp/mcdata.py:1106:1: W191 indentation contains tabs
^
(MC_FLOAT, 'walking_speed'),
^
spock/mcp/nbt.py:133:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1107:1: W191 indentation contains tabs
),
"""Represent a single tag storing 1 IEEE-754 double precision floating point number."""
^
spock/mcp/mcdata.py:1108:1: W191 indentation contains tabs
^
#Tab-Complete
^
spock/mcp/nbt.py:133:80: E501 line too long (88 > 79 characters)
spock/mcp/mcdata.py:1108:4: E265 block comment should start with '# '
#Tab-Complete
"""Represent a single tag storing 1 IEEE-754 double precision floating point number."""
^
spock/mcp/mcdata.py:1109:1: W191 indentation contains tabs
0x14: (
^
^
spock/mcp/mcdata.py:1110:1: W191 indentation contains tabs
(MC_STRING, 'text'),
spock/mcp/nbt.py:134:1: W191 indentation contains tabs
^
spock/mcp/mcdata.py:1111:1: W191 indentation contains tabs
id = TAG_DOUBLE
(MC_BOOL , 'has_position')
^
^
spock/mcp/mcdata.py:1111:14: E203 whitespace before ','
(MC_BOOL , 'has_position')
spock/mcp/nbt.py:135:1: W191 indentation contains tabs
^
spock/mcp/mcdata.py:1112:1: W191 indentation contains tabs
fmt = Struct(">d")
#Extension
^
^
spock/mcp/mcdata.py:1112:5: E265 block comment should start with '# '
#Extension
spock/mcp/nbt.py:137:1: E302 expected 2 blank lines, found 1
^
class TAG_Byte_Array(TAG, MutableSequence):
spock/mcp/mcdata.py:1113:1: W191 indentation contains tabs
#has_position == True
^
^
spock/mcp/mcdata.py:1113:6: E131 continuation line unaligned for hanging indent
spock/mcp/nbt.py:137:7: N801 class names should use CapWords convention
#has_position == True
^
class TAG_Byte_Array(TAG, MutableSequence):
spock/mcp/mcdata.py:1113:6: E265 block comment should start with '# '
#has_position == True
^
^
spock/mcp/mcdata.py:1114:1: W191 indentation contains tabs
spock/mcp/nbt.py:139:1: W191 indentation contains tabs
#MC_POSITION 'block_loc'
^
TAG_Byte_Array, comparable to a collections.UserList with
spock/mcp/mcdata.py:1114:7: E131 continuation line unaligned for hanging indent
#MC_POSITION 'block_loc'
^
^
spock/mcp/mcdata.py:1114:7: E265 block comment should start with '# '
spock/mcp/nbt.py:140:1: W191 indentation contains tabs
#MC_POSITION 'block_loc'
an intrinsic name whose values must be bytes
^
spock/mcp/mcdata.py:1115:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:141:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1116:1: W191 indentation contains tabs
#Client Settings
"""
^
spock/mcp/mcdata.py:1116:4: E265 block comment should start with '# '
^
#Client Settings
^
spock/mcp/nbt.py:142:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1117:1: W191 indentation contains tabs
0x15: (
id = TAG_BYTE_ARRAY
^
spock/mcp/mcdata.py:1118:1: W191 indentation contains tabs
^
(MC_STRING, 'locale'),
^
spock/mcp/nbt.py:143:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1119:1: W191 indentation contains tabs
(MC_BYTE , 'view_distance'),
def __init__(self, name=None, buffer=None):
^
spock/mcp/mcdata.py:1119:14: E203 whitespace before ','
^
(MC_BYTE , 'view_distance'),
^
spock/mcp/nbt.py:143:2: E301 expected 1 blank line, found 0
spock/mcp/mcdata.py:1120:1: W191 indentation contains tabs
(MC_BYTE , 'chat_flags'),
def __init__(self, name=None, buffer=None):
^
spock/mcp/mcdata.py:1120:14: E203 whitespace before ','
^
(MC_BYTE , 'chat_flags'),
^
spock/mcp/nbt.py:144:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1121:1: W191 indentation contains tabs
super(TAG_Byte_Array, self).__init__(name=name)
(MC_BOOL , 'chat_colours'),
^
^
spock/mcp/mcdata.py:1121:14: E203 whitespace before ','
(MC_BOOL , 'chat_colours'),
spock/mcp/nbt.py:145:1: W191 indentation contains tabs
^
if buffer:
spock/mcp/mcdata.py:1122:1: W191 indentation contains tabs
(MC_UBYTE , 'skin_flags'),
^
^
spock/mcp/mcdata.py:1122:14: E203 whitespace before ','
spock/mcp/nbt.py:146:1: W191 indentation contains tabs
(MC_UBYTE , 'skin_flags'),
self._parse_buffer(buffer)
^
spock/mcp/mcdata.py:1123:1: W191 indentation contains tabs
^
),
^
spock/mcp/nbt.py:148:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1124:1: W191 indentation contains tabs
#Client Status
#Parsers and Generators
^
spock/mcp/mcdata.py:1124:4: E265 block comment should start with '# '
^
#Client Status
^
spock/mcp/nbt.py:148:2: E265 block comment should start with '# '
spock/mcp/mcdata.py:1125:1: W191 indentation contains tabs
0x16: (
#Parsers and Generators
^
spock/mcp/mcdata.py:1126:1: W191 indentation contains tabs
^
(MC_VARINT, 'action'),
^
spock/mcp/nbt.py:149:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1127:1: W191 indentation contains tabs
),
def _parse_buffer(self, buffer):
^
spock/mcp/mcdata.py:1128:1: W191 indentation contains tabs
^
#Plugin Message
^
spock/mcp/nbt.py:150:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1128:4: E265 block comment should start with '# '
#Plugin Message
length = TAG_Int(buffer=buffer)
^
spock/mcp/mcdata.py:1129:1: W191 indentation contains tabs
^
0x17: (
^
spock/mcp/nbt.py:151:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1130:1: W191 indentation contains tabs
(MC_STRING, 'channel'),
self.value = bytearray(buffer.read(length.value))
^
spock/mcp/mcdata.py:1131:1: W191 indentation contains tabs
^
#Extension
^
spock/mcp/nbt.py:153:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1131:5: E265 block comment should start with '# '
#Extension
def _render_buffer(self, buffer):
^
^
spock/mcp/mcdata.py:1132:1: W191 indentation contains tabs
#byte string 'data'
spock/mcp/nbt.py:154:1: W191 indentation contains tabs
^
length = TAG_Int(len(self.value))
spock/mcp/mcdata.py:1132:6: E131 continuation line unaligned for hanging indent
#byte string 'data'
^
^
spock/mcp/mcdata.py:1132:6: E265 block comment should start with '# '
spock/mcp/nbt.py:155:1: W191 indentation contains tabs
#byte string 'data'
^
length._render_buffer(buffer)
spock/mcp/mcdata.py:1133:1: W191 indentation contains tabs
),
^
^
spock/mcp/mcdata.py:1134:1: W191 indentation contains tabs
spock/mcp/nbt.py:156:1: W191 indentation contains tabs
#Spectate
^
buffer.write(bytes(self.value))
spock/mcp/mcdata.py:1134:4: E265 block comment should start with '# '
#Spectate
^
^
spock/mcp/mcdata.py:1135:1: W191 indentation contains tabs
spock/mcp/nbt.py:158:1: W191 indentation contains tabs
0x18: (
^
# Mixin methods
spock/mcp/mcdata.py:1136:1: W191 indentation contains tabs
(MC_UUID, 'target_player'),
^
^
spock/mcp/mcdata.py:1137:1: W191 indentation contains tabs
spock/mcp/nbt.py:159:1: W191 indentation contains tabs
),
def __len__(self):
^
spock/mcp/mcdata.py:1138:1: W191 indentation contains tabs
^
#Resource Pack Status
^
spock/mcp/nbt.py:160:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1138:4: E265 block comment should start with '# '
#Resource Pack Status
return len(self.value)
^
spock/mcp/mcdata.py:1139:1: W191 indentation contains tabs
^
0x19: (
^
spock/mcp/nbt.py:162:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1140:1: W191 indentation contains tabs
(MC_STRING, 'hash'),
def __iter__(self):
^
spock/mcp/mcdata.py:1141:1: W191 indentation contains tabs
^
(MC_VARINT, 'result'),
^
spock/mcp/nbt.py:163:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1142:1: W191 indentation contains tabs
),
return iter(self.value)
^
spock/mcp/mcdata.py:1143:1: W191 indentation contains tabs
^
},
^
spock/mcp/nbt.py:165:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1144:1: W191 indentation contains tabs
},
def __contains__(self, item):
^
spock/mcp/mcdata.py:1147:1: E265 block comment should start with '# '
^
#Useful for some lookups
^
spock/mcp/nbt.py:166:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1149:1: W191 indentation contains tabs
(state, direction, packet_id):
return item in self.value
^
spock/mcp/mcdata.py:1150:1: W191 indentation contains tabs
^
packet_names[state][direction][packet_id]
^
spock/mcp/nbt.py:168:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1151:1: W191 indentation contains tabs
for state in packet_names
def __getitem__(self, key):
^
spock/mcp/mcdata.py:1152:1: W191 indentation contains tabs
^
for direction in packet_names[state]
^
spock/mcp/nbt.py:169:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1153:1: W191 indentation contains tabs
for packet_id in packet_names[state][direction]
return self.value[key]
^
spock/mcp/mcdata.py:1156:1: W191 indentation contains tabs
^
(state, direction, packet_id):
^
spock/mcp/nbt.py:171:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1157:1: W191 indentation contains tabs
packet_structs[state][direction][packet_id]
def __setitem__(self, key, value):
^
spock/mcp/mcdata.py:1158:1: W191 indentation contains tabs
^
for state in packet_structs
^
spock/mcp/nbt.py:172:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1159:1: W191 indentation contains tabs
for direction in packet_structs[state]
# TODO: check type of value
^
spock/mcp/mcdata.py:1160:1: W191 indentation contains tabs
^
for packet_id in packet_structs[state][direction]
^
spock/mcp/nbt.py:173:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1166:1: W191 indentation contains tabs
(state, direction, packet_id):
self.value[key] = value
^
spock/mcp/mcdata.py:1167:1: W191 indentation contains tabs
^
state_lookup[state] + ('<', '>')[direction] + packet_names[state][direction][packet_id]
^
spock/mcp/nbt.py:175:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1167:80: E501 line too long (88 > 79 characters)
state_lookup[state] + ('<', '>')[direction] + packet_names[state][direction][packet_id]
def __delitem__(self, key):
^
^
spock/mcp/mcdata.py:1168:1: W191 indentation contains tabs
spock/mcp/nbt.py:176:1: W191 indentation contains tabs
for state in packet_structs
^
del(self.value[key])
spock/mcp/mcdata.py:1169:1: W191 indentation contains tabs
for direction in packet_structs[state]
^
^
spock/mcp/mcdata.py:1170:1: W191 indentation contains tabs
spock/mcp/nbt.py:178:1: W191 indentation contains tabs
for packet_id in packet_structs[state][direction]
^
def insert(self, key, value):
spock/mcp/mcdata.py:1174:1: E265 block comment should start with '# '
#Pack the protocol more efficiently
^
^
spock/mcp/mcdata.py:1175:58: E231 missing whitespace after ','
spock/mcp/nbt.py:179:1: W191 indentation contains tabs
packet_names = tuple(tuple(packet_names[i][j] for j in (0,1)) for i in (0,1,2,3))
# TODO: check type of value, or is this done by self.value already?
^
^
spock/mcp/mcdata.py:1175:74: E231 missing whitespace after ','
packet_names = tuple(tuple(packet_names[i][j] for j in (0,1)) for i in (0,1,2,3))
spock/mcp/nbt.py:180:1: W191 indentation contains tabs
^
self.value.insert(key, value)
spock/mcp/mcdata.py:1175:76: E231 missing whitespace after ','
packet_names = tuple(tuple(packet_names[i][j] for j in (0,1)) for i in (0,1,2,3))
^
^
spock/mcp/nbt.py:182:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1175:78: E231 missing whitespace after ','
#Printing and Formatting of tree
packet_names = tuple(tuple(packet_names[i][j] for j in (0,1)) for i in (0,1,2,3))
^
^
spock/mcp/mcdata.py:1175:80: E501 line too long (81 > 79 characters)
spock/mcp/nbt.py:182:2: E265 block comment should start with '# '
packet_names = tuple(tuple(packet_names[i][j] for j in (0,1)) for i in (0,1,2,3))
#Printing and Formatting of tree
^
^
spock/mcp/mcdata.py:1176:62: E231 missing whitespace after ','
packet_structs = tuple(tuple(packet_structs[i][j] for j in (0,1)) for i in (0,1,2,3))
spock/mcp/nbt.py:183:1: W191 indentation contains tabs
def valuestr(self):
^
spock/mcp/mcdata.py:1176:78: E231 missing whitespace after ','
^
packet_structs = tuple(tuple(packet_structs[i][j] for j in (0,1)) for i in (0,1,2,3))
spock/mcp/nbt.py:184:1: W191 indentation contains tabs
^
return "[%i byte(s)]" % len(self.value)
spock/mcp/mcdata.py:1176:80: E231 missing whitespace after ','
packet_structs = tuple(tuple(packet_structs[i][j] for j in (0,1)) for i in (0,1,2,3))
^
^
spock/mcp/nbt.py:186:1: W191 indentation contains tabs
spock/mcp/mcdata.py:1176:80: E501 line too long (85 > 79 characters)
packet_structs = tuple(tuple(packet_structs[i][j] for j in (0,1)) for i in (0,1,2,3))
def __unicode__(self):
^
^
spock/mcp/mcdata.py:1176:82: E231 missing whitespace after ','
spock/mcp/nbt.py:187:1: W191 indentation contains tabs
packet_structs = tuple(tuple(packet_structs[i][j] for j in (0,1)) for i in (0,1,2,3))
return '['+",".join([unicode(x) for x in self.value])+']'
^
^
spock/mcp/nbt.py:188:1: W191 indentation contains tabs
def __str__(self):
^
spock/mcp/nbt.py:188:2: E301 expected 1 blank line, found 0
def __str__(self):
^
spock/mcp/nbt.py:189:1: W191 indentation contains tabs
return '['+",".join([str(x) for x in self.value])+']'
^
spock/mcp/nbt.py:191:1: E302 expected 2 blank lines, found 1
class TAG_Int_Array(TAG, MutableSequence):
^
spock/mcp/nbt.py:191:7: N801 class names should use CapWords convention
class TAG_Int_Array(TAG, MutableSequence):
^
spock/mcp/nbt.py:193:1: W191 indentation contains tabs
TAG_Int_Array, comparable to a collections.UserList with
^
spock/mcp/nbt.py:194:1: W191 indentation contains tabs
an intrinsic name whose values must be integers
^
spock/mcp/nbt.py:195:1: W191 indentation contains tabs
"""
^
spock/mcp/nbt.py:196:1: W191 indentation contains tabs
id = TAG_INT_ARRAY
^
spock/mcp/nbt.py:197:1: W191 indentation contains tabs
def __init__(self, name=None, buffer=None):
^
spock/mcp/nbt.py:197:2: E301 expected 1 blank line, found 0
def __init__(self, name=None, buffer=None):
^
spock/mcp/nbt.py:198:1: W191 indentation contains tabs
super(TAG_Int_Array, self).__init__(name=name)
^
spock/mcp/nbt.py:199:1: W191 indentation contains tabs
if buffer:
^
spock/mcp/nbt.py:200:1: W191 indentation contains tabs
self._parse_buffer(buffer)
^
spock/mcp/nbt.py:202:1: W191 indentation contains tabs
def update_fmt(self, length):
^
spock/mcp/nbt.py:203:1: W191 indentation contains tabs
""" Adjust struct format description to length given """
^
spock/mcp/nbt.py:204:1: W191 indentation contains tabs
self.fmt = Struct(">" + str(length) + "i")
^
spock/mcp/nbt.py:206:1: W191 indentation contains tabs
#Parsers and Generators
^
spock/mcp/nbt.py:206:2: E265 block comment should start with '# '
#Parsers and Generators
^
spock/mcp/nbt.py:207:1: W191 indentation contains tabs
def _parse_buffer(self, buffer):
^
spock/mcp/nbt.py:208:1: W191 indentation contains tabs
length = TAG_Int(buffer=buffer).value
^
spock/mcp/nbt.py:209:1: W191 indentation contains tabs
self.update_fmt(length)
^
spock/mcp/nbt.py:210:1: W191 indentation contains tabs
self.value = list(self.fmt.unpack(buffer.read(self.fmt.size)))
^
spock/mcp/nbt.py:212:1: W191 indentation contains tabs
def _render_buffer(self, buffer):
^
spock/mcp/nbt.py:213:1: W191 indentation contains tabs
length = len(self.value)
^
spock/mcp/nbt.py:214:1: W191 indentation contains tabs
self.update_fmt(length)
^
spock/mcp/nbt.py:215:1: W191 indentation contains tabs
TAG_Int(length)._render_buffer(buffer)
^
spock/mcp/nbt.py:216:1: W191 indentation contains tabs
buffer.write(self.fmt.pack(*self.value))
^
spock/mcp/nbt.py:218:1: W191 indentation contains tabs
# Mixin methods
^
spock/mcp/nbt.py:219:1: W191 indentation contains tabs
def __len__(self):
^
spock/mcp/nbt.py:220:1: W191 indentation contains tabs
return len(self.value)
^
spock/mcp/nbt.py:222:1: W191 indentation contains tabs
def __iter__(self):
^
spock/mcp/nbt.py:223:1: W191 indentation contains tabs
return iter(self.value)
^
spock/mcp/nbt.py:225:1: W191 indentation contains tabs
def __contains__(self, item):
^
spock/mcp/nbt.py:226:1: W191 indentation contains tabs
return item in self.value
^
spock/mcp/nbt.py:228:1: W191 indentation contains tabs
def __getitem__(self, key):
^
spock/mcp/nbt.py:229:1: W191 indentation contains tabs
return self.value[key]
^
spock/mcp/nbt.py:231:1: W191 indentation contains tabs
def __setitem__(self, key, value):
^
spock/mcp/nbt.py:232:1: W191 indentation contains tabs
self.value[key] = value
^
spock/mcp/nbt.py:234:1: W191 indentation contains tabs
def __delitem__(self, key):
^
spock/mcp/nbt.py:235:1: W191 indentation contains tabs
del(self.value[key])
^
spock/mcp/nbt.py:237:1: W191 indentation contains tabs
def insert(self, key, value):
^
spock/mcp/nbt.py:238:1: W191 indentation contains tabs
self.value.insert(key, value)
^
spock/mcp/nbt.py:240:1: W191 indentation contains tabs
#Printing and Formatting of tree
^
spock/mcp/nbt.py:240:2: E265 block comment should start with '# '
#Printing and Formatting of tree
^
spock/mcp/nbt.py:241:1: W191 indentation contains tabs
def valuestr(self):
^
spock/mcp/nbt.py:242:1: W191 indentation contains tabs
return "[%i int(s)]" % len(self.value)
^
spock/mcp/nbt.py:245:7: N801 class names should use CapWords convention
class TAG_String(TAG, Sequence):
^
spock/mcp/nbt.py:247:1: W191 indentation contains tabs
TAG_String, comparable to a collections.UserString with an
^
spock/mcp/nbt.py:248:1: W191 indentation contains tabs
intrinsic name
^
spock/mcp/nbt.py:249:1: W191 indentation contains tabs
"""
^
spock/mcp/nbt.py:250:1: W191 indentation contains tabs
id = TAG_STRING
^
spock/mcp/nbt.py:251:1: W191 indentation contains tabs
def __init__(self, value=None, name=None, buffer=None):
^
spock/mcp/nbt.py:251:2: E301 expected 1 blank line, found 0
def __init__(self, value=None, name=None, buffer=None):
^
spock/mcp/nbt.py:252:1: W191 indentation contains tabs
super(TAG_String, self).__init__(value, name)
^
spock/mcp/nbt.py:253:1: W191 indentation contains tabs
if buffer:
^
spock/mcp/nbt.py:254:1: W191 indentation contains tabs
self._parse_buffer(buffer)
^
spock/mcp/nbt.py:256:1: W191 indentation contains tabs
#Parsers and Generators
^
spock/mcp/nbt.py:256:2: E265 block comment should start with '# '
#Parsers and Generators
^
spock/mcp/nbt.py:257:1: W191 indentation contains tabs
def _parse_buffer(self, buffer):
^
spock/mcp/nbt.py:258:1: W191 indentation contains tabs
length = TAG_Short(buffer=buffer)
^
spock/mcp/nbt.py:259:1: W191 indentation contains tabs
read = buffer.read(length.value)
^
spock/mcp/nbt.py:260:1: W191 indentation contains tabs
if len(read) != length.value:
^
spock/mcp/nbt.py:261:1: W191 indentation contains tabs
raise StructError()
^
spock/mcp/nbt.py:262:1: W191 indentation contains tabs
self.value = read.decode("utf-8")
^
spock/mcp/nbt.py:264:1: W191 indentation contains tabs
def _render_buffer(self, buffer):
^
spock/mcp/nbt.py:265:1: W191 indentation contains tabs
save_val = self.value.encode("utf-8")
^
spock/mcp/nbt.py:266:1: W191 indentation contains tabs
length = TAG_Short(len(save_val))
^
spock/mcp/nbt.py:267:1: W191 indentation contains tabs
length._render_buffer(buffer)
^
spock/mcp/nbt.py:268:1: W191 indentation contains tabs
buffer.write(save_val)
^
spock/mcp/nbt.py:270:1: W191 indentation contains tabs
# Mixin methods
^
spock/mcp/nbt.py:271:1: W191 indentation contains tabs
def __len__(self):
^
spock/mcp/nbt.py:272:1: W191 indentation contains tabs
return len(self.value)
^
spock/mcp/nbt.py:274:1: W191 indentation contains tabs
def __iter__(self):
^
spock/mcp/nbt.py:275:1: W191 indentation contains tabs
return iter(self.value)
^
spock/mcp/nbt.py:277:1: W191 indentation contains tabs
def __contains__(self, item):
^
spock/mcp/nbt.py:278:1: W191 indentation contains tabs
return item in self.value
^
spock/mcp/nbt.py:280:1: W191 indentation contains tabs
def __getitem__(self, key):
^
spock/mcp/nbt.py:281:1: W191 indentation contains tabs
return self.value[key]
^
spock/mcp/nbt.py:283:1: W191 indentation contains tabs
#Printing and Formatting of tree
^
spock/mcp/nbt.py:283:2: E265 block comment should start with '# '
#Printing and Formatting of tree
^
spock/mcp/nbt.py:284:1: W191 indentation contains tabs
def __repr__(self):
^
spock/mcp/nbt.py:285:1: W191 indentation contains tabs
return self.value
^
spock/mcp/nbt.py:287:1: E265 block comment should start with '# '
#== Collection Tags ==#
^
spock/mcp/nbt.py:288:1: E302 expected 2 blank lines, found 1
class TAG_List(TAG, MutableSequence):
^
spock/mcp/nbt.py:288:7: N801 class names should use CapWords convention
class TAG_List(TAG, MutableSequence):
^
spock/mcp/nbt.py:290:1: W191 indentation contains tabs
TAG_List, comparable to a collections.UserList with an intrinsic name
^
spock/mcp/nbt.py:291:1: W191 indentation contains tabs
"""
^
spock/mcp/nbt.py:292:1: W191 indentation contains tabs
id = TAG_LIST
^
spock/mcp/nbt.py:293:1: W191 indentation contains tabs
def __init__(self, type=None, value=None, name=None, buffer=None):
^
spock/mcp/nbt.py:293:2: E301 expected 1 blank line, found 0
def __init__(self, type=None, value=None, name=None, buffer=None):
^
spock/mcp/nbt.py:294:1: W191 indentation contains tabs
super(TAG_List, self).__init__(value, name)
^
spock/mcp/nbt.py:295:1: W191 indentation contains tabs
if type:
^
spock/mcp/nbt.py:296:1: W191 indentation contains tabs
self.tagID = type.id
^
spock/mcp/nbt.py:297:1: W191 indentation contains tabs
else:
^
spock/mcp/nbt.py:298:1: W191 indentation contains tabs
self.tagID = None
^
spock/mcp/nbt.py:299:1: W191 indentation contains tabs
self.tags = []
^
spock/mcp/nbt.py:300:1: W191 indentation contains tabs
if buffer:
^
spock/mcp/nbt.py:301:1: W191 indentation contains tabs
self._parse_buffer(buffer)
^
spock/mcp/nbt.py:302:1: W191 indentation contains tabs
if self.tagID == None:
^
spock/mcp/nbt.py:302:17: E711 comparison to None should be 'if cond is None:'
if self.tagID == None:
^
spock/mcp/nbt.py:303:1: W191 indentation contains tabs
raise ValueError("No type specified for list: %s" % (name))
^
spock/mcp/nbt.py:305:1: W191 indentation contains tabs
#Parsers and Generators
^
spock/mcp/nbt.py:305:2: E265 block comment should start with '# '
#Parsers and Generators
^
spock/mcp/nbt.py:306:1: W191 indentation contains tabs
def _parse_buffer(self, buffer):
^
spock/mcp/nbt.py:307:1: W191 indentation contains tabs
self.tagID = TAG_Byte(buffer=buffer).value
^
spock/mcp/nbt.py:308:1: W191 indentation contains tabs
self.tags = []
^
spock/mcp/nbt.py:309:1: W191 indentation contains tabs
length = TAG_Int(buffer=buffer)
^
spock/mcp/nbt.py:310:1: W191 indentation contains tabs
for x in range(length.value):
^
spock/mcp/nbt.py:311:1: W191 indentation contains tabs
self.tags.append(TAGLIST[self.tagID](buffer=buffer))
^
spock/mcp/nbt.py:313:1: W191 indentation contains tabs
def _render_buffer(self, buffer):
^
spock/mcp/nbt.py:314:1: W191 indentation contains tabs
TAG_Byte(self.tagID)._render_buffer(buffer)
^
spock/mcp/nbt.py:315:1: W191 indentation contains tabs
length = TAG_Int(len(self.tags))
^
spock/mcp/nbt.py:316:1: W191 indentation contains tabs
length._render_buffer(buffer)
^
spock/mcp/nbt.py:317:1: W191 indentation contains tabs
for i, tag in enumerate(self.tags):
^
spock/mcp/nbt.py:318:1: W191 indentation contains tabs
if tag.id != self.tagID:
^
spock/mcp/nbt.py:319:1: W191 indentation contains tabs
raise ValueError("List element %d(%s) has type %d != container type %d" %
^
spock/mcp/nbt.py:320:1: W191 indentation contains tabs
(i, tag, tag.id, self.tagID))
^
spock/mcp/nbt.py:320:7: E101 indentation contains mixed spaces and tabs
(i, tag, tag.id, self.tagID))
^
spock/mcp/nbt.py:320:8: E128 continuation line under-indented for visual indent
(i, tag, tag.id, self.tagID))
^
spock/mcp/nbt.py:321:1: W191 indentation contains tabs
tag._render_buffer(buffer)
^
spock/mcp/nbt.py:323:1: W191 indentation contains tabs
# Mixin methods
^
spock/mcp/nbt.py:324:1: W191 indentation contains tabs
def __len__(self):
^
spock/mcp/nbt.py:325:1: W191 indentation contains tabs
return len(self.tags)
^
spock/mcp/nbt.py:327:1: W191 indentation contains tabs
def __iter__(self):
^
spock/mcp/nbt.py:328:1: W191 indentation contains tabs
return iter(self.tags)
^
spock/mcp/nbt.py:330:1: W191 indentation contains tabs
def __contains__(self, item):
^
spock/mcp/nbt.py:331:1: W191 indentation contains tabs
return item in self.tags
^
spock/mcp/nbt.py:333:1: W191 indentation contains tabs
def __getitem__(self, key):
^
spock/mcp/nbt.py:334:1: W191 indentation contains tabs
return self.tags[key]
^
spock/mcp/nbt.py:336:1: W191 indentation contains tabs
def __setitem__(self, key, value):
^
spock/mcp/nbt.py:337:1: W191 indentation contains tabs
self.tags[key] = value
^
spock/mcp/nbt.py:339:1: W191 indentation contains tabs
def __delitem__(self, key):
^
spock/mcp/nbt.py:340:1: W191 indentation contains tabs
del(self.tags[key])
^
spock/mcp/nbt.py:342:1: W191 indentation contains tabs
def insert(self, key, value):
^
spock/mcp/nbt.py:343:1: W191 indentation contains tabs
self.tags.insert(key, value)
^
spock/mcp/nbt.py:345:1: W191 indentation contains tabs
#Printing and Formatting of tree
^
spock/mcp/nbt.py:345:2: E265 block comment should start with '# '
#Printing and Formatting of tree
^
spock/mcp/nbt.py:346:1: W191 indentation contains tabs
def __repr__(self):
^
spock/mcp/nbt.py:347:1: W191 indentation contains tabs
return "%i entries of type %s" % (len(self.tags), TAGLIST[self.tagID].__name__)
^
spock/mcp/nbt.py:347:80: E501 line too long (81 > 79 characters)
return "%i entries of type %s" % (len(self.tags), TAGLIST[self.tagID].__name__)
^
spock/mcp/nbt.py:349:1: W191 indentation contains tabs
#Printing and Formatting of tree
^
spock/mcp/nbt.py:349:2: E265 block comment should start with '# '
#Printing and Formatting of tree
^
spock/mcp/nbt.py:350:1: W191 indentation contains tabs
def valuestr(self):
^
spock/mcp/nbt.py:351:1: W191 indentation contains tabs
return "[%i %s(s)]" % (len(self.tags), TAGLIST[self.tagID].__name__)
^
spock/mcp/nbt.py:352:1: W191 indentation contains tabs
def __unicode__(self):
^
spock/mcp/nbt.py:352:2: E301 expected 1 blank line, found 0
def __unicode__(self):
^
spock/mcp/nbt.py:353:1: W191 indentation contains tabs
return "["+", ".join([tag.tag_info() for tag in self.tags])+"]"
^
spock/mcp/nbt.py:354:1: W191 indentation contains tabs
def __str__(self):
^
spock/mcp/nbt.py:354:2: E301 expected 1 blank line, found 0
def __str__(self):
^
spock/mcp/nbt.py:355:1: W191 indentation contains tabs
return "["+", ".join([tag.tag_info() for tag in self.tags])+"]"
^
spock/mcp/nbt.py:357:1: W191 indentation contains tabs
def pretty_tree(self, indent=0):
^
spock/mcp/nbt.py:358:1: W191 indentation contains tabs
output = [super(TAG_List, self).pretty_tree(indent)]
^
spock/mcp/nbt.py:359:1: W191 indentation contains tabs
if len(self.tags):
^
spock/mcp/nbt.py:360:1: W191 indentation contains tabs
output.append(("\t"*indent) + "{")
^
spock/mcp/nbt.py:361:1: W191 indentation contains tabs
output.extend([tag.pretty_tree(indent + 1) for tag in self.tags])
^
spock/mcp/nbt.py:362:1: W191 indentation contains tabs
output.append(("\t"*indent) + "}")
^
spock/mcp/nbt.py:363:1: W191 indentation contains tabs
return '\n'.join(output)
^
spock/mcp/nbt.py:365:1: E302 expected 2 blank lines, found 1
class TAG_Compound(TAG, MutableMapping):
^
spock/mcp/nbt.py:365:7: N801 class names should use CapWords convention
class TAG_Compound(TAG, MutableMapping):
^
spock/mcp/nbt.py:367:1: W191 indentation contains tabs
TAG_Compound, comparable to a collections.OrderedDict with an
^
spock/mcp/nbt.py:368:1: W191 indentation contains tabs
intrinsic name
^
spock/mcp/nbt.py:369:1: W191 indentation contains tabs
"""
^
spock/mcp/nbt.py:370:1: W191 indentation contains tabs
id = TAG_COMPOUND
^
spock/mcp/nbt.py:371:1: W191 indentation contains tabs
def __init__(self, buffer=None):
^
spock/mcp/nbt.py:371:2: E301 expected 1 blank line, found 0
def __init__(self, buffer=None):
^
spock/mcp/nbt.py:372:1: W191 indentation contains tabs
super(TAG_Compound, self).__init__()
^
spock/mcp/nbt.py:373:1: W191 indentation contains tabs
self.tags = []
^
spock/mcp/nbt.py:374:1: W191 indentation contains tabs
self.name = ""
^
spock/mcp/nbt.py:375:1: W191 indentation contains tabs
if buffer:
^
spock/mcp/nbt.py:376:1: W191 indentation contains tabs
self._parse_buffer(buffer)
^
spock/mcp/nbt.py:378:1: W191 indentation contains tabs
#Parsers and Generators
^
spock/mcp/nbt.py:378:2: E265 block comment should start with '# '
#Parsers and Generators
^
spock/mcp/nbt.py:379:1: W191 indentation contains tabs
def _parse_buffer(self, buffer):
^
spock/mcp/nbt.py:380:1: W191 indentation contains tabs
while True:
^
spock/mcp/nbt.py:381:1: W191 indentation contains tabs
type = TAG_Byte(buffer=buffer)
^
spock/mcp/nbt.py:382:1: W191 indentation contains tabs
if type.value == TAG_END:
^
spock/mcp/nbt.py:383:1: W191 indentation contains tabs
#print("found tag_end")
^
spock/mcp/nbt.py:383:5: E265 block comment should start with '# '
#print("found tag_end")
^
spock/mcp/nbt.py:384:1: W191 indentation contains tabs
break
^
spock/mcp/nbt.py:385:1: W191 indentation contains tabs
else:
^
spock/mcp/nbt.py:386:1: W191 indentation contains tabs
name = TAG_String(buffer=buffer).value
^
spock/mcp/nbt.py:387:1: W191 indentation contains tabs
try:
^
spock/mcp/nbt.py:388:1: W191 indentation contains tabs
tag = TAGLIST[type.value](buffer=buffer)
^
spock/mcp/nbt.py:389:1: W191 indentation contains tabs
tag.name = name
^
spock/mcp/nbt.py:390:1: W191 indentation contains tabs
self.tags.append(tag)
^
spock/mcp/nbt.py:391:1: W191 indentation contains tabs
except KeyError:
^
spock/mcp/nbt.py:392:1: W191 indentation contains tabs
raise ValueError("Unrecognised tag type")
^
spock/mcp/nbt.py:394:1: W191 indentation contains tabs
def _render_buffer(self, buffer):
^
spock/mcp/nbt.py:395:1: W191 indentation contains tabs
for tag in self.tags:
^
spock/mcp/nbt.py:396:1: W191 indentation contains tabs
TAG_Byte(tag.id)._render_buffer(buffer)
^
spock/mcp/nbt.py:397:1: W191 indentation contains tabs
TAG_String(tag.name)._render_buffer(buffer)
^
spock/mcp/nbt.py:398:1: W191 indentation contains tabs
tag._render_buffer(buffer)
^
spock/mcp/nbt.py:399:1: W191 indentation contains tabs
buffer.write(b'\x00') #write TAG_END
^
spock/mcp/nbt.py:399:24: E261 at least two spaces before inline comment
buffer.write(b'\x00') #write TAG_END
^
spock/mcp/nbt.py:399:25: E262 inline comment should start with '# '
buffer.write(b'\x00') #write TAG_END
^
spock/mcp/nbt.py:401:1: W191 indentation contains tabs
# Mixin methods
^
spock/mcp/nbt.py:402:1: W191 indentation contains tabs
def __len__(self):
^
spock/mcp/nbt.py:403:1: W191 indentation contains tabs
return len(self.tags)
^
spock/mcp/nbt.py:405:1: W191 indentation contains tabs
def __iter__(self):
^
spock/mcp/nbt.py:406:1: W191 indentation contains tabs
for key in self.tags:
^
spock/mcp/nbt.py:407:1: W191 indentation contains tabs
yield key.name
^
spock/mcp/nbt.py:409:1: W191 indentation contains tabs
def __contains__(self, key):
^
spock/mcp/nbt.py:410:1: W191 indentation contains tabs
if isinstance(key, int):
^
spock/mcp/nbt.py:411:1: W191 indentation contains tabs
return key <= len(self.tags)
^
spock/mcp/nbt.py:412:1: W191 indentation contains tabs
elif isinstance(key, basestring):
^
spock/mcp/nbt.py:413:1: W191 indentation contains tabs
for tag in self.tags:
^
spock/mcp/nbt.py:414:1: W191 indentation contains tabs
if tag.name == key:
^
spock/mcp/nbt.py:415:1: W191 indentation contains tabs
return True
^
spock/mcp/nbt.py:416:1: W191 indentation contains tabs
return False
^
spock/mcp/nbt.py:417:1: W191 indentation contains tabs
elif isinstance(key, TAG):
^
spock/mcp/nbt.py:418:1: W191 indentation contains tabs
return key in self.tags
^
spock/mcp/nbt.py:419:1: W191 indentation contains tabs
return False
^
spock/mcp/nbt.py:421:1: W191 indentation contains tabs
def __getitem__(self, key):
^
spock/mcp/nbt.py:422:1: W191 indentation contains tabs
if isinstance(key, int):
^
spock/mcp/nbt.py:423:1: W191 indentation contains tabs
return self.tags[key]
^
spock/mcp/nbt.py:424:1: W191 indentation contains tabs
elif isinstance(key, basestring):
^
spock/mcp/nbt.py:425:1: W191 indentation contains tabs
for tag in self.tags:
^
spock/mcp/nbt.py:426:1: W191 indentation contains tabs
if tag.name == key:
^
spock/mcp/nbt.py:427:1: W191 indentation contains tabs
return tag
^
spock/mcp/nbt.py:428:1: W191 indentation contains tabs
else:
^
spock/mcp/nbt.py:429:1: W191 indentation contains tabs
raise KeyError("Tag %s does not exist" % key)
^
spock/mcp/nbt.py:430:1: W191 indentation contains tabs
else:
^
spock/mcp/nbt.py:431:1: W191 indentation contains tabs
raise TypeError("key needs to be either name of tag, or index of tag, not a %s" % type(key).__name__)
^
spock/mcp/nbt.py:431:80: E501 line too long (104 > 79 characters)
raise TypeError("key needs to be either name of tag, or index of tag, not a %s" % type(key).__name__)
^
spock/mcp/nbt.py:433:1: W191 indentation contains tabs
def __setitem__(self, key, value):
^
spock/mcp/nbt.py:434:1: W191 indentation contains tabs
assert isinstance(value, TAG), "value must be an nbt.TAG"
^
spock/mcp/nbt.py:435:1: W191 indentation contains tabs
if isinstance(key, int):
^
spock/mcp/nbt.py:436:1: W191 indentation contains tabs
# Just try it. The proper error will be raised if it doesn't work.
^
spock/mcp/nbt.py:437:1: W191 indentation contains tabs
self.tags[key] = value
^
spock/mcp/nbt.py:438:1: W191 indentation contains tabs
elif isinstance(key, basestring):
^
spock/mcp/nbt.py:439:1: W191 indentation contains tabs
value.name = key
^
spock/mcp/nbt.py:440:1: W191 indentation contains tabs
for i, tag in enumerate(self.tags):
^
spock/mcp/nbt.py:441:1: W191 indentation contains tabs
if tag.name == key:
^
spock/mcp/nbt.py:442:1: W191 indentation contains tabs
self.tags[i] = value
^
spock/mcp/nbt.py:443:1: W191 indentation contains tabs
return
^
spock/mcp/nbt.py:444:1: W191 indentation contains tabs
self.tags.append(value)
^
spock/mcp/nbt.py:446:1: W191 indentation contains tabs
def __delitem__(self, key):
^
spock/mcp/nbt.py:447:1: W191 indentation contains tabs
if isinstance(key, int):
^
spock/mcp/nbt.py:448:1: W191 indentation contains tabs
del(self.tags[key])
^
spock/mcp/nbt.py:449:1: W191 indentation contains tabs
elif isinstance(key, basestring):
^
spock/mcp/nbt.py:450:1: W191 indentation contains tabs
self.tags.remove(self.__getitem__(key))
^
spock/mcp/nbt.py:451:1: W191 indentation contains tabs
else:
^
spock/mcp/nbt.py:452:1: W191 indentation contains tabs
raise ValueError("key needs to be either name of tag, or index of tag")
^
spock/mcp/nbt.py:454:1: W191 indentation contains tabs
def keys(self):
^
spock/mcp/nbt.py:455:1: W191 indentation contains tabs
return [tag.name for tag in self.tags]
^
spock/mcp/nbt.py:457:1: W191 indentation contains tabs
def iteritems(self):
^
spock/mcp/nbt.py:458:1: W191 indentation contains tabs
for tag in self.tags:
^
spock/mcp/nbt.py:459:1: W191 indentation contains tabs
yield (tag.name, tag)
^
spock/mcp/nbt.py:461:1: W191 indentation contains tabs
#Printing and Formatting of tree
^
spock/mcp/nbt.py:461:2: E265 block comment should start with '# '
#Printing and Formatting of tree
^
spock/mcp/nbt.py:462:1: W191 indentation contains tabs
def __unicode__(self):
^
spock/mcp/nbt.py:463:1: W191 indentation contains tabs
return "{"+", ".join([tag.tag_info() for tag in self.tags])+"}"
^
spock/mcp/nbt.py:464:1: W191 indentation contains tabs
def __str__(self):
^
spock/mcp/nbt.py:464:2: E301 expected 1 blank line, found 0
def __str__(self):
^
spock/mcp/nbt.py:465:1: W191 indentation contains tabs
return "{"+", ".join([tag.tag_info() for tag in self.tags])+"}"
^
spock/mcp/nbt.py:467:1: W191 indentation contains tabs
def valuestr(self):
^
spock/mcp/nbt.py:468:1: W191 indentation contains tabs
return '{%i Entries}' % len(self.tags)
^
spock/mcp/nbt.py:470:1: W191 indentation contains tabs
def pretty_tree(self, indent=0):
^
spock/mcp/nbt.py:471:1: W191 indentation contains tabs
output = [super(TAG_Compound, self).pretty_tree(indent)]
^
spock/mcp/nbt.py:472:1: W191 indentation contains tabs
if len(self.tags):
^
spock/mcp/nbt.py:473:1: W191 indentation contains tabs
output.append(("\t"*indent) + "{")
^
spock/mcp/nbt.py:474:1: W191 indentation contains tabs
output.extend([tag.pretty_tree(indent + 1) for tag in self.tags])
^
spock/mcp/nbt.py:475:1: W191 indentation contains tabs
output.append(("\t"*indent) + "}")
^
spock/mcp/nbt.py:476:1: W191 indentation contains tabs
return '\n'.join(output)
^
spock/mcp/nbt.py:479:39: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:59: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:78: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:80: E501 line too long (278 > 79 characters)
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:96: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:116: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:138: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:165: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:192: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:213: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:236: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/nbt.py:479:264: E231 missing whitespace after ':'
TAGLIST = {TAG_END: _TAG_End, TAG_BYTE:TAG_Byte, TAG_SHORT:TAG_Short, TAG_INT:TAG_Int, TAG_LONG:TAG_Long, TAG_FLOAT:TAG_Float, TAG_DOUBLE:TAG_Double, TAG_BYTE_ARRAY:TAG_Byte_Array, TAG_STRING:TAG_String, TAG_LIST:TAG_List, TAG_COMPOUND:TAG_Compound, TAG_INT_ARRAY:TAG_Int_Array}
^
spock/mcp/mcpacket_extensions.py:1:1: F401 'struct' imported but unused
import struct
^
spock/mcp/mcpacket_extensions.py:2:1: F401 'zlib' imported but unused
import zlib
^
spock/mcp/mcpacket_extensions.py:3:1: I201 Missing newline before sections or imports.
from spock.mcp import mcdata
^
spock/mcp/mcpacket_extensions.py:4:1: I100 Imports statements are in the wrong order. from spock.mcp should be before from spock.mcp
from spock.mcp import datautils
^
spock/mcp/mcpacket_extensions.py:6:1: I100 Imports statements are in the wrong order. from spock should be before from spock.mcp
from spock import utils
^
spock/mcp/mcpacket_extensions.py:7:1: F401 'MC_FP_BYTE' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:7:1: F401 'MC_FP_INT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:7:1: F401 'MC_LONG' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:7:1: F401 'MC_META' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:7:1: F401 'MC_UINT' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:7:1: F401 'MC_ULONG' imported but unused
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:7:1: I101 Imported names are in the wrong order. Should be MC_BOOL, MC_BYTE, MC_CHAT, MC_DOUBLE, MC_FLOAT, MC_FP_BYTE, MC_FP_INT, MC_INT, MC_LONG, MC_META, MC_POSITION, MC_SHORT, MC_SLOT, MC_STRING, MC_UBYTE, MC_UINT, MC_ULONG, MC_USHORT, MC_UUID, MC_VARINT, MC_VARLONG
from spock.mcp.mcdata import (
^
spock/mcp/mcpacket_extensions.py:8:1: W191 indentation contains tabs
MC_BOOL, MC_UBYTE, MC_BYTE, MC_USHORT, MC_SHORT, MC_UINT, MC_INT, MC_ULONG,
^
spock/mcp/mcpacket_extensions.py:9:1: W191 indentation contains tabs
MC_LONG, MC_FLOAT, MC_DOUBLE, MC_VARINT, MC_VARLONG, MC_FP_INT, MC_FP_BYTE,
^
spock/mcp/mcpacket_extensions.py:10:1: W191 indentation contains tabs
MC_UUID, MC_POSITION, MC_STRING, MC_CHAT, MC_SLOT, MC_META
^
spock/mcp/mcpacket_extensions.py:15:1: E302 expected 2 blank lines, found 0
def extension(state, direction, packet_id):
^
spock/mcp/mcpacket_extensions.py:16:1: W191 indentation contains tabs
def inner(cl):
^
spock/mcp/mcpacket_extensions.py:17:1: W191 indentation contains tabs
hashed_extensions[(state, direction, packet_id)] = cl
^
spock/mcp/mcpacket_extensions.py:18:1: W191 indentation contains tabs
extensions[state][direction][packet_id] = cl
^
spock/mcp/mcpacket_extensions.py:19:1: W191 indentation contains tabs
return cl
^
spock/mcp/mcpacket_extensions.py:20:1: W191 indentation contains tabs
return inner
^
spock/mcp/mcpacket_extensions.py:22:1: E265 block comment should start with '# '
#Login SERVER_TO_CLIENT 0x01 Encryption Request
^
spock/mcp/mcpacket_extensions.py:23:1: E302 expected 2 blank lines, found 1
@extension(mcdata.LOGIN_STATE, mcdata.SERVER_TO_CLIENT, 0x01)
^
spock/mcp/mcpacket_extensions.py:25:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:26:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:27:1: W191 indentation contains tabs
length = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:28:1: W191 indentation contains tabs
packet.data['public_key'] = bbuff.recv(length)
^
spock/mcp/mcpacket_extensions.py:29:1: W191 indentation contains tabs
length = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:30:1: W191 indentation contains tabs
packet.data['verify_token'] = bbuff.recv(length)
^
spock/mcp/mcpacket_extensions.py:31:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:33:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:34:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:35:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['public_key']))
^
spock/mcp/mcpacket_extensions.py:35:4: E221 multiple spaces before operator
o = datautils.pack(MC_VARINT, len(packet.data['public_key']))
^
spock/mcp/mcpacket_extensions.py:36:1: W191 indentation contains tabs
o += packet.data['public_key']
^
spock/mcp/mcpacket_extensions.py:37:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, len(packet.data['verify_token']))
^
spock/mcp/mcpacket_extensions.py:38:1: W191 indentation contains tabs
o += packet.data['verify_token']
^
spock/mcp/mcpacket_extensions.py:39:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:41:1: E265 block comment should start with '# '
#Login CLIENT_TO_SERVER 0x01 Encryption Response
^
spock/mcp/mcpacket_extensions.py:42:1: E302 expected 2 blank lines, found 1
@extension(mcdata.LOGIN_STATE, mcdata.CLIENT_TO_SERVER, 0x01)
^
spock/mcp/mcpacket_extensions.py:44:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:45:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:46:1: W191 indentation contains tabs
length = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:47:1: W191 indentation contains tabs
packet.data['shared_secret'] = bbuff.recv(length)
^
spock/mcp/mcpacket_extensions.py:48:1: W191 indentation contains tabs
length = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:49:1: W191 indentation contains tabs
packet.data['verify_token'] = bbuff.recv(length)
^
spock/mcp/mcpacket_extensions.py:50:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:52:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:53:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:54:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['shared_secret']))
^
spock/mcp/mcpacket_extensions.py:54:4: E221 multiple spaces before operator
o = datautils.pack(MC_VARINT, len(packet.data['shared_secret']))
^
spock/mcp/mcpacket_extensions.py:55:1: W191 indentation contains tabs
o += packet.data['shared_secret']
^
spock/mcp/mcpacket_extensions.py:56:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, len(packet.data['verify_token']))
^
spock/mcp/mcpacket_extensions.py:57:1: W191 indentation contains tabs
o += packet.data['verify_token']
^
spock/mcp/mcpacket_extensions.py:58:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:60:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x0E Spawn Object
^
spock/mcp/mcpacket_extensions.py:61:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x0E)
^
spock/mcp/mcpacket_extensions.py:63:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:64:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:65:1: W191 indentation contains tabs
if packet.data['obj_data']:
^
spock/mcp/mcpacket_extensions.py:66:1: W191 indentation contains tabs
packet.data['speed_x'] = datautils.unpack(MC_SHORT, bbuff)
^
spock/mcp/mcpacket_extensions.py:67:1: W191 indentation contains tabs
packet.data['speed_y'] = datautils.unpack(MC_SHORT, bbuff)
^
spock/mcp/mcpacket_extensions.py:68:1: W191 indentation contains tabs
packet.data['speed_z'] = datautils.unpack(MC_SHORT, bbuff)
^
spock/mcp/mcpacket_extensions.py:69:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:71:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:72:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:73:1: W191 indentation contains tabs
if packet.data['obj_data']:
^
spock/mcp/mcpacket_extensions.py:74:1: W191 indentation contains tabs
o = datautils.pack(MC_SHORT, packet.data['speed_x'])
^
spock/mcp/mcpacket_extensions.py:74:5: E221 multiple spaces before operator
o = datautils.pack(MC_SHORT, packet.data['speed_x'])
^
spock/mcp/mcpacket_extensions.py:75:1: W191 indentation contains tabs
o += datautils.pack(MC_SHORT, packet.data['speed_y'])
^
spock/mcp/mcpacket_extensions.py:76:1: W191 indentation contains tabs
o += datautils.pack(MC_SHORT, packet.data['speed_z'])
^
spock/mcp/mcpacket_extensions.py:77:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:79:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x13 Destroy Entities
^
spock/mcp/mcpacket_extensions.py:80:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x13)
^
spock/mcp/mcpacket_extensions.py:82:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:83:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:84:1: W191 indentation contains tabs
count = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:85:1: W191 indentation contains tabs
packet.data['eids'] = [
^
spock/mcp/mcpacket_extensions.py:86:1: W191 indentation contains tabs
datautils.unpack(MC_VARINT, bbuff) for i in range(count)
^
spock/mcp/mcpacket_extensions.py:87:1: W191 indentation contains tabs
]
^
spock/mcp/mcpacket_extensions.py:88:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:90:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:91:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:92:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['eids']))
^
spock/mcp/mcpacket_extensions.py:93:1: W191 indentation contains tabs
for eid in packet.data['eids']:
^
spock/mcp/mcpacket_extensions.py:94:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, eid)
^
spock/mcp/mcpacket_extensions.py:95:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:97:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x20 Entity Properties
^
spock/mcp/mcpacket_extensions.py:98:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x20)
^
spock/mcp/mcpacket_extensions.py:100:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:101:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:102:1: W191 indentation contains tabs
packet.data['properties'] = []
^
spock/mcp/mcpacket_extensions.py:103:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_INT, bbuff)):
^
spock/mcp/mcpacket_extensions.py:104:1: W191 indentation contains tabs
prop = {
^
spock/mcp/mcpacket_extensions.py:105:1: W191 indentation contains tabs
'key': datautils.unpack(MC_STRING, bbuff),
^
spock/mcp/mcpacket_extensions.py:106:1: W191 indentation contains tabs
'value': datautils.unpack(MC_DOUBLE, bbuff),
^
spock/mcp/mcpacket_extensions.py:107:1: W191 indentation contains tabs
'modifiers': [],
^
spock/mcp/mcpacket_extensions.py:108:1: W191 indentation contains tabs
}
^
spock/mcp/mcpacket_extensions.py:109:1: W191 indentation contains tabs
for j in range(datautils.unpack(MC_VARINT, bbuff)):
^
spock/mcp/mcpacket_extensions.py:110:1: W191 indentation contains tabs
prop['modifiers'].append({
^
spock/mcp/mcpacket_extensions.py:111:1: W191 indentation contains tabs
'uuid': datautils.unpack(MC_UUID, bbuff),
^
spock/mcp/mcpacket_extensions.py:112:1: W191 indentation contains tabs
'amount': datautils.unpack(MC_DOUBLE, bbuff),
^
spock/mcp/mcpacket_extensions.py:113:1: W191 indentation contains tabs
'operation': datautils.unpack(MC_BYTE, bbuff),
^
spock/mcp/mcpacket_extensions.py:114:1: W191 indentation contains tabs
})
^
spock/mcp/mcpacket_extensions.py:115:1: W191 indentation contains tabs
packet.data['properties'].append(prop)
^
spock/mcp/mcpacket_extensions.py:116:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:118:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:119:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:120:1: W191 indentation contains tabs
o = datautils.pack(MC_INT, len(packet.data['properties']))
^
spock/mcp/mcpacket_extensions.py:121:1: W191 indentation contains tabs
for prop in packet.data['properties']:
^
spock/mcp/mcpacket_extensions.py:122:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, prop['key'])
^
spock/mcp/mcpacket_extensions.py:123:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, prop['value'])
^
spock/mcp/mcpacket_extensions.py:124:1: W191 indentation contains tabs
o += datautils.pack(MC_SHORT, len(prop['modifiers']))
^
spock/mcp/mcpacket_extensions.py:125:1: W191 indentation contains tabs
for modifier in prop['modifiers']:
^
spock/mcp/mcpacket_extensions.py:126:1: W191 indentation contains tabs
o += datautils.pack(MC_UUID, modifier['uuid'])
^
spock/mcp/mcpacket_extensions.py:127:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, modifier['amount'])
^
spock/mcp/mcpacket_extensions.py:128:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, modifier['operation'])
^
spock/mcp/mcpacket_extensions.py:129:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:131:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x21 Chunk Data
^
spock/mcp/mcpacket_extensions.py:132:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x21)
^
spock/mcp/mcpacket_extensions.py:134:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:135:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:136:1: W191 indentation contains tabs
packet.data['data'] = bbuff.recv(datautils.unpack(MC_VARINT, bbuff))
^
spock/mcp/mcpacket_extensions.py:137:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:139:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:140:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:141:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(data))
^
spock/mcp/mcpacket_extensions.py:141:37: F821 undefined name 'data'
o = datautils.pack(MC_VARINT, len(data))
^
spock/mcp/mcpacket_extensions.py:142:1: W191 indentation contains tabs
o += packet.data['data']
^
spock/mcp/mcpacket_extensions.py:143:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:145:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x22 Multi Block Change
^
spock/mcp/mcpacket_extensions.py:146:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x22)
^
spock/mcp/mcpacket_extensions.py:148:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:149:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:150:1: W191 indentation contains tabs
packet.data['blocks'] = []
^
spock/mcp/mcpacket_extensions.py:151:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_VARINT, bbuff)):
^
spock/mcp/mcpacket_extensions.py:152:1: W191 indentation contains tabs
data = datautils.unpack(MC_USHORT, bbuff)
^
spock/mcp/mcpacket_extensions.py:153:1: W191 indentation contains tabs
packet.data['blocks'].append({
^
spock/mcp/mcpacket_extensions.py:154:1: W191 indentation contains tabs
'y': data&0xFF,
^
spock/mcp/mcpacket_extensions.py:154:14: E227 missing whitespace around bitwise or shift operator
'y': data&0xFF,
^
spock/mcp/mcpacket_extensions.py:155:1: W191 indentation contains tabs
'z': (data>>8)&0xF,
^
spock/mcp/mcpacket_extensions.py:155:15: E227 missing whitespace around bitwise or shift operator
'z': (data>>8)&0xF,
^
spock/mcp/mcpacket_extensions.py:155:19: E227 missing whitespace around bitwise or shift operator
'z': (data>>8)&0xF,
^
spock/mcp/mcpacket_extensions.py:156:1: W191 indentation contains tabs
'x': (data>>12)&0xF,
^
spock/mcp/mcpacket_extensions.py:156:15: E227 missing whitespace around bitwise or shift operator
'x': (data>>12)&0xF,
^
spock/mcp/mcpacket_extensions.py:156:20: E227 missing whitespace around bitwise or shift operator
'x': (data>>12)&0xF,
^
spock/mcp/mcpacket_extensions.py:157:1: W191 indentation contains tabs
'block_data': datautils.unpack(MC_VARINT, bbuff),
^
spock/mcp/mcpacket_extensions.py:158:1: W191 indentation contains tabs
})
^
spock/mcp/mcpacket_extensions.py:159:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:161:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:162:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:163:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['blocks']))
^
spock/mcp/mcpacket_extensions.py:163:4: E221 multiple spaces before operator
o = datautils.pack(MC_VARINT, len(packet.data['blocks']))
^
spock/mcp/mcpacket_extensions.py:164:1: W191 indentation contains tabs
for block in packet.data['blocks']:
^
spock/mcp/mcpacket_extensions.py:165:1: W191 indentation contains tabs
o += datautils.pack(MC_USHORT,
^
spock/mcp/mcpacket_extensions.py:166:1: W191 indentation contains tabs
(block['y']&0xFF) +
^
spock/mcp/mcpacket_extensions.py:166:5: E128 continuation line under-indented for visual indent
(block['y']&0xFF) +
^
spock/mcp/mcpacket_extensions.py:166:16: E227 missing whitespace around bitwise or shift operator
(block['y']&0xFF) +
^
spock/mcp/mcpacket_extensions.py:167:1: W191 indentation contains tabs
((block['z']&0xF)<<8) +
^
spock/mcp/mcpacket_extensions.py:167:17: E227 missing whitespace around bitwise or shift operator
((block['z']&0xF)<<8) +
^
spock/mcp/mcpacket_extensions.py:167:22: E227 missing whitespace around bitwise or shift operator
((block['z']&0xF)<<8) +
^
spock/mcp/mcpacket_extensions.py:168:1: W191 indentation contains tabs
((block['x']&0xF)<<12)
^
spock/mcp/mcpacket_extensions.py:168:17: E227 missing whitespace around bitwise or shift operator
((block['x']&0xF)<<12)
^
spock/mcp/mcpacket_extensions.py:168:22: E227 missing whitespace around bitwise or shift operator
((block['x']&0xF)<<12)
^
spock/mcp/mcpacket_extensions.py:169:1: W191 indentation contains tabs
)
^
spock/mcp/mcpacket_extensions.py:170:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, block['block_data'])
^
spock/mcp/mcpacket_extensions.py:171:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:173:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x26 Map Chunk Bulk
^
spock/mcp/mcpacket_extensions.py:174:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x26)
^
spock/mcp/mcpacket_extensions.py:176:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:177:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:178:1: W191 indentation contains tabs
sky_light = datautils.unpack(MC_BOOL, bbuff)
^
spock/mcp/mcpacket_extensions.py:179:1: W191 indentation contains tabs
count = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:180:1: W191 indentation contains tabs
packet.data['sky_light'] = sky_light
^
spock/mcp/mcpacket_extensions.py:181:1: W191 indentation contains tabs
packet.data['metadata'] = [{
^
spock/mcp/mcpacket_extensions.py:182:1: W191 indentation contains tabs
'chunk_x': datautils.unpack(MC_INT, bbuff),
^
spock/mcp/mcpacket_extensions.py:183:1: W191 indentation contains tabs
'chunk_z': datautils.unpack(MC_INT, bbuff),
^
spock/mcp/mcpacket_extensions.py:184:1: W191 indentation contains tabs
'primary_bitmap': datautils.unpack(MC_USHORT, bbuff),
^
spock/mcp/mcpacket_extensions.py:185:1: W191 indentation contains tabs
} for i in range(count)]
^
spock/mcp/mcpacket_extensions.py:186:1: W191 indentation contains tabs
packet.data['data'] = bbuff.flush()
^
spock/mcp/mcpacket_extensions.py:187:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:189:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:190:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:191:1: W191 indentation contains tabs
o = datautils.pack(MC_BOOL, packet.data['sky_light'])
^
spock/mcp/mcpacket_extensions.py:192:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['metadata'])
^
spock/mcp/mcpacket_extensions.py:193:1: W191 indentation contains tabs
for metadata in packet.data['metadata']:
^
spock/mcp/mcpacket_extensions.py:194:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, metadata['chunk_x'])
^
spock/mcp/mcpacket_extensions.py:195:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, metadata['chunk_z'])
^
spock/mcp/mcpacket_extensions.py:196:1: W191 indentation contains tabs
o += datautils.pack(MC_USHORT, metadata['primary_bitmap'])
^
spock/mcp/mcpacket_extensions.py:197:1: W191 indentation contains tabs
o += packet.data['data']
^
spock/mcp/mcpacket_extensions.py:198:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:200:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x27 Explosion
^
spock/mcp/mcpacket_extensions.py:201:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x27)
^
spock/mcp/mcpacket_extensions.py:203:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:204:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:205:1: W191 indentation contains tabs
packet.data['blocks'] = [
^
spock/mcp/mcpacket_extensions.py:206:1: W191 indentation contains tabs
[datautils.unpack(MC_BYTE, bbuff) for j in range(3)]
^
spock/mcp/mcpacket_extensions.py:207:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_INT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:207:3: E122 continuation line missing indentation or outdented
for i in range(datautils.unpack(MC_INT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:208:1: W191 indentation contains tabs
packet.data['player_x'] = datautils.unpack(MC_FLOAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:209:1: W191 indentation contains tabs
packet.data['player_y'] = datautils.unpack(MC_FLOAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:210:1: W191 indentation contains tabs
packet.data['player_z'] = datautils.unpack(MC_FLOAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:211:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:213:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:214:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:215:1: W191 indentation contains tabs
o = datautils.pack(MC_INT, len(packet.data['blocks']))
^
spock/mcp/mcpacket_extensions.py:216:1: W191 indentation contains tabs
for block in packet.data['blocks']:
^
spock/mcp/mcpacket_extensions.py:217:1: W191 indentation contains tabs
for coord in block:
^
spock/mcp/mcpacket_extensions.py:218:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, coord)
^
spock/mcp/mcpacket_extensions.py:219:1: W191 indentation contains tabs
o += datautils.pack(MC_FLOAT, packet.data['player_x'])
^
spock/mcp/mcpacket_extensions.py:220:1: W191 indentation contains tabs
o += datautils.pack(MC_FLOAT, packet.data['player_y'])
^
spock/mcp/mcpacket_extensions.py:221:1: W191 indentation contains tabs
o += datautils.pack(MC_FLOAT, packet.data['player_z'])
^
spock/mcp/mcpacket_extensions.py:222:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:224:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x2A Particle
^
spock/mcp/mcpacket_extensions.py:225:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x2A)
^
spock/mcp/mcpacket_extensions.py:227:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:228:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:229:1: W191 indentation contains tabs
packet.data['data'] = [
^
spock/mcp/mcpacket_extensions.py:230:1: W191 indentation contains tabs
datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:231:1: W191 indentation contains tabs
for i in range(mcdata.particles[packet.data['id']][1])]
^
spock/mcp/mcpacket_extensions.py:231:3: E122 continuation line missing indentation or outdented
for i in range(mcdata.particles[packet.data['id']][1])]
^
spock/mcp/mcpacket_extensions.py:232:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:234:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:235:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:236:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:237:1: W191 indentation contains tabs
for i in range(mcdata.particles[packet.data['id']][1]):
^
spock/mcp/mcpacket_extensions.py:238:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['data'][i])
^
spock/mcp/mcpacket_extensions.py:239:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:241:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x2D Open Window
^
spock/mcp/mcpacket_extensions.py:242:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x2D)
^
spock/mcp/mcpacket_extensions.py:244:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:245:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:246:1: W191 indentation contains tabs
if packet.data['inv_type'] == 'EntityHorse':
^
spock/mcp/mcpacket_extensions.py:247:1: W191 indentation contains tabs
packet.data['eid'] = datautils.unpack(MC_INT, bbuff)
^
spock/mcp/mcpacket_extensions.py:248:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:250:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:251:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:252:1: W191 indentation contains tabs
if packet.data['inv_type'] == 'EntityHorse':
^
spock/mcp/mcpacket_extensions.py:253:1: W191 indentation contains tabs
return datautils.pack(MC_INT, packet.data['eid'])
^
spock/mcp/mcpacket_extensions.py:256:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x30 Window Items
^
spock/mcp/mcpacket_extensions.py:259:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:260:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:261:1: W191 indentation contains tabs
packet.data['slots'] = [
^
spock/mcp/mcpacket_extensions.py:262:1: W191 indentation contains tabs
datautils.unpack(MC_SLOT, bbuff)
^
spock/mcp/mcpacket_extensions.py:263:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_SHORT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:263:3: E122 continuation line missing indentation or outdented
for i in range(datautils.unpack(MC_SHORT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:264:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:266:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:267:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:268:1: W191 indentation contains tabs
o = datautils.pack(MC_SHORT, len(packet.data['slots']))
^
spock/mcp/mcpacket_extensions.py:269:1: W191 indentation contains tabs
for slot in packet.data['slots']:
^
spock/mcp/mcpacket_extensions.py:270:1: W191 indentation contains tabs
o += datautils.pack(MC_SLOT, slot)
^
spock/mcp/mcpacket_extensions.py:271:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:273:1: E265 block comment should start with '# '
#TODO: Actually decode the map data into a useful format
^
spock/mcp/mcpacket_extensions.py:274:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x34 Maps
^
spock/mcp/mcpacket_extensions.py:275:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x34)
^
spock/mcp/mcpacket_extensions.py:277:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:278:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:279:1: W191 indentation contains tabs
packet.data['icons'] = []
^
spock/mcp/mcpacket_extensions.py:280:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_VARINT, bbuff)):
^
spock/mcp/mcpacket_extensions.py:281:1: W191 indentation contains tabs
byte = datautils.unpack(MC_UBYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:282:1: W191 indentation contains tabs
packet.data['icons'].append({
^
spock/mcp/mcpacket_extensions.py:283:1: W191 indentation contains tabs
'direction': byte>>8,
^
spock/mcp/mcpacket_extensions.py:283:22: E227 missing whitespace around bitwise or shift operator
'direction': byte>>8,
^
spock/mcp/mcpacket_extensions.py:284:1: W191 indentation contains tabs
'type': byte&0x0F,
^
spock/mcp/mcpacket_extensions.py:284:17: E227 missing whitespace around bitwise or shift operator
'type': byte&0x0F,
^
spock/mcp/mcpacket_extensions.py:285:1: W191 indentation contains tabs
'x': datautils.unpack(MC_BYTE, bbuff),
^
spock/mcp/mcpacket_extensions.py:286:1: W191 indentation contains tabs
'y': datautils.unpack(MC_BYTE, bbuff),
^
spock/mcp/mcpacket_extensions.py:287:1: W191 indentation contains tabs
})
^
spock/mcp/mcpacket_extensions.py:288:1: W191 indentation contains tabs
packet.data['columns'] = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:289:1: W191 indentation contains tabs
if packet.data['columns']:
^
spock/mcp/mcpacket_extensions.py:290:1: W191 indentation contains tabs
packet.data['rows'] = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:291:1: W191 indentation contains tabs
packet.data['x'] = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:292:1: W191 indentation contains tabs
packet.data['y'] = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:293:1: W191 indentation contains tabs
packet.data['data'] = bbuff.recv(datautils.unpack(MC_VARINT, bbuff))
^
spock/mcp/mcpacket_extensions.py:294:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:296:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:297:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:298:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['icons']))
^
spock/mcp/mcpacket_extensions.py:299:1: W191 indentation contains tabs
for icon in packet.data['icons']:
^
spock/mcp/mcpacket_extensions.py:300:1: W191 indentation contains tabs
byte = (packet.data['direction']<<8)|(packet.data['type']&0x0F)
^
spock/mcp/mcpacket_extensions.py:300:36: E227 missing whitespace around bitwise or shift operator
byte = (packet.data['direction']<<8)|(packet.data['type']&0x0F)
^
spock/mcp/mcpacket_extensions.py:300:40: E227 missing whitespace around bitwise or shift operator
byte = (packet.data['direction']<<8)|(packet.data['type']&0x0F)
^
spock/mcp/mcpacket_extensions.py:300:61: E227 missing whitespace around bitwise or shift operator
byte = (packet.data['direction']<<8)|(packet.data['type']&0x0F)
^
spock/mcp/mcpacket_extensions.py:301:1: W191 indentation contains tabs
o += datautils.pack(MC_UBYTE, byte)
^
spock/mcp/mcpacket_extensions.py:302:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['x'])
^
spock/mcp/mcpacket_extensions.py:303:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['y'])
^
spock/mcp/mcpacket_extensions.py:304:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['columns'])
^
spock/mcp/mcpacket_extensions.py:305:1: W191 indentation contains tabs
if packet.data['columns']:
^
spock/mcp/mcpacket_extensions.py:306:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['rows'])
^
spock/mcp/mcpacket_extensions.py:307:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['x'])
^
spock/mcp/mcpacket_extensions.py:308:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['y'])
^
spock/mcp/mcpacket_extensions.py:309:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, len(packet.data['data']))
^
spock/mcp/mcpacket_extensions.py:310:1: W191 indentation contains tabs
o += packet.data['data']
^
spock/mcp/mcpacket_extensions.py:311:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:313:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x35 Update Block Entity
^
spock/mcp/mcpacket_extensions.py:314:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x49 Update Entity NBT
^
spock/mcp/mcpacket_extensions.py:315:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x35)
^
spock/mcp/mcpacket_extensions.py:318:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:319:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:320:1: W191 indentation contains tabs
tag_type = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:321:1: W191 indentation contains tabs
if tag_type == nbt.TAG_COMPOUND:
^
spock/mcp/mcpacket_extensions.py:322:1: W191 indentation contains tabs
name = nbt.TAG_String(buffer = bbuff).value
^
spock/mcp/mcpacket_extensions.py:322:32: E251 unexpected spaces around keyword / parameter equals
name = nbt.TAG_String(buffer = bbuff).value
^
spock/mcp/mcpacket_extensions.py:322:34: E251 unexpected spaces around keyword / parameter equals
name = nbt.TAG_String(buffer = bbuff).value
^
spock/mcp/mcpacket_extensions.py:323:1: W191 indentation contains tabs
nbt_data = nbt.TAG_Compound(buffer = bbuff)
^
spock/mcp/mcpacket_extensions.py:323:38: E251 unexpected spaces around keyword / parameter equals
nbt_data = nbt.TAG_Compound(buffer = bbuff)
^
spock/mcp/mcpacket_extensions.py:323:40: E251 unexpected spaces around keyword / parameter equals
nbt_data = nbt.TAG_Compound(buffer = bbuff)
^
spock/mcp/mcpacket_extensions.py:324:1: W191 indentation contains tabs
nbt_data.name = name
^
spock/mcp/mcpacket_extensions.py:325:1: W191 indentation contains tabs
packet.data['nbt'] = nbt_data
^
spock/mcp/mcpacket_extensions.py:326:1: W191 indentation contains tabs
else:
^
spock/mcp/mcpacket_extensions.py:327:1: W191 indentation contains tabs
assert(tag_type == nbt.TAG_END)
^
spock/mcp/mcpacket_extensions.py:328:1: W191 indentation contains tabs
packet.data['nbt'] = None
^
spock/mcp/mcpacket_extensions.py:329:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:331:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:332:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:333:1: W191 indentation contains tabs
bbuff = utils.BoundBuffer()
^
spock/mcp/mcpacket_extensions.py:334:1: W191 indentation contains tabs
if packet.data['nbt'] == None:
^
spock/mcp/mcpacket_extensions.py:334:25: E711 comparison to None should be 'if cond is None:'
if packet.data['nbt'] == None:
^
spock/mcp/mcpacket_extensions.py:335:1: W191 indentation contains tabs
packet.data['nbt'] = nbt._TAG_End()
^
spock/mcp/mcpacket_extensions.py:336:1: W191 indentation contains tabs
TAG_Byte(packet.data['nbt'].id)._render_buffer(bbuff)
^
spock/mcp/mcpacket_extensions.py:336:3: F821 undefined name 'TAG_Byte'
TAG_Byte(packet.data['nbt'].id)._render_buffer(bbuff)
^
spock/mcp/mcpacket_extensions.py:337:1: W191 indentation contains tabs
if packet.data['nbt'].id == nbt.TAG_COMPOUND:
^
spock/mcp/mcpacket_extensions.py:338:1: W191 indentation contains tabs
TAG_String(packet.data['nbt'].name)._render_buffer(bbuff)
^
spock/mcp/mcpacket_extensions.py:338:4: F821 undefined name 'TAG_String'
TAG_String(packet.data['nbt'].name)._render_buffer(bbuff)
^
spock/mcp/mcpacket_extensions.py:339:1: W191 indentation contains tabs
packet.data['nbt']._render_buffer(bbuff)
^
spock/mcp/mcpacket_extensions.py:340:1: W191 indentation contains tabs
return bbuff.flush()
^
spock/mcp/mcpacket_extensions.py:342:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x37 Statistics
^
spock/mcp/mcpacket_extensions.py:343:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x37)
^
spock/mcp/mcpacket_extensions.py:345:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:346:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:347:1: W191 indentation contains tabs
packet.data['entries'] = [[
^
spock/mcp/mcpacket_extensions.py:348:1: W191 indentation contains tabs
datautils.unpack(MC_STRING, bbuff),
^
spock/mcp/mcpacket_extensions.py:349:1: W191 indentation contains tabs
datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:350:1: W191 indentation contains tabs
] for i in range(datautils.unpack(MC_VARINT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:351:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:353:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:354:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:355:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['entries']))
^
spock/mcp/mcpacket_extensions.py:356:1: W191 indentation contains tabs
for entry in packet.data['entries']:
^
spock/mcp/mcpacket_extensions.py:357:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, entry[0])
^
spock/mcp/mcpacket_extensions.py:358:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, entry[1])
^
spock/mcp/mcpacket_extensions.py:359:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:361:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x38 Player List Item
^
spock/mcp/mcpacket_extensions.py:362:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x38)
^
spock/mcp/mcpacket_extensions.py:364:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:365:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:366:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:367:1: W191 indentation contains tabs
packet.data['player_list'] = []
^
spock/mcp/mcpacket_extensions.py:368:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_VARINT, bbuff)):
^
spock/mcp/mcpacket_extensions.py:369:1: W191 indentation contains tabs
item = {'uuid': datautils.unpack(MC_UUID, bbuff)}
^
spock/mcp/mcpacket_extensions.py:370:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER:
^
spock/mcp/mcpacket_extensions.py:371:1: W191 indentation contains tabs
item['name'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:372:1: W191 indentation contains tabs
item['properties'] = []
^
spock/mcp/mcpacket_extensions.py:373:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_VARINT, bbuff)):
^
spock/mcp/mcpacket_extensions.py:374:1: W191 indentation contains tabs
prop = {
^
spock/mcp/mcpacket_extensions.py:375:1: W191 indentation contains tabs
'name': datautils.unpack(MC_STRING, bbuff),
^
spock/mcp/mcpacket_extensions.py:376:1: W191 indentation contains tabs
'value': datautils.unpack(MC_STRING, bbuff),
^
spock/mcp/mcpacket_extensions.py:377:1: W191 indentation contains tabs
'signed': datautils.unpack(MC_BOOL, bbuff),
^
spock/mcp/mcpacket_extensions.py:378:1: W191 indentation contains tabs
}
^
spock/mcp/mcpacket_extensions.py:379:1: W191 indentation contains tabs
if prop['signed']:
^
spock/mcp/mcpacket_extensions.py:380:1: W191 indentation contains tabs
prop['signature'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:381:1: W191 indentation contains tabs
item['properties'].append(prop)
^
spock/mcp/mcpacket_extensions.py:382:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER or act == mcdata.PL_UPDATE_GAMEMODE:
^
spock/mcp/mcpacket_extensions.py:383:1: W191 indentation contains tabs
item['gamemode'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:384:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER or act == mcdata.PL_UPDATE_LATENCY:
^
spock/mcp/mcpacket_extensions.py:385:1: W191 indentation contains tabs
item['ping'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:386:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER or act == mcdata.PL_UPDATE_DISPLAY:
^
spock/mcp/mcpacket_extensions.py:387:1: W191 indentation contains tabs
item['has_display'] = datautils.unpack(MC_BOOL, bbuff)
^
spock/mcp/mcpacket_extensions.py:388:1: W191 indentation contains tabs
if item['has_display']:
^
spock/mcp/mcpacket_extensions.py:389:1: W191 indentation contains tabs
item['display_name'] = datautils.unpack(MC_CHAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:390:1: W191 indentation contains tabs
packet.data['player_list'].append(item)
^
spock/mcp/mcpacket_extensions.py:393:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:393:2: E303 too many blank lines (2)
@staticmethod
^
spock/mcp/mcpacket_extensions.py:394:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:395:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:396:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['player_list']))
^
spock/mcp/mcpacket_extensions.py:397:1: W191 indentation contains tabs
for item in packet.data['player_list']:
^
spock/mcp/mcpacket_extensions.py:398:1: W191 indentation contains tabs
o += datautils.pack(MC_UUID, item['uuid'])
^
spock/mcp/mcpacket_extensions.py:399:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER:
^
spock/mcp/mcpacket_extensions.py:400:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, item['name'])
^
spock/mcp/mcpacket_extensions.py:401:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, len(item['properties']))
^
spock/mcp/mcpacket_extensions.py:402:1: W191 indentation contains tabs
for prop in item['properties']:
^
spock/mcp/mcpacket_extensions.py:403:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, prop['name'])
^
spock/mcp/mcpacket_extensions.py:404:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, prop['value'])
^
spock/mcp/mcpacket_extensions.py:405:1: W191 indentation contains tabs
o += datautils.pack(MC_BOOL, prop['signed'])
^
spock/mcp/mcpacket_extensions.py:406:1: W191 indentation contains tabs
if prop['signed']:
^
spock/mcp/mcpacket_extensions.py:407:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, prop['signature'])
^
spock/mcp/mcpacket_extensions.py:408:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER or act == mcdata.PL_UPDATE_GAMEMODE:
^
spock/mcp/mcpacket_extensions.py:409:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, item['gamemode'])
^
spock/mcp/mcpacket_extensions.py:410:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER or act == mcdata.PL_UPDATE_LATENCY:
^
spock/mcp/mcpacket_extensions.py:411:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, item['ping'])
^
spock/mcp/mcpacket_extensions.py:412:1: W191 indentation contains tabs
if act == mcdata.PL_ADD_PLAYER or act == mcdata.PL_UPDATE_DISPLAY:
^
spock/mcp/mcpacket_extensions.py:413:1: W191 indentation contains tabs
o += datautils.pack(MC_BOOL, item['has_display'])
^
spock/mcp/mcpacket_extensions.py:414:1: W191 indentation contains tabs
if item['has_display']:
^
spock/mcp/mcpacket_extensions.py:415:1: W191 indentation contains tabs
o += datautils.pack(MC_CHAT, item['display_name'])
^
spock/mcp/mcpacket_extensions.py:416:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:418:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x3A Tab-Complete
^
spock/mcp/mcpacket_extensions.py:419:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x3A)
^
spock/mcp/mcpacket_extensions.py:421:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:422:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:423:1: W191 indentation contains tabs
packet.data['matches'] = [
^
spock/mcp/mcpacket_extensions.py:424:1: W191 indentation contains tabs
datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:425:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_VARINT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:425:3: E122 continuation line missing indentation or outdented
for i in range(datautils.unpack(MC_VARINT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:426:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:428:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:429:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:430:1: W191 indentation contains tabs
o = datautils.pack(MC_VARINT, len(packet.data['matches']))
^
spock/mcp/mcpacket_extensions.py:431:1: W191 indentation contains tabs
for match in packet.data['matches']:
^
spock/mcp/mcpacket_extensions.py:432:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, match)
^
spock/mcp/mcpacket_extensions.py:433:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:435:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x3B Scoreboard Objective
^
spock/mcp/mcpacket_extensions.py:436:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x3B)
^
spock/mcp/mcpacket_extensions.py:438:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:439:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:440:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:441:1: W191 indentation contains tabs
if act == mcdata.SO_CREATE_BOARD or act == mcdata.SO_UPDATE_BOARD:
^
spock/mcp/mcpacket_extensions.py:442:1: W191 indentation contains tabs
packet.data['obj_val'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:443:1: W191 indentation contains tabs
packet.data['type'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:444:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:446:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:447:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:448:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:449:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:450:1: W191 indentation contains tabs
if act == mcdata.SO_CREATE_BOARD or act == mcdata.SO_UPDATE_BOARD:
^
spock/mcp/mcpacket_extensions.py:451:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['obj_val'])
^
spock/mcp/mcpacket_extensions.py:452:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['type'])
^
spock/mcp/mcpacket_extensions.py:453:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:455:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x3C Update Score
^
spock/mcp/mcpacket_extensions.py:456:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x3C)
^
spock/mcp/mcpacket_extensions.py:458:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:459:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:460:1: W191 indentation contains tabs
if packet.data['action'] == mcdata.US_UPDATE_SCORE:
^
spock/mcp/mcpacket_extensions.py:461:1: W191 indentation contains tabs
packet.data['value'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:462:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:464:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:465:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:466:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:467:1: W191 indentation contains tabs
if packet.data['action'] == mcdata.US_UPDATE_SCORE:
^
spock/mcp/mcpacket_extensions.py:468:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['value'])
^
spock/mcp/mcpacket_extensions.py:469:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:471:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x3E Teams
^
spock/mcp/mcpacket_extensions.py:472:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x3E)
^
spock/mcp/mcpacket_extensions.py:474:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:475:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:476:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:477:1: W191 indentation contains tabs
if act == mcdata.TE_CREATE_TEAM or act == mcdata.TE_UPDATE_TEAM:
^
spock/mcp/mcpacket_extensions.py:478:1: W191 indentation contains tabs
packet.data['display_name'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:479:1: W191 indentation contains tabs
packet.data['team_prefix'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:480:1: W191 indentation contains tabs
packet.data['team_suffix'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:481:1: W191 indentation contains tabs
packet.data['friendly_fire'] = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:482:1: W191 indentation contains tabs
packet.data['name_visibility'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:483:1: W191 indentation contains tabs
packet.data['color'] = datautils.unpack(MC_BYTE, bbuff)
^
spock/mcp/mcpacket_extensions.py:484:1: W191 indentation contains tabs
if (
^
spock/mcp/mcpacket_extensions.py:485:1: W191 indentation contains tabs
act == mcdata.TE_CREATE_TEAM or
^
spock/mcp/mcpacket_extensions.py:486:1: W191 indentation contains tabs
act == mcdata.TE_ADDPLY_TEAM or
^
spock/mcp/mcpacket_extensions.py:487:1: W191 indentation contains tabs
act == mcdata.TE_REMPLY_TEAM
^
spock/mcp/mcpacket_extensions.py:488:1: W191 indentation contains tabs
):
^
spock/mcp/mcpacket_extensions.py:489:1: W191 indentation contains tabs
packet.data['players'] = [
^
spock/mcp/mcpacket_extensions.py:490:1: W191 indentation contains tabs
datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:491:1: W191 indentation contains tabs
for i in range(datautils.unpack(MC_VARINT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:491:4: E122 continuation line missing indentation or outdented
for i in range(datautils.unpack(MC_VARINT, bbuff))]
^
spock/mcp/mcpacket_extensions.py:492:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:494:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:495:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:496:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:497:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:498:1: W191 indentation contains tabs
if act == mcdata.TE_CREATE_TEAM or act == TE_UPDATE_TEAM:
^
spock/mcp/mcpacket_extensions.py:498:45: F821 undefined name 'TE_UPDATE_TEAM'
if act == mcdata.TE_CREATE_TEAM or act == TE_UPDATE_TEAM:
^
spock/mcp/mcpacket_extensions.py:499:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['display_name'])
^
spock/mcp/mcpacket_extensions.py:500:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['team_prefix'])
^
spock/mcp/mcpacket_extensions.py:501:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['team_suffix'])
^
spock/mcp/mcpacket_extensions.py:502:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['friendly_fire'])
^
spock/mcp/mcpacket_extensions.py:503:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['name_visibility'])
^
spock/mcp/mcpacket_extensions.py:504:1: W191 indentation contains tabs
o += datautils.pack(MC_BYTE, packet.data['color'])
^
spock/mcp/mcpacket_extensions.py:505:1: W191 indentation contains tabs
if (
^
spock/mcp/mcpacket_extensions.py:506:1: W191 indentation contains tabs
act == mcdata.TE_CREATE_TEAM or
^
spock/mcp/mcpacket_extensions.py:507:1: W191 indentation contains tabs
act == mcdata.TE_ADDPLY_TEAM or
^
spock/mcp/mcpacket_extensions.py:508:1: W191 indentation contains tabs
act == mcdata.TE_REMPLY_TEAM
^
spock/mcp/mcpacket_extensions.py:509:1: W191 indentation contains tabs
):
^
spock/mcp/mcpacket_extensions.py:510:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, len(packet.data['players']))
^
spock/mcp/mcpacket_extensions.py:511:1: W191 indentation contains tabs
for player in packet.data['players']:
^
spock/mcp/mcpacket_extensions.py:512:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, player)
^
spock/mcp/mcpacket_extensions.py:513:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:515:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x3F Plugin Message
^
spock/mcp/mcpacket_extensions.py:516:1: E265 block comment should start with '# '
#Play CLIENT_TO_SERVER 0x17 Plugin Message
^
spock/mcp/mcpacket_extensions.py:517:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x3F)
^
spock/mcp/mcpacket_extensions.py:520:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:521:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:522:1: W191 indentation contains tabs
packet.data['data'] = bbuff.flush()
^
spock/mcp/mcpacket_extensions.py:523:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:525:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:526:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:527:1: W191 indentation contains tabs
o += packet.data['data']
^
spock/mcp/mcpacket_extensions.py:527:3: F821 undefined name 'o'
o += packet.data['data']
^
spock/mcp/mcpacket_extensions.py:528:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:530:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x42 Combat Event
^
spock/mcp/mcpacket_extensions.py:531:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x42)
^
spock/mcp/mcpacket_extensions.py:533:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:534:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:535:1: W191 indentation contains tabs
if packet.data['event'] == mcdata.CE_END_COMBAT:
^
spock/mcp/mcpacket_extensions.py:536:1: W191 indentation contains tabs
packet.data['duration'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:537:1: W191 indentation contains tabs
packet.data['eid'] = datautils.unpack(MC_INT, bbuff)
^
spock/mcp/mcpacket_extensions.py:538:1: W191 indentation contains tabs
if packet.data['event'] == mcdata.CE_ENTITY_DEAD:
^
spock/mcp/mcpacket_extensions.py:539:1: W191 indentation contains tabs
packet.data['player_id'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:540:1: W191 indentation contains tabs
packet.data['eid'] = datautils.unpack(MC_INT, bbuff)
^
spock/mcp/mcpacket_extensions.py:541:1: W191 indentation contains tabs
packet.data['message'] = datautils.unpack(MC_STRING, bbuff)
^
spock/mcp/mcpacket_extensions.py:542:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:544:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:545:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:546:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:547:1: W191 indentation contains tabs
if packet.data['event'] == mcdata.CE_END_COMBAT:
^
spock/mcp/mcpacket_extensions.py:548:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['duration'])
^
spock/mcp/mcpacket_extensions.py:549:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, packet.data['eid'])
^
spock/mcp/mcpacket_extensions.py:550:1: W191 indentation contains tabs
if packet.data['event'] == mcdata.CE_ENTITY_DEAD:
^
spock/mcp/mcpacket_extensions.py:551:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['player_id'])
^
spock/mcp/mcpacket_extensions.py:552:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, packet.data['eid'])
^
spock/mcp/mcpacket_extensions.py:553:1: W191 indentation contains tabs
o += datautils.pack(MC_STRING, packet.data['message'])
^
spock/mcp/mcpacket_extensions.py:554:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:556:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x44 World Border
^
spock/mcp/mcpacket_extensions.py:557:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x44)
^
spock/mcp/mcpacket_extensions.py:559:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:560:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:561:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:562:1: W191 indentation contains tabs
if act == mcdata.WB_SET_SIZE:
^
spock/mcp/mcpacket_extensions.py:563:1: W191 indentation contains tabs
packet.data['radius'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:564:1: W191 indentation contains tabs
if act == mcdata.WB_SET_CENTER or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:565:1: W191 indentation contains tabs
packet.data['x'] = datautils.unpack(MC_DOUBLE, bbuff)
^
spock/mcp/mcpacket_extensions.py:566:1: W191 indentation contains tabs
packet.data['z'] = datautils.unpack(MC_DOUBLE, bbuff)
^
spock/mcp/mcpacket_extensions.py:567:1: W191 indentation contains tabs
if act == mcdata.WB_LERP_SIZE or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:568:1: W191 indentation contains tabs
packet.data['old_radius'] = datautils.unpack(MC_DOUBLE, bbuff)
^
spock/mcp/mcpacket_extensions.py:569:1: W191 indentation contains tabs
packet.data['new_radius'] = datautils.unpack(MC_DOUBLE, bbuff)
^
spock/mcp/mcpacket_extensions.py:570:1: W191 indentation contains tabs
packet.data['speed'] = datautils.unpack(MC_VARLONG, bbuff)
^
spock/mcp/mcpacket_extensions.py:571:1: W191 indentation contains tabs
if act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:572:1: W191 indentation contains tabs
packet.data['port_tele_bound'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:573:1: W191 indentation contains tabs
if act == mcdata.WB_SET_WARN_TIME or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:574:1: W191 indentation contains tabs
packet.data['warn_time'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:575:1: W191 indentation contains tabs
if act == mcdata.WB_SET_WARN_BLOCKS or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:576:1: W191 indentation contains tabs
packet.data['warn_blocks'] = datautils.unpack(MC_VARINT, bbuff)
^
spock/mcp/mcpacket_extensions.py:577:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:579:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:580:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:581:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:582:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:583:1: W191 indentation contains tabs
if act == mcdata.WB_SET_SIZE:
^
spock/mcp/mcpacket_extensions.py:584:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, packet.data['radius'])
^
spock/mcp/mcpacket_extensions.py:585:1: W191 indentation contains tabs
if act == mcdata.WB_SET_CENTER or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:586:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, packet.data['x'])
^
spock/mcp/mcpacket_extensions.py:587:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, packet.data['y'])
^
spock/mcp/mcpacket_extensions.py:588:1: W191 indentation contains tabs
if act == mcdata.WB_LERP_SIZE or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:589:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, packet.data['old_radius'])
^
spock/mcp/mcpacket_extensions.py:590:1: W191 indentation contains tabs
o += datautils.pack(MC_DOUBLE, packet.data['new_radius'])
^
spock/mcp/mcpacket_extensions.py:591:1: W191 indentation contains tabs
o += datautils.pack(MC_VARLONG, packet.data['speed'])
^
spock/mcp/mcpacket_extensions.py:592:1: W191 indentation contains tabs
if act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:593:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['port_tele_bound'])
^
spock/mcp/mcpacket_extensions.py:594:1: W191 indentation contains tabs
if act == mcdata.WB_SET_WARN_TIME or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:595:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['warn_time'])
^
spock/mcp/mcpacket_extensions.py:596:1: W191 indentation contains tabs
if act == mcdata.WB_SET_WARN_BLOCKS or act == mcdata.WB_INITIALIZE:
^
spock/mcp/mcpacket_extensions.py:597:1: W191 indentation contains tabs
o += datautils.pack(MC_VARINT, packet.data['warn_blocks'])
^
spock/mcp/mcpacket_extensions.py:598:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:600:1: E265 block comment should start with '# '
#Play SERVER_TO_CLIENT 0x45 Title
^
spock/mcp/mcpacket_extensions.py:601:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.SERVER_TO_CLIENT, 0x45)
^
spock/mcp/mcpacket_extensions.py:603:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:604:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:605:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:606:1: W191 indentation contains tabs
if act == mcdata.TL_TITLE or act == mcdata.TL_SUBTITLE:
^
spock/mcp/mcpacket_extensions.py:607:1: W191 indentation contains tabs
packet.data['text'] = datautils.unpack(MC_CHAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:608:1: W191 indentation contains tabs
if act == mcdata.TL_TIMES:
^
spock/mcp/mcpacket_extensions.py:609:1: W191 indentation contains tabs
packet.data['fade_in'] = datautils.unpack(MC_INT, bbuff)
^
spock/mcp/mcpacket_extensions.py:610:1: W191 indentation contains tabs
packet.data['stay'] = datautils.unpack(MC_INT, bbuff)
^
spock/mcp/mcpacket_extensions.py:611:1: W191 indentation contains tabs
packet.data['fade_out'] = datautils.unpack(MC_INT, bbuff)
^
spock/mcp/mcpacket_extensions.py:612:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:614:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:615:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:616:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:617:1: W191 indentation contains tabs
act = packet.data['action']
^
spock/mcp/mcpacket_extensions.py:618:1: W191 indentation contains tabs
if act == mcdata.TL_TITLE or act == mcdata.TL_SUBTITLE:
^
spock/mcp/mcpacket_extensions.py:619:1: W191 indentation contains tabs
o += datautils.pack(MC_CHAT, packet.data['text'])
^
spock/mcp/mcpacket_extensions.py:620:1: W191 indentation contains tabs
if act == mcdata.TL_TIMES:
^
spock/mcp/mcpacket_extensions.py:621:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, packet.data['fade_in'])
^
spock/mcp/mcpacket_extensions.py:622:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, packet.data['stay'])
^
spock/mcp/mcpacket_extensions.py:623:1: W191 indentation contains tabs
o += datautils.pack(MC_INT, packet.data['fade_out'])
^
spock/mcp/mcpacket_extensions.py:624:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:626:1: E265 block comment should start with '# '
#Play CLIENT_TO_SERVER 0x02 Use Entity
^
spock/mcp/mcpacket_extensions.py:627:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.CLIENT_TO_SERVER, 0x02)
^
spock/mcp/mcpacket_extensions.py:629:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:630:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:631:1: W191 indentation contains tabs
if packet.data['action'] == mcdata.UE_INTERACT_AT:
^
spock/mcp/mcpacket_extensions.py:632:1: W191 indentation contains tabs
packet.data['target_x'] = datautils.unpack(MC_FLOAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:633:1: W191 indentation contains tabs
packet.data['target_y'] = datautils.unpack(MC_FLOAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:634:1: W191 indentation contains tabs
packet.data['target_z'] = datautils.unpack(MC_FLOAT, bbuff)
^
spock/mcp/mcpacket_extensions.py:635:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:637:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:638:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:639:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:640:1: W191 indentation contains tabs
if packet.data['action'] == mcdata.UE_INTERACT_AT:
^
spock/mcp/mcpacket_extensions.py:641:1: W191 indentation contains tabs
o += datautils.pack(MC_FLOAT, packet.data['target_x'])
^
spock/mcp/mcpacket_extensions.py:642:1: W191 indentation contains tabs
o += datautils.pack(MC_FLOAT, packet.data['target_y'])
^
spock/mcp/mcpacket_extensions.py:643:1: W191 indentation contains tabs
o += datautils.pack(MC_FLOAT, packet.data['target_z'])
^
spock/mcp/mcpacket_extensions.py:644:1: W191 indentation contains tabs
return o
^
spock/mcp/mcpacket_extensions.py:646:1: E265 block comment should start with '# '
#ToDo: Set has_position True for encode based on prescence of 'block_loc'?
^
spock/mcp/mcpacket_extensions.py:647:1: E265 block comment should start with '# '
#Play CLIENT_TO_SERVER 0x14 Tab-Complete
^
spock/mcp/mcpacket_extensions.py:648:1: E302 expected 2 blank lines, found 1
@extension(mcdata.PLAY_STATE, mcdata.CLIENT_TO_SERVER, 0x14)
^
spock/mcp/mcpacket_extensions.py:650:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:651:1: W191 indentation contains tabs
def decode_extra(packet, bbuff):
^
spock/mcp/mcpacket_extensions.py:652:1: W191 indentation contains tabs
if packet.data['has_position'] == True:
^
spock/mcp/mcpacket_extensions.py:652:34: E712 comparison to True should be 'if cond is True:' or 'if cond:'
if packet.data['has_position'] == True:
^
spock/mcp/mcpacket_extensions.py:653:1: W191 indentation contains tabs
packet.data['block_loc'] = datautils.unpack(MC_POSITION, bbuff)
^
spock/mcp/mcpacket_extensions.py:654:1: W191 indentation contains tabs
return packet
^
spock/mcp/mcpacket_extensions.py:656:1: W191 indentation contains tabs
@staticmethod
^
spock/mcp/mcpacket_extensions.py:657:1: W191 indentation contains tabs
def encode_extra(packet):
^
spock/mcp/mcpacket_extensions.py:658:1: W191 indentation contains tabs
o = b''
^
spock/mcp/mcpacket_extensions.py:659:1: W191 indentation contains tabs
if packet.data['has_position'] == True:
^
spock/mcp/mcpacket_extensions.py:659:34: E712 comparison to True should be 'if cond is True:' or 'if cond:'
if packet.data['has_position'] == True:
^
spock/mcp/mcpacket_extensions.py:660:1: W191 indentation contains tabs
datautils.pack(MC_POSITION, packet.data['block_loc'])
^
spock/mcp/mcpacket_extensions.py:661:1: W191 indentation contains tabs
return o
^
spock/mcmap/mapdata.py:3:1: E265 block comment should start with '# '
#Materials
^
spock/mcmap/mapdata.py:4:13: E221 multiple spaces before operator
MCM_MAT_ROCK = 0x00
^
spock/mcmap/mapdata.py:5:13: E221 multiple spaces before operator
MCM_MAT_DIRT = 0x01
^
spock/mcmap/mapdata.py:6:13: E221 multiple spaces before operator
MCM_MAT_WOOD = 0x02
^
spock/mcmap/mapdata.py:7:12: E221 multiple spaces before operator
MCM_MAT_WEB = 0x03
^
spock/mcmap/mapdata.py:8:13: E221 multiple spaces before operator
MCM_MAT_WOOL = 0x04
^
spock/mcmap/mapdata.py:9:13: E221 multiple spaces before operator
MCM_MAT_VINE = 0x05
^
spock/mcmap/mapdata.py:10:15: E221 multiple spaces before operator
MCM_MAT_LEAVES = 0x06
^
spock/mcmap/mapdata.py:12:1: E265 block comment should start with '# '
#Gate
^
spock/mcmap/mapdata.py:13:15: E221 multiple spaces before operator
MCM_GATE_SOUTH = 0x00
^
spock/mcmap/mapdata.py:14:14: E221 multiple spaces before operator
MCM_GATE_WEST = 0x01
^
spock/mcmap/mapdata.py:15:15: E221 multiple spaces before operator
MCM_GATE_NORTH = 0x02
^
spock/mcmap/mapdata.py:16:14: E221 multiple spaces before operator
MCM_GATE_EAST = 0x03
^
spock/mcmap/mapdata.py:18:15: E221 multiple spaces before operator
MCM_GATE_CLOSE = 0x00
^
spock/mcmap/mapdata.py:19:14: E221 multiple spaces before operator
MCM_GATE_OPEN = 0x01
^
spock/mcmap/mapdata.py:21:19: E221 multiple spaces before operator
MCM_GATE_UNPOWERED = 0x00
^
spock/mcmap/mapdata.py:22:17: E221 multiple spaces before operator
MCM_GATE_POWERED = 0x01
^
spock/mcmap/mapdata.py:24:1: E265 block comment should start with '# '
#Door
^
spock/mcmap/mapdata.py:25:14: E221 multiple spaces before operator
MCM_DOOR_WEST = 0x00
^
spock/mcmap/mapdata.py:26:15: E221 multiple spaces before operator
MCM_DOOR_NORTH = 0x01
^
spock/mcmap/mapdata.py:27:14: E221 multiple spaces before operator
MCM_DOOR_EAST = 0x02
^
spock/mcmap/mapdata.py:28:15: E221 multiple spaces before operator
MCM_DOOR_SOUTH = 0x03
^
spock/mcmap/mapdata.py:30:15: E221 multiple spaces before operator
MCM_DOOR_CLOSE = 0x00
^
spock/mcmap/mapdata.py:31:14: E221 multiple spaces before operator
MCM_DOOR_OPEN = 0x01
^
spock/mcmap/mapdata.py:33:15: E221 multiple spaces before operator
MCM_DOOR_LOWER = 0x00
^
spock/mcmap/mapdata.py:34:15: E221 multiple spaces before operator
MCM_DOOR_UPPER = 0x01
^
spock/mcmap/mapdata.py:36:20: E221 multiple spaces before operator
MCM_DOOR_HINGE_LEFT = 0x00
^
spock/mcmap/mapdata.py:40:1: E265 block comment should start with '# '
#Trapdoor
^
spock/mcmap/mapdata.py:41:18: E221 multiple spaces before operator
MCM_TRAPDOOR_WEST = 0x00
^
spock/mcmap/mapdata.py:42:19: E221 multiple spaces before operator
MCM_TRAPDOOR_NORTH = 0x01
^
spock/mcmap/mapdata.py:43:18: E221 multiple spaces before operator
MCM_TRAPDOOR_EAST = 0x02
^
spock/mcmap/mapdata.py:44:19: E221 multiple spaces before operator
MCM_TRAPDOOR_SOUTH = 0x03
^
spock/mcmap/mapdata.py:46:19: E221 multiple spaces before operator
MCM_TRAPDOOR_CLOSE = 0x00
^
spock/mcmap/mapdata.py:47:18: E221 multiple spaces before operator
MCM_TRAPDOOR_OPEN = 0x01
^
spock/mcmap/mapdata.py:49:19: E221 multiple spaces before operator
MCM_TRAPDOOR_LOWER = 0x00
^
spock/mcmap/mapdata.py:50:19: E221 multiple spaces before operator
MCM_TRAPDOOR_UPPER = 0x01
^
spock/mcmap/mapdata.py:52:1: E265 block comment should start with '# '
#Slab
^
spock/mcmap/mapdata.py:53:15: E221 multiple spaces before operator
MCM_SLAB_LOWER = 0x00
^
spock/mcmap/mapdata.py:54:15: E221 multiple spaces before operator
MCM_SLAB_UPPER = 0x01
^
spock/mcmap/mapdata.py:58:1: E302 expected 2 blank lines, found 0
def map_block(block_id):
^
spock/mcmap/mapdata.py:59:1: W191 indentation contains tabs
def inner(cl):
^
spock/mcmap/mapdata.py:60:1: W191 indentation contains tabs
blocks[block_id] = cl
^
spock/mcmap/mapdata.py:61:1: W191 indentation contains tabs
cl.block_id = block_id
^
spock/mcmap/mapdata.py:62:1: W191 indentation contains tabs
return cl
^
spock/mcmap/mapdata.py:63:1: W191 indentation contains tabs
return inner
^
spock/mcmap/mapdata.py:65:1: E302 expected 2 blank lines, found 1
def get_block(block_id, meta = 0, init=True):
^
spock/mcmap/mapdata.py:65:29: E251 unexpected spaces around keyword / parameter equals
def get_block(block_id, meta = 0, init=True):
^
spock/mcmap/mapdata.py:65:31: E251 unexpected spaces around keyword / parameter equals
def get_block(block_id, meta = 0, init=True):
^
spock/mcmap/mapdata.py:66:1: W191 indentation contains tabs
if init:
^
spock/mcmap/mapdata.py:67:1: W191 indentation contains tabs
return blocks[block_id](meta) if block_id < len(blocks) else None
^
spock/mcmap/mapdata.py:68:1: W191 indentation contains tabs
else:
^
spock/mcmap/mapdata.py:69:1: W191 indentation contains tabs
return blocks[block_id] if block_id < len(blocks) else None
^
spock/mcmap/mapdata.py:73:1: W191 indentation contains tabs
display_name = 'Map Block'
^
spock/mcmap/mapdata.py:74:1: W191 indentation contains tabs
name = 'map_block'
^
spock/mcmap/mapdata.py:75:1: W191 indentation contains tabs
hardness = 0
^
spock/mcmap/mapdata.py:76:1: W191 indentation contains tabs
stack_size = 64
^
spock/mcmap/mapdata.py:77:1: W191 indentation contains tabs
diggable = True
^
spock/mcmap/mapdata.py:78:1: W191 indentation contains tabs
material = None
^
spock/mcmap/mapdata.py:79:1: W191 indentation contains tabs
harvest_tools = None
^
spock/mcmap/mapdata.py:81:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:82:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:82:36: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:84:1: W191 indentation contains tabs
def change_meta(self, meta):
^
spock/mcmap/mapdata.py:85:1: W191 indentation contains tabs
pass
^
spock/mcmap/mapdata.py:87:1: E302 expected 2 blank lines, found 1
class FenceBlock(MapBlock):
^
spock/mcmap/mapdata.py:88:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:89:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,1.5)
^
spock/mcmap/mapdata.py:89:36: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,1.5)
^
spock/mcmap/mapdata.py:91:1: E302 expected 2 blank lines, found 1
class GateBlock(MapBlock):
^
spock/mcmap/mapdata.py:92:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:93:1: W191 indentation contains tabs
self.direction = meta&0x03
^
spock/mcmap/mapdata.py:93:24: E227 missing whitespace around bitwise or shift operator
self.direction = meta&0x03
^
spock/mcmap/mapdata.py:94:1: W191 indentation contains tabs
self.open = (meta>>2)&0x01 == MCM_GATE_OPEN
^
spock/mcmap/mapdata.py:94:20: E227 missing whitespace around bitwise or shift operator
self.open = (meta>>2)&0x01 == MCM_GATE_OPEN
^
spock/mcmap/mapdata.py:94:24: E227 missing whitespace around bitwise or shift operator
self.open = (meta>>2)&0x01 == MCM_GATE_OPEN
^
spock/mcmap/mapdata.py:95:1: W191 indentation contains tabs
self.powered = meta>>3 == MCM_GATE_POWERED
^
spock/mcmap/mapdata.py:95:22: E227 missing whitespace around bitwise or shift operator
self.powered = meta>>3 == MCM_GATE_POWERED
^
spock/mcmap/mapdata.py:96:1: W191 indentation contains tabs
if self.open:
^
spock/mcmap/mapdata.py:97:1: W191 indentation contains tabs
self.bounding_box = None
^
spock/mcmap/mapdata.py:98:1: W191 indentation contains tabs
else:
^
spock/mcmap/mapdata.py:99:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,1.5)
^
spock/mcmap/mapdata.py:99:37: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,1.5)
^
spock/mcmap/mapdata.py:101:1: E302 expected 2 blank lines, found 1
class DoorBlock(MapBlock):
^
spock/mcmap/mapdata.py:102:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:103:1: W191 indentation contains tabs
self.section = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:103:23: E227 missing whitespace around bitwise or shift operator
self.section = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:103:27: E227 missing whitespace around bitwise or shift operator
self.section = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:104:1: W191 indentation contains tabs
if self.section == MCM_DOOR_LOWER:
^
spock/mcmap/mapdata.py:105:1: W191 indentation contains tabs
self.open = (meta>>2)&0x01 == MCM_DOOR_OPEN
^
spock/mcmap/mapdata.py:105:21: E227 missing whitespace around bitwise or shift operator
self.open = (meta>>2)&0x01 == MCM_DOOR_OPEN
^
spock/mcmap/mapdata.py:105:25: E227 missing whitespace around bitwise or shift operator
self.open = (meta>>2)&0x01 == MCM_DOOR_OPEN
^
spock/mcmap/mapdata.py:106:1: W191 indentation contains tabs
self.direction = meta&0x03
^
spock/mcmap/mapdata.py:106:25: E227 missing whitespace around bitwise or shift operator
self.direction = meta&0x03
^
spock/mcmap/mapdata.py:107:1: W191 indentation contains tabs
if not self.open:
^
spock/mcmap/mapdata.py:108:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,2)
^
spock/mcmap/mapdata.py:108:38: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,2)
^
spock/mcmap/mapdata.py:109:1: W191 indentation contains tabs
else:
^
spock/mcmap/mapdata.py:110:1: W191 indentation contains tabs
self.bounding_box = None
^
spock/mcmap/mapdata.py:111:1: W191 indentation contains tabs
elif self.section == MCM_DOOR_UPPER:
^
spock/mcmap/mapdata.py:112:1: W191 indentation contains tabs
self.hinge = meta&0x01
^
spock/mcmap/mapdata.py:112:21: E227 missing whitespace around bitwise or shift operator
self.hinge = meta&0x01
^
spock/mcmap/mapdata.py:113:1: W191 indentation contains tabs
self.bounding_box = None
^
spock/mcmap/mapdata.py:115:1: E302 expected 2 blank lines, found 1
class SlabBlock(MapBlock):
^
spock/mcmap/mapdata.py:116:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:117:1: W191 indentation contains tabs
self.orientation = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:117:27: E227 missing whitespace around bitwise or shift operator
self.orientation = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:117:31: E227 missing whitespace around bitwise or shift operator
self.orientation = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:118:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:118:36: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:120:1: E302 expected 2 blank lines, found 1
class StairBlock(MapBlock):
^
spock/mcmap/mapdata.py:121:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:122:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:122:36: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:124:1: E302 expected 2 blank lines, found 1
class TrapdoorBlock(MapBlock):
^
spock/mcmap/mapdata.py:125:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:126:1: W191 indentation contains tabs
self.direction = meta&0x03
^
spock/mcmap/mapdata.py:126:24: E227 missing whitespace around bitwise or shift operator
self.direction = meta&0x03
^
spock/mcmap/mapdata.py:127:1: W191 indentation contains tabs
self.open = (meta>>2)&0x01 == MCM_TRAPDOOR_OPEN
^
spock/mcmap/mapdata.py:127:20: E227 missing whitespace around bitwise or shift operator
self.open = (meta>>2)&0x01 == MCM_TRAPDOOR_OPEN
^
spock/mcmap/mapdata.py:127:24: E227 missing whitespace around bitwise or shift operator
self.open = (meta>>2)&0x01 == MCM_TRAPDOOR_OPEN
^
spock/mcmap/mapdata.py:128:1: W191 indentation contains tabs
self.orientation = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:128:27: E227 missing whitespace around bitwise or shift operator
self.orientation = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:128:31: E227 missing whitespace around bitwise or shift operator
self.orientation = (meta>>3)&0x1
^
spock/mcmap/mapdata.py:129:1: W191 indentation contains tabs
if self.open == MCM_TRAPDOOR_OPEN:
^
spock/mcmap/mapdata.py:130:1: W191 indentation contains tabs
self.bounding_box = None
^
spock/mcmap/mapdata.py:131:1: W191 indentation contains tabs
elif self.orientation == MCM_TRAPDOOR_UPPER:
^
spock/mcmap/mapdata.py:132:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:132:37: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,1)
^
spock/mcmap/mapdata.py:133:1: W191 indentation contains tabs
elif self.orientation == MCM_TRAPDOOR_LOWER:
^
spock/mcmap/mapdata.py:134:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,0.4)
^
spock/mcmap/mapdata.py:134:37: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,0.4)
^
spock/mcmap/mapdata.py:136:1: E302 expected 2 blank lines, found 1
class NoCollisionBlock(MapBlock):
^
spock/mcmap/mapdata.py:137:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:138:1: W191 indentation contains tabs
self.bounding_box = None
^
spock/mcmap/mapdata.py:140:1: E302 expected 2 blank lines, found 1
@map_block(0)
^
spock/mcmap/mapdata.py:142:1: W191 indentation contains tabs
display_name = 'Air'
^
spock/mcmap/mapdata.py:143:1: W191 indentation contains tabs
name = 'air'
^
spock/mcmap/mapdata.py:144:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:146:1: E302 expected 2 blank lines, found 1
@map_block(1)
^
spock/mcmap/mapdata.py:148:1: W191 indentation contains tabs
display_name = 'Stone'
^
spock/mcmap/mapdata.py:149:1: W191 indentation contains tabs
name = 'stone'
^
spock/mcmap/mapdata.py:150:1: W191 indentation contains tabs
hardness = 1.5
^
spock/mcmap/mapdata.py:151:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:152:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:154:1: E302 expected 2 blank lines, found 1
@map_block(2)
^
spock/mcmap/mapdata.py:156:1: W191 indentation contains tabs
display_name = 'Grass Block'
^
spock/mcmap/mapdata.py:157:1: W191 indentation contains tabs
name = 'grass'
^
spock/mcmap/mapdata.py:158:1: W191 indentation contains tabs
hardness = 0.6
^
spock/mcmap/mapdata.py:159:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:161:1: E302 expected 2 blank lines, found 1
@map_block(3)
^
spock/mcmap/mapdata.py:163:1: W191 indentation contains tabs
display_name = 'Dirt'
^
spock/mcmap/mapdata.py:164:1: W191 indentation contains tabs
name = 'dirt'
^
spock/mcmap/mapdata.py:165:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:166:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:168:1: E302 expected 2 blank lines, found 1
@map_block(4)
^
spock/mcmap/mapdata.py:170:1: W191 indentation contains tabs
display_name = 'Cobblestone'
^
spock/mcmap/mapdata.py:171:1: W191 indentation contains tabs
name = 'stonebrick'
^
spock/mcmap/mapdata.py:172:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:173:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:174:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:176:1: E302 expected 2 blank lines, found 1
@map_block(5)
^
spock/mcmap/mapdata.py:178:1: W191 indentation contains tabs
display_name = 'Wooden Planks'
^
spock/mcmap/mapdata.py:179:1: W191 indentation contains tabs
name = 'wood'
^
spock/mcmap/mapdata.py:180:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:181:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:183:1: E302 expected 2 blank lines, found 1
@map_block(6)
^
spock/mcmap/mapdata.py:185:1: W191 indentation contains tabs
display_name = 'Sapling'
^
spock/mcmap/mapdata.py:186:1: W191 indentation contains tabs
name = 'sapling'
^
spock/mcmap/mapdata.py:188:1: E302 expected 2 blank lines, found 1
@map_block(7)
^
spock/mcmap/mapdata.py:190:1: W191 indentation contains tabs
display_name = 'Bedrock'
^
spock/mcmap/mapdata.py:191:1: W191 indentation contains tabs
name = 'bedrock'
^
spock/mcmap/mapdata.py:192:1: W191 indentation contains tabs
hardness = None
^
spock/mcmap/mapdata.py:193:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:195:1: E302 expected 2 blank lines, found 1
@map_block(8)
^
spock/mcmap/mapdata.py:197:1: W191 indentation contains tabs
display_name = 'Water'
^
spock/mcmap/mapdata.py:198:1: W191 indentation contains tabs
name = 'water'
^
spock/mcmap/mapdata.py:199:1: W191 indentation contains tabs
hardness = 100
^
spock/mcmap/mapdata.py:200:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:202:1: E302 expected 2 blank lines, found 1
@map_block(9)
^
spock/mcmap/mapdata.py:204:1: W191 indentation contains tabs
display_name = 'Stationary Water'
^
spock/mcmap/mapdata.py:205:1: W191 indentation contains tabs
name = 'waterStationary'
^
spock/mcmap/mapdata.py:206:1: W191 indentation contains tabs
hardness = 100
^
spock/mcmap/mapdata.py:207:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:209:1: E302 expected 2 blank lines, found 1
@map_block(10)
^
spock/mcmap/mapdata.py:211:1: W191 indentation contains tabs
display_name = 'Lava'
^
spock/mcmap/mapdata.py:212:1: W191 indentation contains tabs
name = 'lava'
^
spock/mcmap/mapdata.py:213:1: W191 indentation contains tabs
hardness = 100
^
spock/mcmap/mapdata.py:214:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:216:1: E302 expected 2 blank lines, found 1
@map_block(11)
^
spock/mcmap/mapdata.py:218:1: W191 indentation contains tabs
display_name = 'Stationary Lava'
^
spock/mcmap/mapdata.py:219:1: W191 indentation contains tabs
name = 'lavaStationary'
^
spock/mcmap/mapdata.py:220:1: W191 indentation contains tabs
hardness = 100
^
spock/mcmap/mapdata.py:221:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:223:1: E302 expected 2 blank lines, found 1
@map_block(12)
^
spock/mcmap/mapdata.py:225:1: W191 indentation contains tabs
display_name = 'Sand'
^
spock/mcmap/mapdata.py:226:1: W191 indentation contains tabs
name = 'sand'
^
spock/mcmap/mapdata.py:227:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:228:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:230:1: E302 expected 2 blank lines, found 1
@map_block(13)
^
spock/mcmap/mapdata.py:232:1: W191 indentation contains tabs
display_name = 'Gravel'
^
spock/mcmap/mapdata.py:233:1: W191 indentation contains tabs
name = 'gravel'
^
spock/mcmap/mapdata.py:234:1: W191 indentation contains tabs
hardness = 0.6
^
spock/mcmap/mapdata.py:235:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:237:1: E302 expected 2 blank lines, found 1
@map_block(14)
^
spock/mcmap/mapdata.py:239:1: W191 indentation contains tabs
display_name = 'Gold Ore'
^
spock/mcmap/mapdata.py:240:1: W191 indentation contains tabs
name = 'oreGold'
^
spock/mcmap/mapdata.py:241:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:242:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:243:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:245:1: E302 expected 2 blank lines, found 1
@map_block(15)
^
spock/mcmap/mapdata.py:247:1: W191 indentation contains tabs
display_name = 'Iron Ore'
^
spock/mcmap/mapdata.py:248:1: W191 indentation contains tabs
name = 'oreIron'
^
spock/mcmap/mapdata.py:249:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:250:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:251:1: W191 indentation contains tabs
harvest_tools = (274, 257, 278)
^
spock/mcmap/mapdata.py:253:1: E302 expected 2 blank lines, found 1
@map_block(16)
^
spock/mcmap/mapdata.py:255:1: W191 indentation contains tabs
display_name = 'Coal Ore'
^
spock/mcmap/mapdata.py:256:1: W191 indentation contains tabs
name = 'oreCoal'
^
spock/mcmap/mapdata.py:257:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:258:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:259:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:261:1: E302 expected 2 blank lines, found 1
@map_block(17)
^
spock/mcmap/mapdata.py:263:1: W191 indentation contains tabs
display_name = 'Wood'
^
spock/mcmap/mapdata.py:264:1: W191 indentation contains tabs
name = 'log'
^
spock/mcmap/mapdata.py:265:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:266:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:268:1: E302 expected 2 blank lines, found 1
@map_block(18)
^
spock/mcmap/mapdata.py:270:1: W191 indentation contains tabs
display_name = 'Leaves'
^
spock/mcmap/mapdata.py:271:1: W191 indentation contains tabs
name = 'leaves'
^
spock/mcmap/mapdata.py:272:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:273:1: W191 indentation contains tabs
material = MCM_MAT_LEAVES
^
spock/mcmap/mapdata.py:275:1: E302 expected 2 blank lines, found 1
@map_block(19)
^
spock/mcmap/mapdata.py:277:1: W191 indentation contains tabs
display_name = 'Sponge'
^
spock/mcmap/mapdata.py:278:1: W191 indentation contains tabs
name = 'sponge'
^
spock/mcmap/mapdata.py:279:1: W191 indentation contains tabs
hardness = 0.6
^
spock/mcmap/mapdata.py:281:1: E302 expected 2 blank lines, found 1
@map_block(20)
^
spock/mcmap/mapdata.py:283:1: W191 indentation contains tabs
display_name = 'Glass'
^
spock/mcmap/mapdata.py:284:1: W191 indentation contains tabs
name = 'glass'
^
spock/mcmap/mapdata.py:285:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:287:1: E302 expected 2 blank lines, found 1
@map_block(21)
^
spock/mcmap/mapdata.py:289:1: W191 indentation contains tabs
display_name = 'Lapis Lazuli Ore'
^
spock/mcmap/mapdata.py:290:1: W191 indentation contains tabs
name = 'oreLapis'
^
spock/mcmap/mapdata.py:291:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:292:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:293:1: W191 indentation contains tabs
harvest_tools = (274, 257, 278)
^
spock/mcmap/mapdata.py:295:1: E302 expected 2 blank lines, found 1
@map_block(22)
^
spock/mcmap/mapdata.py:297:1: W191 indentation contains tabs
display_name = 'Lapis Lazuli Block'
^
spock/mcmap/mapdata.py:298:1: W191 indentation contains tabs
name = 'blockLapis'
^
spock/mcmap/mapdata.py:299:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:300:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:301:1: W191 indentation contains tabs
harvest_tools = (274, 257, 278)
^
spock/mcmap/mapdata.py:303:1: E302 expected 2 blank lines, found 1
@map_block(23)
^
spock/mcmap/mapdata.py:305:1: W191 indentation contains tabs
display_name = 'Dispenser'
^
spock/mcmap/mapdata.py:306:1: W191 indentation contains tabs
name = 'dispenser'
^
spock/mcmap/mapdata.py:307:1: W191 indentation contains tabs
hardness = 3.5
^
spock/mcmap/mapdata.py:308:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:309:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:311:1: E302 expected 2 blank lines, found 1
@map_block(24)
^
spock/mcmap/mapdata.py:313:1: W191 indentation contains tabs
display_name = 'Sandstone'
^
spock/mcmap/mapdata.py:314:1: W191 indentation contains tabs
name = 'sandStone'
^
spock/mcmap/mapdata.py:315:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:316:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:317:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:319:1: E302 expected 2 blank lines, found 1
@map_block(25)
^
spock/mcmap/mapdata.py:321:1: W191 indentation contains tabs
display_name = 'Note Block'
^
spock/mcmap/mapdata.py:322:1: W191 indentation contains tabs
name = 'musicBlock'
^
spock/mcmap/mapdata.py:323:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:324:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:326:1: E302 expected 2 blank lines, found 1
@map_block(26)
^
spock/mcmap/mapdata.py:328:1: W191 indentation contains tabs
display_name = 'Bed'
^
spock/mcmap/mapdata.py:329:1: W191 indentation contains tabs
name = 'bed'
^
spock/mcmap/mapdata.py:330:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:331:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:333:1: E302 expected 2 blank lines, found 1
@map_block(27)
^
spock/mcmap/mapdata.py:335:1: W191 indentation contains tabs
display_name = 'Powered Rail'
^
spock/mcmap/mapdata.py:336:1: W191 indentation contains tabs
name = 'goldenRail'
^
spock/mcmap/mapdata.py:337:1: W191 indentation contains tabs
hardness = 0.7
^
spock/mcmap/mapdata.py:338:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:340:1: E302 expected 2 blank lines, found 1
@map_block(28)
^
spock/mcmap/mapdata.py:342:1: W191 indentation contains tabs
display_name = 'Detector Rail'
^
spock/mcmap/mapdata.py:343:1: W191 indentation contains tabs
name = 'detectorRail'
^
spock/mcmap/mapdata.py:344:1: W191 indentation contains tabs
hardness = 0.7
^
spock/mcmap/mapdata.py:345:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:347:1: E302 expected 2 blank lines, found 1
@map_block(29)
^
spock/mcmap/mapdata.py:349:1: W191 indentation contains tabs
display_name = 'Sticky Piston'
^
spock/mcmap/mapdata.py:350:1: W191 indentation contains tabs
name = 'pistonStickyBase'
^
spock/mcmap/mapdata.py:352:1: E302 expected 2 blank lines, found 1
@map_block(30)
^
spock/mcmap/mapdata.py:354:1: W191 indentation contains tabs
display_name = 'Cobweb'
^
spock/mcmap/mapdata.py:355:1: W191 indentation contains tabs
name = 'web'
^
spock/mcmap/mapdata.py:356:1: W191 indentation contains tabs
hardness = 4
^
spock/mcmap/mapdata.py:357:1: W191 indentation contains tabs
material = MCM_MAT_WEB
^
spock/mcmap/mapdata.py:358:1: W191 indentation contains tabs
harvest_tools = (359, 267, 268, 272, 276, 283)
^
spock/mcmap/mapdata.py:360:1: E302 expected 2 blank lines, found 1
@map_block(31)
^
spock/mcmap/mapdata.py:362:1: W191 indentation contains tabs
display_name = 'Grass'
^
spock/mcmap/mapdata.py:363:1: W191 indentation contains tabs
name = 'tallgrass'
^
spock/mcmap/mapdata.py:365:1: E302 expected 2 blank lines, found 1
@map_block(32)
^
spock/mcmap/mapdata.py:367:1: W191 indentation contains tabs
display_name = 'Dead Bush'
^
spock/mcmap/mapdata.py:368:1: W191 indentation contains tabs
name = 'deadbush'
^
spock/mcmap/mapdata.py:370:1: E302 expected 2 blank lines, found 1
@map_block(33)
^
spock/mcmap/mapdata.py:372:1: W191 indentation contains tabs
display_name = 'Piston'
^
spock/mcmap/mapdata.py:373:1: W191 indentation contains tabs
name = 'pistonBase'
^
spock/mcmap/mapdata.py:375:1: E302 expected 2 blank lines, found 1
@map_block(34)
^
spock/mcmap/mapdata.py:377:1: W191 indentation contains tabs
display_name = 'Piston Extension'
^
spock/mcmap/mapdata.py:378:1: W191 indentation contains tabs
name = 'pistonExtension'
^
spock/mcmap/mapdata.py:380:1: E302 expected 2 blank lines, found 1
@map_block(35)
^
spock/mcmap/mapdata.py:382:1: W191 indentation contains tabs
display_name = 'Wool'
^
spock/mcmap/mapdata.py:383:1: W191 indentation contains tabs
name = 'cloth'
^
spock/mcmap/mapdata.py:384:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:385:1: W191 indentation contains tabs
material = MCM_MAT_WOOL
^
spock/mcmap/mapdata.py:387:1: E302 expected 2 blank lines, found 1
@map_block(36)
^
spock/mcmap/mapdata.py:389:1: W191 indentation contains tabs
display_name = 'Block Moved by Piston'
^
spock/mcmap/mapdata.py:390:1: W191 indentation contains tabs
name = 'blockMovedByPiston'
^
spock/mcmap/mapdata.py:392:1: E302 expected 2 blank lines, found 1
@map_block(37)
^
spock/mcmap/mapdata.py:394:1: W191 indentation contains tabs
display_name = 'Flower'
^
spock/mcmap/mapdata.py:395:1: W191 indentation contains tabs
name = 'flower'
^
spock/mcmap/mapdata.py:397:1: E302 expected 2 blank lines, found 1
@map_block(38)
^
spock/mcmap/mapdata.py:399:1: W191 indentation contains tabs
display_name = 'Rose'
^
spock/mcmap/mapdata.py:400:1: W191 indentation contains tabs
name = 'rose'
^
spock/mcmap/mapdata.py:402:1: E302 expected 2 blank lines, found 1
@map_block(39)
^
spock/mcmap/mapdata.py:404:1: W191 indentation contains tabs
display_name = 'Brown Mushroom'
^
spock/mcmap/mapdata.py:405:1: W191 indentation contains tabs
name = 'mushroomBrown'
^
spock/mcmap/mapdata.py:407:1: E302 expected 2 blank lines, found 1
@map_block(40)
^
spock/mcmap/mapdata.py:409:1: W191 indentation contains tabs
display_name = 'Red Mushroom'
^
spock/mcmap/mapdata.py:410:1: W191 indentation contains tabs
name = 'mushroomRed'
^
spock/mcmap/mapdata.py:412:1: E302 expected 2 blank lines, found 1
@map_block(41)
^
spock/mcmap/mapdata.py:414:1: W191 indentation contains tabs
display_name = 'Block of Gold'
^
spock/mcmap/mapdata.py:415:1: W191 indentation contains tabs
name = 'blockGold'
^
spock/mcmap/mapdata.py:416:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:417:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:418:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:420:1: E302 expected 2 blank lines, found 1
@map_block(42)
^
spock/mcmap/mapdata.py:422:1: W191 indentation contains tabs
display_name = 'Block of Iron'
^
spock/mcmap/mapdata.py:423:1: W191 indentation contains tabs
name = 'blockIron'
^
spock/mcmap/mapdata.py:424:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:425:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:426:1: W191 indentation contains tabs
harvest_tools = (274, 257, 278)
^
spock/mcmap/mapdata.py:428:1: E302 expected 2 blank lines, found 1
@map_block(43)
^
spock/mcmap/mapdata.py:430:1: W191 indentation contains tabs
display_name = 'Double Stone Slab'
^
spock/mcmap/mapdata.py:431:1: W191 indentation contains tabs
name = 'stoneSlabDouble'
^
spock/mcmap/mapdata.py:432:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:433:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:434:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:436:1: E302 expected 2 blank lines, found 1
@map_block(44)
^
spock/mcmap/mapdata.py:438:1: W191 indentation contains tabs
display_name = 'Stone Slab'
^
spock/mcmap/mapdata.py:439:1: W191 indentation contains tabs
name = 'stoneSlab'
^
spock/mcmap/mapdata.py:440:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:442:1: E302 expected 2 blank lines, found 1
@map_block(45)
^
spock/mcmap/mapdata.py:444:1: W191 indentation contains tabs
display_name = 'Bricks'
^
spock/mcmap/mapdata.py:445:1: W191 indentation contains tabs
name = 'brick'
^
spock/mcmap/mapdata.py:446:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:447:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:448:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:450:1: E302 expected 2 blank lines, found 1
@map_block(46)
^
spock/mcmap/mapdata.py:452:1: W191 indentation contains tabs
display_name = 'TNT'
^
spock/mcmap/mapdata.py:453:1: W191 indentation contains tabs
name = 'tnt'
^
spock/mcmap/mapdata.py:455:1: E302 expected 2 blank lines, found 1
@map_block(47)
^
spock/mcmap/mapdata.py:457:1: W191 indentation contains tabs
display_name = 'Bookshelf'
^
spock/mcmap/mapdata.py:458:1: W191 indentation contains tabs
name = 'bookshelf'
^
spock/mcmap/mapdata.py:459:1: W191 indentation contains tabs
hardness = 1.5
^
spock/mcmap/mapdata.py:460:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:462:1: E302 expected 2 blank lines, found 1
@map_block(48)
^
spock/mcmap/mapdata.py:464:1: W191 indentation contains tabs
display_name = 'Moss Stone'
^
spock/mcmap/mapdata.py:465:1: W191 indentation contains tabs
name = 'stoneMoss'
^
spock/mcmap/mapdata.py:466:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:467:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:468:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:470:1: E302 expected 2 blank lines, found 1
@map_block(49)
^
spock/mcmap/mapdata.py:472:1: W191 indentation contains tabs
display_name = 'Obsidian'
^
spock/mcmap/mapdata.py:473:1: W191 indentation contains tabs
name = 'obsidian'
^
spock/mcmap/mapdata.py:474:1: W191 indentation contains tabs
hardness = 50
^
spock/mcmap/mapdata.py:475:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:476:1: W191 indentation contains tabs
harvest_tools = (278,)
^
spock/mcmap/mapdata.py:478:1: E302 expected 2 blank lines, found 1
@map_block(50)
^
spock/mcmap/mapdata.py:480:1: W191 indentation contains tabs
display_name = 'Torch'
^
spock/mcmap/mapdata.py:481:1: W191 indentation contains tabs
name = 'torch'
^
spock/mcmap/mapdata.py:483:1: E302 expected 2 blank lines, found 1
@map_block(51)
^
spock/mcmap/mapdata.py:485:1: W191 indentation contains tabs
display_name = 'Fire'
^
spock/mcmap/mapdata.py:486:1: W191 indentation contains tabs
name = 'fire'
^
spock/mcmap/mapdata.py:488:1: E302 expected 2 blank lines, found 1
@map_block(52)
^
spock/mcmap/mapdata.py:490:1: W191 indentation contains tabs
display_name = 'Monster Spawner'
^
spock/mcmap/mapdata.py:491:1: W191 indentation contains tabs
name = 'mobSpawner'
^
spock/mcmap/mapdata.py:492:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:493:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:494:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:496:1: E302 expected 2 blank lines, found 1
@map_block(53)
^
spock/mcmap/mapdata.py:498:1: W191 indentation contains tabs
display_name = 'Wooden Stairs'
^
spock/mcmap/mapdata.py:499:1: W191 indentation contains tabs
name = 'stairsWood'
^
spock/mcmap/mapdata.py:500:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:502:1: E302 expected 2 blank lines, found 1
@map_block(54)
^
spock/mcmap/mapdata.py:504:1: W191 indentation contains tabs
display_name = 'Chest'
^
spock/mcmap/mapdata.py:505:1: W191 indentation contains tabs
name = 'chest'
^
spock/mcmap/mapdata.py:506:1: W191 indentation contains tabs
hardness = 2.5
^
spock/mcmap/mapdata.py:507:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:509:1: E302 expected 2 blank lines, found 1
@map_block(55)
^
spock/mcmap/mapdata.py:511:1: W191 indentation contains tabs
display_name = 'Redstone Dust'
^
spock/mcmap/mapdata.py:512:1: W191 indentation contains tabs
name = 'redstoneDust'
^
spock/mcmap/mapdata.py:514:1: E302 expected 2 blank lines, found 1
@map_block(56)
^
spock/mcmap/mapdata.py:516:1: W191 indentation contains tabs
display_name = 'Diamond Ore'
^
spock/mcmap/mapdata.py:517:1: W191 indentation contains tabs
name = 'oreDiamond'
^
spock/mcmap/mapdata.py:518:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:519:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:520:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:522:1: E302 expected 2 blank lines, found 1
@map_block(57)
^
spock/mcmap/mapdata.py:524:1: W191 indentation contains tabs
display_name = 'Block of Diamond'
^
spock/mcmap/mapdata.py:525:1: W191 indentation contains tabs
name = 'blockDiamond'
^
spock/mcmap/mapdata.py:526:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:527:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:528:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:530:1: E302 expected 2 blank lines, found 1
@map_block(58)
^
spock/mcmap/mapdata.py:532:1: W191 indentation contains tabs
display_name = 'Crafting Table'
^
spock/mcmap/mapdata.py:533:1: W191 indentation contains tabs
name = 'workbench'
^
spock/mcmap/mapdata.py:534:1: W191 indentation contains tabs
hardness = 2.5
^
spock/mcmap/mapdata.py:535:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:537:1: E302 expected 2 blank lines, found 1
@map_block(59)
^
spock/mcmap/mapdata.py:539:1: W191 indentation contains tabs
display_name = 'Wheat Crops'
^
spock/mcmap/mapdata.py:540:1: W191 indentation contains tabs
name = 'wheat'
^
spock/mcmap/mapdata.py:542:1: E302 expected 2 blank lines, found 1
@map_block(60)
^
spock/mcmap/mapdata.py:544:1: W191 indentation contains tabs
display_name = 'Farmland'
^
spock/mcmap/mapdata.py:545:1: W191 indentation contains tabs
name = 'farmland'
^
spock/mcmap/mapdata.py:546:1: W191 indentation contains tabs
hardness = 0.6
^
spock/mcmap/mapdata.py:547:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:549:1: E302 expected 2 blank lines, found 1
@map_block(61)
^
spock/mcmap/mapdata.py:551:1: W191 indentation contains tabs
display_name = 'Furnace'
^
spock/mcmap/mapdata.py:552:1: W191 indentation contains tabs
name = 'furnace'
^
spock/mcmap/mapdata.py:553:1: W191 indentation contains tabs
hardness = 3.5
^
spock/mcmap/mapdata.py:554:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:555:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:557:1: E302 expected 2 blank lines, found 1
@map_block(62)
^
spock/mcmap/mapdata.py:559:1: W191 indentation contains tabs
display_name = 'Burning Furnace'
^
spock/mcmap/mapdata.py:560:1: W191 indentation contains tabs
name = 'furnaceBurning'
^
spock/mcmap/mapdata.py:561:1: W191 indentation contains tabs
hardness = 3.5
^
spock/mcmap/mapdata.py:562:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:563:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:565:1: E302 expected 2 blank lines, found 1
@map_block(63)
^
spock/mcmap/mapdata.py:567:1: W191 indentation contains tabs
display_name = 'Sign Post'
^
spock/mcmap/mapdata.py:568:1: W191 indentation contains tabs
name = 'signPost'
^
spock/mcmap/mapdata.py:569:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:570:1: W191 indentation contains tabs
stack_size = 16
^
spock/mcmap/mapdata.py:571:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:573:1: E302 expected 2 blank lines, found 1
@map_block(64)
^
spock/mcmap/mapdata.py:575:1: W191 indentation contains tabs
display_name = 'Wooden Door'
^
spock/mcmap/mapdata.py:576:1: W191 indentation contains tabs
name = 'doorWood'
^
spock/mcmap/mapdata.py:577:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:578:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:579:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:581:1: E302 expected 2 blank lines, found 1
@map_block(65)
^
spock/mcmap/mapdata.py:583:1: W191 indentation contains tabs
display_name = 'Ladder'
^
spock/mcmap/mapdata.py:584:1: W191 indentation contains tabs
name = 'ladder'
^
spock/mcmap/mapdata.py:585:1: W191 indentation contains tabs
hardness = 0.4
^
spock/mcmap/mapdata.py:587:1: E302 expected 2 blank lines, found 1
@map_block(66)
^
spock/mcmap/mapdata.py:589:1: W191 indentation contains tabs
display_name = 'Rail'
^
spock/mcmap/mapdata.py:590:1: W191 indentation contains tabs
name = 'rail'
^
spock/mcmap/mapdata.py:591:1: W191 indentation contains tabs
hardness = 0.7
^
spock/mcmap/mapdata.py:592:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:594:1: E302 expected 2 blank lines, found 1
@map_block(67)
^
spock/mcmap/mapdata.py:596:1: W191 indentation contains tabs
display_name = 'Cobblestone Stairs'
^
spock/mcmap/mapdata.py:597:1: W191 indentation contains tabs
name = 'stairsStone'
^
spock/mcmap/mapdata.py:598:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:599:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:601:1: E302 expected 2 blank lines, found 1
@map_block(68)
^
spock/mcmap/mapdata.py:603:1: W191 indentation contains tabs
display_name = 'Wall Sign'
^
spock/mcmap/mapdata.py:604:1: W191 indentation contains tabs
name = 'signWall'
^
spock/mcmap/mapdata.py:605:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:606:1: W191 indentation contains tabs
stack_size = 16
^
spock/mcmap/mapdata.py:607:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:609:1: E302 expected 2 blank lines, found 1
@map_block(69)
^
spock/mcmap/mapdata.py:611:1: W191 indentation contains tabs
display_name = 'Lever'
^
spock/mcmap/mapdata.py:612:1: W191 indentation contains tabs
name = 'lever'
^
spock/mcmap/mapdata.py:613:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:615:1: E302 expected 2 blank lines, found 1
@map_block(70)
^
spock/mcmap/mapdata.py:617:1: W191 indentation contains tabs
display_name = 'Stone Pressure Plate'
^
spock/mcmap/mapdata.py:618:1: W191 indentation contains tabs
name = 'stonePressurePlate'
^
spock/mcmap/mapdata.py:619:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:620:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:621:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:623:1: E302 expected 2 blank lines, found 1
@map_block(71)
^
spock/mcmap/mapdata.py:625:1: W191 indentation contains tabs
display_name = 'Iron Door'
^
spock/mcmap/mapdata.py:626:1: W191 indentation contains tabs
name = 'doorIron'
^
spock/mcmap/mapdata.py:627:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:628:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:629:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:630:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:632:1: E302 expected 2 blank lines, found 1
@map_block(72)
^
spock/mcmap/mapdata.py:634:1: W191 indentation contains tabs
display_name = 'Wooden Pressure Plate'
^
spock/mcmap/mapdata.py:635:1: W191 indentation contains tabs
name = 'woodPressurePlate'
^
spock/mcmap/mapdata.py:636:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:637:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:639:1: E302 expected 2 blank lines, found 1
@map_block(73)
^
spock/mcmap/mapdata.py:641:1: W191 indentation contains tabs
display_name = 'Redstone Ore'
^
spock/mcmap/mapdata.py:642:1: W191 indentation contains tabs
name = 'oreRedstone'
^
spock/mcmap/mapdata.py:643:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:644:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:645:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:647:1: E302 expected 2 blank lines, found 1
@map_block(74)
^
spock/mcmap/mapdata.py:649:1: W191 indentation contains tabs
display_name = 'Glowing Redstone Ore'
^
spock/mcmap/mapdata.py:650:1: W191 indentation contains tabs
name = 'oreRedstoneGlowing'
^
spock/mcmap/mapdata.py:651:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:652:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:653:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:655:1: E302 expected 2 blank lines, found 1
@map_block(75)
^
spock/mcmap/mapdata.py:657:1: W191 indentation contains tabs
display_name = 'Redstone Torch (Inactive)'
^
spock/mcmap/mapdata.py:658:1: W191 indentation contains tabs
name = 'notGateInactive'
^
spock/mcmap/mapdata.py:660:1: E302 expected 2 blank lines, found 1
@map_block(76)
^
spock/mcmap/mapdata.py:662:1: W191 indentation contains tabs
display_name = 'Redstone Torch (Active)'
^
spock/mcmap/mapdata.py:663:1: W191 indentation contains tabs
name = 'notGateActive'
^
spock/mcmap/mapdata.py:665:1: E302 expected 2 blank lines, found 1
@map_block(77)
^
spock/mcmap/mapdata.py:667:1: W191 indentation contains tabs
display_name = 'Stone Button'
^
spock/mcmap/mapdata.py:668:1: W191 indentation contains tabs
name = 'buttonStone'
^
spock/mcmap/mapdata.py:669:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:671:1: E302 expected 2 blank lines, found 1
@map_block(78)
^
spock/mcmap/mapdata.py:673:1: W191 indentation contains tabs
display_name = 'Snow'
^
spock/mcmap/mapdata.py:674:1: W191 indentation contains tabs
name = 'snow'
^
spock/mcmap/mapdata.py:675:1: W191 indentation contains tabs
hardness = 0.1
^
spock/mcmap/mapdata.py:676:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:677:1: W191 indentation contains tabs
harvest_tools = (269, 273, 256, 277, 284)
^
spock/mcmap/mapdata.py:679:1: E302 expected 2 blank lines, found 1
@map_block(79)
^
spock/mcmap/mapdata.py:681:1: W191 indentation contains tabs
display_name = 'Ice'
^
spock/mcmap/mapdata.py:682:1: W191 indentation contains tabs
name = 'ice'
^
spock/mcmap/mapdata.py:683:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:684:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:686:1: E302 expected 2 blank lines, found 1
@map_block(80)
^
spock/mcmap/mapdata.py:688:1: W191 indentation contains tabs
display_name = 'Snow Block'
^
spock/mcmap/mapdata.py:689:1: W191 indentation contains tabs
name = 'snowBlock'
^
spock/mcmap/mapdata.py:690:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:691:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:692:1: W191 indentation contains tabs
harvest_tools = (269, 273, 256, 277, 284)
^
spock/mcmap/mapdata.py:694:1: E302 expected 2 blank lines, found 1
@map_block(81)
^
spock/mcmap/mapdata.py:696:1: W191 indentation contains tabs
display_name = 'Cactus'
^
spock/mcmap/mapdata.py:697:1: W191 indentation contains tabs
name = 'cactus'
^
spock/mcmap/mapdata.py:698:1: W191 indentation contains tabs
hardness = 0.4
^
spock/mcmap/mapdata.py:700:1: E302 expected 2 blank lines, found 1
@map_block(82)
^
spock/mcmap/mapdata.py:702:1: W191 indentation contains tabs
display_name = 'Clay'
^
spock/mcmap/mapdata.py:703:1: W191 indentation contains tabs
name = 'clay'
^
spock/mcmap/mapdata.py:704:1: W191 indentation contains tabs
hardness = 0.6
^
spock/mcmap/mapdata.py:705:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:707:1: E302 expected 2 blank lines, found 1
@map_block(83)
^
spock/mcmap/mapdata.py:709:1: W191 indentation contains tabs
display_name = 'Sugar cane'
^
spock/mcmap/mapdata.py:710:1: W191 indentation contains tabs
name = 'reeds'
^
spock/mcmap/mapdata.py:712:1: E302 expected 2 blank lines, found 1
@map_block(84)
^
spock/mcmap/mapdata.py:714:1: W191 indentation contains tabs
display_name = 'Jukebox'
^
spock/mcmap/mapdata.py:715:1: W191 indentation contains tabs
name = 'jukebox'
^
spock/mcmap/mapdata.py:716:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:717:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:719:1: E302 expected 2 blank lines, found 1
@map_block(85)
^
spock/mcmap/mapdata.py:721:1: W191 indentation contains tabs
display_name = 'Fence'
^
spock/mcmap/mapdata.py:722:1: W191 indentation contains tabs
name = 'fence'
^
spock/mcmap/mapdata.py:723:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:724:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:726:1: E302 expected 2 blank lines, found 1
@map_block(86)
^
spock/mcmap/mapdata.py:728:1: W191 indentation contains tabs
display_name = 'Pumpkin'
^
spock/mcmap/mapdata.py:729:1: W191 indentation contains tabs
name = 'pumpkin'
^
spock/mcmap/mapdata.py:730:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:731:1: W191 indentation contains tabs
material = 'plant'
^
spock/mcmap/mapdata.py:733:1: E302 expected 2 blank lines, found 1
@map_block(87)
^
spock/mcmap/mapdata.py:735:1: W191 indentation contains tabs
display_name = 'Netherrack'
^
spock/mcmap/mapdata.py:736:1: W191 indentation contains tabs
name = 'hellrock'
^
spock/mcmap/mapdata.py:737:1: W191 indentation contains tabs
hardness = 0.4
^
spock/mcmap/mapdata.py:738:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:739:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:741:1: E302 expected 2 blank lines, found 1
@map_block(88)
^
spock/mcmap/mapdata.py:743:1: W191 indentation contains tabs
display_name = 'Soul Sand'
^
spock/mcmap/mapdata.py:744:1: W191 indentation contains tabs
name = 'hellsand'
^
spock/mcmap/mapdata.py:745:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:746:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:748:1: E302 expected 2 blank lines, found 1
@map_block(89)
^
spock/mcmap/mapdata.py:750:1: W191 indentation contains tabs
display_name = 'Glowstone'
^
spock/mcmap/mapdata.py:751:1: W191 indentation contains tabs
name = 'lightgem'
^
spock/mcmap/mapdata.py:752:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:754:1: E302 expected 2 blank lines, found 1
@map_block(90)
^
spock/mcmap/mapdata.py:756:1: W191 indentation contains tabs
display_name = 'Portal'
^
spock/mcmap/mapdata.py:757:1: W191 indentation contains tabs
name = 'portal'
^
spock/mcmap/mapdata.py:758:1: W191 indentation contains tabs
hardness = None
^
spock/mcmap/mapdata.py:759:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:761:1: E302 expected 2 blank lines, found 1
@map_block(91)
^
spock/mcmap/mapdata.py:763:1: W191 indentation contains tabs
display_name = 'Jack \'o\' Lantern'
^
spock/mcmap/mapdata.py:764:1: W191 indentation contains tabs
name = 'litpumpkin'
^
spock/mcmap/mapdata.py:765:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:766:1: W191 indentation contains tabs
material = 'plant'
^
spock/mcmap/mapdata.py:768:1: E302 expected 2 blank lines, found 1
@map_block(92)
^
spock/mcmap/mapdata.py:770:1: W191 indentation contains tabs
display_name = 'Cake'
^
spock/mcmap/mapdata.py:771:1: W191 indentation contains tabs
name = 'cake'
^
spock/mcmap/mapdata.py:772:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:773:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:775:1: E302 expected 2 blank lines, found 1
@map_block(93)
^
spock/mcmap/mapdata.py:777:1: W191 indentation contains tabs
display_name = 'Redstone Repeater (Inactive)'
^
spock/mcmap/mapdata.py:778:1: W191 indentation contains tabs
name = 'redstoneRepeaterInactive'
^
spock/mcmap/mapdata.py:780:1: E302 expected 2 blank lines, found 1
@map_block(94)
^
spock/mcmap/mapdata.py:782:1: W191 indentation contains tabs
display_name = 'Redstone Repeater (Active)'
^
spock/mcmap/mapdata.py:783:1: W191 indentation contains tabs
name = 'redstoneRepeaterActive'
^
spock/mcmap/mapdata.py:785:1: E302 expected 2 blank lines, found 1
@map_block(95)
^
spock/mcmap/mapdata.py:787:1: W191 indentation contains tabs
display_name = 'Locked chest'
^
spock/mcmap/mapdata.py:788:1: W191 indentation contains tabs
name = 'lockedchest'
^
spock/mcmap/mapdata.py:790:1: E302 expected 2 blank lines, found 1
@map_block(96)
^
spock/mcmap/mapdata.py:792:1: W191 indentation contains tabs
display_name = 'Trapdoor'
^
spock/mcmap/mapdata.py:793:1: W191 indentation contains tabs
name = 'trapdoor'
^
spock/mcmap/mapdata.py:794:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:795:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:797:1: E302 expected 2 blank lines, found 1
@map_block(97)
^
spock/mcmap/mapdata.py:799:1: W191 indentation contains tabs
display_name = 'Monster Egg'
^
spock/mcmap/mapdata.py:800:1: W191 indentation contains tabs
name = 'monsterStoneEgg'
^
spock/mcmap/mapdata.py:801:1: W191 indentation contains tabs
hardness = 0.75
^
spock/mcmap/mapdata.py:803:1: E302 expected 2 blank lines, found 1
@map_block(98)
^
spock/mcmap/mapdata.py:805:1: W191 indentation contains tabs
display_name = 'Stone Brick'
^
spock/mcmap/mapdata.py:806:1: W191 indentation contains tabs
name = 'stonebricksmooth'
^
spock/mcmap/mapdata.py:807:1: W191 indentation contains tabs
hardness = 1.5
^
spock/mcmap/mapdata.py:808:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:809:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:811:1: E302 expected 2 blank lines, found 1
@map_block(99)
^
spock/mcmap/mapdata.py:813:1: W191 indentation contains tabs
display_name = 'Huge Brown Mushroom'
^
spock/mcmap/mapdata.py:814:1: W191 indentation contains tabs
name = 'mushroomHugeBrown'
^
spock/mcmap/mapdata.py:815:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:816:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:818:1: E302 expected 2 blank lines, found 1
@map_block(100)
^
spock/mcmap/mapdata.py:820:1: W191 indentation contains tabs
display_name = 'Huge Red Mushroom'
^
spock/mcmap/mapdata.py:821:1: W191 indentation contains tabs
name = 'mushroomHugeRed'
^
spock/mcmap/mapdata.py:822:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:823:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:825:1: E302 expected 2 blank lines, found 1
@map_block(101)
^
spock/mcmap/mapdata.py:827:1: W191 indentation contains tabs
display_name = 'Iron Bars'
^
spock/mcmap/mapdata.py:828:1: W191 indentation contains tabs
name = 'fenceIron'
^
spock/mcmap/mapdata.py:829:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:830:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:831:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:833:1: E302 expected 2 blank lines, found 1
@map_block(102)
^
spock/mcmap/mapdata.py:835:1: W191 indentation contains tabs
display_name = 'Glass Pane'
^
spock/mcmap/mapdata.py:836:1: W191 indentation contains tabs
name = 'glassPane'
^
spock/mcmap/mapdata.py:837:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:839:1: E302 expected 2 blank lines, found 1
@map_block(103)
^
spock/mcmap/mapdata.py:841:1: W191 indentation contains tabs
display_name = 'Melon'
^
spock/mcmap/mapdata.py:842:1: W191 indentation contains tabs
name = 'melon'
^
spock/mcmap/mapdata.py:843:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:844:1: W191 indentation contains tabs
material = 'melon'
^
spock/mcmap/mapdata.py:846:1: E302 expected 2 blank lines, found 1
@map_block(104)
^
spock/mcmap/mapdata.py:848:1: W191 indentation contains tabs
display_name = 'Pumpkin Stem'
^
spock/mcmap/mapdata.py:849:1: W191 indentation contains tabs
name = 'pumpkinStem'
^
spock/mcmap/mapdata.py:851:1: E302 expected 2 blank lines, found 1
@map_block(105)
^
spock/mcmap/mapdata.py:853:1: W191 indentation contains tabs
display_name = 'Melon Stem'
^
spock/mcmap/mapdata.py:854:1: W191 indentation contains tabs
name = 'melonStem'
^
spock/mcmap/mapdata.py:856:1: E302 expected 2 blank lines, found 1
@map_block(106)
^
spock/mcmap/mapdata.py:858:1: W191 indentation contains tabs
display_name = 'Vines'
^
spock/mcmap/mapdata.py:859:1: W191 indentation contains tabs
name = 'vine'
^
spock/mcmap/mapdata.py:860:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:861:1: W191 indentation contains tabs
material = MCM_MAT_VINE
^
spock/mcmap/mapdata.py:863:1: E302 expected 2 blank lines, found 1
@map_block(107)
^
spock/mcmap/mapdata.py:865:1: W191 indentation contains tabs
display_name = 'Fence Gate'
^
spock/mcmap/mapdata.py:866:1: W191 indentation contains tabs
name = 'fenceGate'
^
spock/mcmap/mapdata.py:867:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:868:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:870:1: E302 expected 2 blank lines, found 1
@map_block(108)
^
spock/mcmap/mapdata.py:872:1: W191 indentation contains tabs
display_name = 'Brick Stairs'
^
spock/mcmap/mapdata.py:873:1: W191 indentation contains tabs
name = 'stairsBrick'
^
spock/mcmap/mapdata.py:874:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:875:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:877:1: E302 expected 2 blank lines, found 1
@map_block(109)
^
spock/mcmap/mapdata.py:879:1: W191 indentation contains tabs
display_name = 'Stone Brick Stairs'
^
spock/mcmap/mapdata.py:880:1: W191 indentation contains tabs
name = 'stairsStoneBrickSmooth'
^
spock/mcmap/mapdata.py:881:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:882:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:884:1: E302 expected 2 blank lines, found 1
@map_block(110)
^
spock/mcmap/mapdata.py:886:1: W191 indentation contains tabs
display_name = 'Mycelium'
^
spock/mcmap/mapdata.py:887:1: W191 indentation contains tabs
name = 'mycel'
^
spock/mcmap/mapdata.py:888:1: W191 indentation contains tabs
hardness = 0.6
^
spock/mcmap/mapdata.py:889:1: W191 indentation contains tabs
material = MCM_MAT_DIRT
^
spock/mcmap/mapdata.py:891:1: E302 expected 2 blank lines, found 1
@map_block(111)
^
spock/mcmap/mapdata.py:893:1: W191 indentation contains tabs
display_name = 'Lily Pad'
^
spock/mcmap/mapdata.py:894:1: W191 indentation contains tabs
name = 'waterlily'
^
spock/mcmap/mapdata.py:895:1: W191 indentation contains tabs
def __init__(self, meta):
^
spock/mcmap/mapdata.py:895:2: E301 expected 1 blank line, found 0
def __init__(self, meta):
^
spock/mcmap/mapdata.py:896:1: W191 indentation contains tabs
self.bounding_box = BoundingBox(1,0.2,1)
^
spock/mcmap/mapdata.py:896:36: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,0.2,1)
^
spock/mcmap/mapdata.py:896:40: E231 missing whitespace after ','
self.bounding_box = BoundingBox(1,0.2,1)
^
spock/mcmap/mapdata.py:898:1: E302 expected 2 blank lines, found 1
@map_block(112)
^
spock/mcmap/mapdata.py:900:1: W191 indentation contains tabs
display_name = 'Nether Brick'
^
spock/mcmap/mapdata.py:901:1: W191 indentation contains tabs
name = 'netherBrick'
^
spock/mcmap/mapdata.py:902:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:903:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:904:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:906:1: E302 expected 2 blank lines, found 1
@map_block(113)
^
spock/mcmap/mapdata.py:908:1: W191 indentation contains tabs
display_name = 'Nether Brick Fence'
^
spock/mcmap/mapdata.py:909:1: W191 indentation contains tabs
name = 'netherFence'
^
spock/mcmap/mapdata.py:910:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:911:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:912:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:914:1: E302 expected 2 blank lines, found 1
@map_block(114)
^
spock/mcmap/mapdata.py:916:1: W191 indentation contains tabs
display_name = 'Nether Brick Stairs'
^
spock/mcmap/mapdata.py:917:1: W191 indentation contains tabs
name = 'stairsNetherBrick'
^
spock/mcmap/mapdata.py:918:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:919:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:921:1: E302 expected 2 blank lines, found 1
@map_block(115)
^
spock/mcmap/mapdata.py:923:1: W191 indentation contains tabs
display_name = 'Nether Wart'
^
spock/mcmap/mapdata.py:924:1: W191 indentation contains tabs
name = 'netherStalk'
^
spock/mcmap/mapdata.py:926:1: E302 expected 2 blank lines, found 1
@map_block(116)
^
spock/mcmap/mapdata.py:928:1: W191 indentation contains tabs
display_name = 'Enchantment Table'
^
spock/mcmap/mapdata.py:929:1: W191 indentation contains tabs
name = 'enchantmentTable'
^
spock/mcmap/mapdata.py:930:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:931:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:932:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:934:1: E302 expected 2 blank lines, found 1
@map_block(117)
^
spock/mcmap/mapdata.py:936:1: W191 indentation contains tabs
display_name = 'Brewing Stand'
^
spock/mcmap/mapdata.py:937:1: W191 indentation contains tabs
name = 'brewingStand'
^
spock/mcmap/mapdata.py:938:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:939:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:940:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:942:1: E302 expected 2 blank lines, found 1
@map_block(118)
^
spock/mcmap/mapdata.py:944:1: W191 indentation contains tabs
display_name = 'Cauldron'
^
spock/mcmap/mapdata.py:945:1: W191 indentation contains tabs
name = 'cauldron'
^
spock/mcmap/mapdata.py:946:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:947:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:948:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:950:1: E302 expected 2 blank lines, found 1
@map_block(119)
^
spock/mcmap/mapdata.py:952:1: W191 indentation contains tabs
display_name = 'End Portal'
^
spock/mcmap/mapdata.py:953:1: W191 indentation contains tabs
name = 'endPortal'
^
spock/mcmap/mapdata.py:954:1: W191 indentation contains tabs
hardness = None
^
spock/mcmap/mapdata.py:955:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:957:1: E302 expected 2 blank lines, found 1
@map_block(120)
^
spock/mcmap/mapdata.py:959:1: W191 indentation contains tabs
display_name = 'End Portal Frame'
^
spock/mcmap/mapdata.py:960:1: W191 indentation contains tabs
name = 'endPortalFrame'
^
spock/mcmap/mapdata.py:961:1: W191 indentation contains tabs
hardness = None
^
spock/mcmap/mapdata.py:962:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:964:1: E302 expected 2 blank lines, found 1
@map_block(121)
^
spock/mcmap/mapdata.py:966:1: W191 indentation contains tabs
display_name = 'End Stone'
^
spock/mcmap/mapdata.py:967:1: W191 indentation contains tabs
name = 'whiteStone'
^
spock/mcmap/mapdata.py:968:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:969:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:970:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:972:1: E302 expected 2 blank lines, found 1
@map_block(122)
^
spock/mcmap/mapdata.py:974:1: W191 indentation contains tabs
display_name = 'Dragon Egg'
^
spock/mcmap/mapdata.py:975:1: W191 indentation contains tabs
name = 'dragonEgg'
^
spock/mcmap/mapdata.py:976:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:978:1: E302 expected 2 blank lines, found 1
@map_block(123)
^
spock/mcmap/mapdata.py:980:1: W191 indentation contains tabs
display_name = 'Redstone Lamp (Inactive)'
^
spock/mcmap/mapdata.py:981:1: W191 indentation contains tabs
name = 'redstoneLightInactive'
^
spock/mcmap/mapdata.py:982:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:984:1: E302 expected 2 blank lines, found 1
@map_block(124)
^
spock/mcmap/mapdata.py:986:1: W191 indentation contains tabs
display_name = 'Redstone Lamp (Active)'
^
spock/mcmap/mapdata.py:987:1: W191 indentation contains tabs
name = 'redstoneLightActive'
^
spock/mcmap/mapdata.py:988:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:990:1: E302 expected 2 blank lines, found 1
@map_block(125)
^
spock/mcmap/mapdata.py:992:1: W191 indentation contains tabs
display_name = 'Wooden Double Slab'
^
spock/mcmap/mapdata.py:993:1: W191 indentation contains tabs
name = 'woodSlabDouble'
^
spock/mcmap/mapdata.py:994:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:995:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:997:1: E302 expected 2 blank lines, found 1
@map_block(126)
^
spock/mcmap/mapdata.py:999:1: W191 indentation contains tabs
display_name = 'Wooden Slab'
^
spock/mcmap/mapdata.py:1000:1: W191 indentation contains tabs
name = 'woodSlab'
^
spock/mcmap/mapdata.py:1001:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1003:1: E302 expected 2 blank lines, found 1
@map_block(127)
^
spock/mcmap/mapdata.py:1005:1: W191 indentation contains tabs
display_name = 'Cocoa Pod'
^
spock/mcmap/mapdata.py:1006:1: W191 indentation contains tabs
name = 'cocoa'
^
spock/mcmap/mapdata.py:1007:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:1008:1: W191 indentation contains tabs
material = 'plant'
^
spock/mcmap/mapdata.py:1010:1: E302 expected 2 blank lines, found 1
@map_block(128)
^
spock/mcmap/mapdata.py:1012:1: W191 indentation contains tabs
display_name = 'Sandstone Stairs'
^
spock/mcmap/mapdata.py:1013:1: W191 indentation contains tabs
name = 'stairsSandStone'
^
spock/mcmap/mapdata.py:1014:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1015:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1016:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1018:1: E302 expected 2 blank lines, found 1
@map_block(129)
^
spock/mcmap/mapdata.py:1020:1: W191 indentation contains tabs
display_name = 'Emerald Ore'
^
spock/mcmap/mapdata.py:1021:1: W191 indentation contains tabs
name = 'oreEmerald'
^
spock/mcmap/mapdata.py:1022:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1023:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1024:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:1026:1: E302 expected 2 blank lines, found 1
@map_block(130)
^
spock/mcmap/mapdata.py:1028:1: W191 indentation contains tabs
display_name = 'Ender Chest'
^
spock/mcmap/mapdata.py:1029:1: W191 indentation contains tabs
name = 'enderChest'
^
spock/mcmap/mapdata.py:1030:1: W191 indentation contains tabs
hardness = 22.5
^
spock/mcmap/mapdata.py:1031:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1032:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1034:1: E302 expected 2 blank lines, found 1
@map_block(131)
^
spock/mcmap/mapdata.py:1036:1: W191 indentation contains tabs
display_name = 'Tripwire Hook'
^
spock/mcmap/mapdata.py:1037:1: W191 indentation contains tabs
name = 'tripWireSource'
^
spock/mcmap/mapdata.py:1039:1: E302 expected 2 blank lines, found 1
@map_block(132)
^
spock/mcmap/mapdata.py:1041:1: W191 indentation contains tabs
display_name = 'Tripwire'
^
spock/mcmap/mapdata.py:1042:1: W191 indentation contains tabs
name = 'tripWire'
^
spock/mcmap/mapdata.py:1044:1: E302 expected 2 blank lines, found 1
@map_block(133)
^
spock/mcmap/mapdata.py:1046:1: W191 indentation contains tabs
display_name = 'Block of Emerald'
^
spock/mcmap/mapdata.py:1047:1: W191 indentation contains tabs
name = 'blockEmerald'
^
spock/mcmap/mapdata.py:1048:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:1049:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1050:1: W191 indentation contains tabs
harvest_tools = (257, 278)
^
spock/mcmap/mapdata.py:1052:1: E302 expected 2 blank lines, found 1
@map_block(134)
^
spock/mcmap/mapdata.py:1054:1: W191 indentation contains tabs
display_name = 'Spruce Wood Stairs'
^
spock/mcmap/mapdata.py:1055:1: W191 indentation contains tabs
name = 'stairsWoodSpruce'
^
spock/mcmap/mapdata.py:1057:1: E302 expected 2 blank lines, found 1
@map_block(135)
^
spock/mcmap/mapdata.py:1059:1: W191 indentation contains tabs
display_name = 'Birch Wood Stairs'
^
spock/mcmap/mapdata.py:1060:1: W191 indentation contains tabs
name = 'stairsWoodBirch'
^
spock/mcmap/mapdata.py:1062:1: E302 expected 2 blank lines, found 1
@map_block(136)
^
spock/mcmap/mapdata.py:1064:1: W191 indentation contains tabs
display_name = 'Jungle Wood Stairs'
^
spock/mcmap/mapdata.py:1065:1: W191 indentation contains tabs
name = 'stairsWoodJungle'
^
spock/mcmap/mapdata.py:1067:1: E302 expected 2 blank lines, found 1
@map_block(137)
^
spock/mcmap/mapdata.py:1069:1: W191 indentation contains tabs
display_name = 'Command Block'
^
spock/mcmap/mapdata.py:1070:1: W191 indentation contains tabs
name = 'commandBlock'
^
spock/mcmap/mapdata.py:1071:1: W191 indentation contains tabs
hardness = None
^
spock/mcmap/mapdata.py:1072:1: W191 indentation contains tabs
diggable = False
^
spock/mcmap/mapdata.py:1073:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1074:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1076:1: E302 expected 2 blank lines, found 1
@map_block(138)
^
spock/mcmap/mapdata.py:1078:1: W191 indentation contains tabs
display_name = 'Beacon'
^
spock/mcmap/mapdata.py:1079:1: W191 indentation contains tabs
name = 'beacon'
^
spock/mcmap/mapdata.py:1080:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1082:1: E302 expected 2 blank lines, found 1
@map_block(139)
^
spock/mcmap/mapdata.py:1084:1: W191 indentation contains tabs
display_name = 'Cobblestone Wall'
^
spock/mcmap/mapdata.py:1085:1: W191 indentation contains tabs
name = 'cobbleWall'
^
spock/mcmap/mapdata.py:1086:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1087:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1089:1: E302 expected 2 blank lines, found 1
@map_block(140)
^
spock/mcmap/mapdata.py:1091:1: W191 indentation contains tabs
display_name = 'Flower Pot'
^
spock/mcmap/mapdata.py:1092:1: W191 indentation contains tabs
name = 'flowerPot'
^
spock/mcmap/mapdata.py:1094:1: E302 expected 2 blank lines, found 1
@map_block(141)
^
spock/mcmap/mapdata.py:1096:1: W191 indentation contains tabs
display_name = 'Carrots'
^
spock/mcmap/mapdata.py:1097:1: W191 indentation contains tabs
name = 'carrots'
^
spock/mcmap/mapdata.py:1099:1: E302 expected 2 blank lines, found 1
@map_block(142)
^
spock/mcmap/mapdata.py:1101:1: W191 indentation contains tabs
display_name = 'Potatoes'
^
spock/mcmap/mapdata.py:1102:1: W191 indentation contains tabs
name = 'potatoes'
^
spock/mcmap/mapdata.py:1104:1: E302 expected 2 blank lines, found 1
@map_block(143)
^
spock/mcmap/mapdata.py:1106:1: W191 indentation contains tabs
display_name = 'Wooden Button'
^
spock/mcmap/mapdata.py:1107:1: W191 indentation contains tabs
name = 'buttonWood'
^
spock/mcmap/mapdata.py:1108:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:1110:1: E302 expected 2 blank lines, found 1
@map_block(144)
^
spock/mcmap/mapdata.py:1112:1: W191 indentation contains tabs
display_name = 'Mob Head'
^
spock/mcmap/mapdata.py:1113:1: W191 indentation contains tabs
name = 'skull'
^
spock/mcmap/mapdata.py:1114:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:1116:1: E302 expected 2 blank lines, found 1
@map_block(145)
^
spock/mcmap/mapdata.py:1118:1: W191 indentation contains tabs
display_name = 'Anvil'
^
spock/mcmap/mapdata.py:1119:1: W191 indentation contains tabs
name = 'anvil'
^
spock/mcmap/mapdata.py:1120:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:1121:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1122:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1124:1: E302 expected 2 blank lines, found 1
@map_block(146)
^
spock/mcmap/mapdata.py:1126:1: W191 indentation contains tabs
display_name = 'Trapped Chest'
^
spock/mcmap/mapdata.py:1127:1: W191 indentation contains tabs
name = 'trappedChest'
^
spock/mcmap/mapdata.py:1128:1: W191 indentation contains tabs
hardness = 2.5
^
spock/mcmap/mapdata.py:1129:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1131:1: E302 expected 2 blank lines, found 1
@map_block(147)
^
spock/mcmap/mapdata.py:1133:1: W191 indentation contains tabs
display_name = 'Weighted Pressure plate (Light)'
^
spock/mcmap/mapdata.py:1134:1: W191 indentation contains tabs
name = 'pressurePlateWeightedLight'
^
spock/mcmap/mapdata.py:1135:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:1136:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1137:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1139:1: E302 expected 2 blank lines, found 1
@map_block(148)
^
spock/mcmap/mapdata.py:1141:1: W191 indentation contains tabs
display_name = 'Weighted Pressure plate (Heavy)'
^
spock/mcmap/mapdata.py:1142:1: W191 indentation contains tabs
name = 'pressurePlateWeightedHeavy'
^
spock/mcmap/mapdata.py:1143:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:1144:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1145:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1147:1: E302 expected 2 blank lines, found 1
@map_block(149)
^
spock/mcmap/mapdata.py:1149:1: W191 indentation contains tabs
display_name = 'Redstone Comparator (Inactive)'
^
spock/mcmap/mapdata.py:1150:1: W191 indentation contains tabs
name = 'redstoneComparatorInactive'
^
spock/mcmap/mapdata.py:1152:1: E302 expected 2 blank lines, found 1
@map_block(150)
^
spock/mcmap/mapdata.py:1154:1: W191 indentation contains tabs
display_name = 'Redstone Comparator (Active)'
^
spock/mcmap/mapdata.py:1155:1: W191 indentation contains tabs
name = 'redstoneComparatorActive'
^
spock/mcmap/mapdata.py:1157:1: E302 expected 2 blank lines, found 1
@map_block(151)
^
spock/mcmap/mapdata.py:1159:1: W191 indentation contains tabs
display_name = 'Daylight Sensor'
^
spock/mcmap/mapdata.py:1160:1: W191 indentation contains tabs
name = 'daylightSensor'
^
spock/mcmap/mapdata.py:1161:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:1162:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1164:1: E302 expected 2 blank lines, found 1
@map_block(152)
^
spock/mcmap/mapdata.py:1166:1: W191 indentation contains tabs
display_name = 'Block of Redstone'
^
spock/mcmap/mapdata.py:1167:1: W191 indentation contains tabs
name = 'redstoneBlock'
^
spock/mcmap/mapdata.py:1168:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:1169:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1170:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1172:1: E302 expected 2 blank lines, found 1
@map_block(153)
^
spock/mcmap/mapdata.py:1174:1: W191 indentation contains tabs
display_name = 'Nether Quartz Ore'
^
spock/mcmap/mapdata.py:1175:1: W191 indentation contains tabs
name = 'netherQuartzOre'
^
spock/mcmap/mapdata.py:1176:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1177:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1178:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1180:1: E302 expected 2 blank lines, found 1
@map_block(154)
^
spock/mcmap/mapdata.py:1182:1: W191 indentation contains tabs
display_name = 'Hopper'
^
spock/mcmap/mapdata.py:1183:1: W191 indentation contains tabs
name = 'hopper'
^
spock/mcmap/mapdata.py:1184:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1185:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1186:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1188:1: E302 expected 2 blank lines, found 1
@map_block(155)
^
spock/mcmap/mapdata.py:1190:1: W191 indentation contains tabs
display_name = 'Block of Quartz'
^
spock/mcmap/mapdata.py:1191:1: W191 indentation contains tabs
name = 'quartzBlock'
^
spock/mcmap/mapdata.py:1192:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1193:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1194:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1196:1: E302 expected 2 blank lines, found 1
@map_block(156)
^
spock/mcmap/mapdata.py:1198:1: W191 indentation contains tabs
display_name = 'Quartz Stairs'
^
spock/mcmap/mapdata.py:1199:1: W191 indentation contains tabs
name = 'quartzStairs'
^
spock/mcmap/mapdata.py:1200:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1201:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1202:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1204:1: E302 expected 2 blank lines, found 1
@map_block(157)
^
spock/mcmap/mapdata.py:1206:1: W191 indentation contains tabs
display_name = 'Activator Rail'
^
spock/mcmap/mapdata.py:1207:1: W191 indentation contains tabs
name = 'activatorRail'
^
spock/mcmap/mapdata.py:1208:1: W191 indentation contains tabs
hardness = 0.7
^
spock/mcmap/mapdata.py:1209:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1211:1: E302 expected 2 blank lines, found 1
@map_block(158)
^
spock/mcmap/mapdata.py:1213:1: W191 indentation contains tabs
display_name = 'Dropper'
^
spock/mcmap/mapdata.py:1214:1: W191 indentation contains tabs
name = 'dropper'
^
spock/mcmap/mapdata.py:1215:1: W191 indentation contains tabs
hardness = 3.5
^
spock/mcmap/mapdata.py:1216:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1217:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1219:1: E302 expected 2 blank lines, found 1
@map_block(159)
^
spock/mcmap/mapdata.py:1221:1: W191 indentation contains tabs
display_name = 'Stained Clay'
^
spock/mcmap/mapdata.py:1222:1: W191 indentation contains tabs
name = 'stainedClay'
^
spock/mcmap/mapdata.py:1223:1: W191 indentation contains tabs
hardness = 1.25
^
spock/mcmap/mapdata.py:1224:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1225:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1227:1: E302 expected 2 blank lines, found 1
@map_block(160)
^
spock/mcmap/mapdata.py:1229:1: W191 indentation contains tabs
display_name = 'Stained Glass Pane'
^
spock/mcmap/mapdata.py:1230:1: W191 indentation contains tabs
name = 'stainedGlassPane'
^
spock/mcmap/mapdata.py:1231:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:1232:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1233:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1235:1: E302 expected 2 blank lines, found 1
@map_block(161)
^
spock/mcmap/mapdata.py:1237:1: W191 indentation contains tabs
display_name = 'Acacia Leaves'
^
spock/mcmap/mapdata.py:1238:1: W191 indentation contains tabs
name = 'acaciaLeaves'
^
spock/mcmap/mapdata.py:1239:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:1240:1: W191 indentation contains tabs
material = MCM_MAT_LEAVES
^
spock/mcmap/mapdata.py:1242:1: E302 expected 2 blank lines, found 1
@map_block(162)
^
spock/mcmap/mapdata.py:1244:1: W191 indentation contains tabs
display_name = 'Acacia Wood'
^
spock/mcmap/mapdata.py:1245:1: W191 indentation contains tabs
name = 'acaciaWood'
^
spock/mcmap/mapdata.py:1246:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1247:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1248:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1250:1: E302 expected 2 blank lines, found 1
@map_block(163)
^
spock/mcmap/mapdata.py:1252:1: W191 indentation contains tabs
display_name = 'Acacia Stairs'
^
spock/mcmap/mapdata.py:1253:1: W191 indentation contains tabs
name = 'acaciaStairs'
^
spock/mcmap/mapdata.py:1254:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1255:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1256:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1258:1: E302 expected 2 blank lines, found 1
@map_block(164)
^
spock/mcmap/mapdata.py:1260:1: W191 indentation contains tabs
display_name = 'Dark Oak Stairs'
^
spock/mcmap/mapdata.py:1261:1: W191 indentation contains tabs
name = 'darkoakStairs'
^
spock/mcmap/mapdata.py:1262:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1263:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1264:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1266:1: E302 expected 2 blank lines, found 1
@map_block(165)
^
spock/mcmap/mapdata.py:1268:1: W191 indentation contains tabs
display_name = 'Slime'
^
spock/mcmap/mapdata.py:1269:1: W191 indentation contains tabs
name = 'slime'
^
spock/mcmap/mapdata.py:1270:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1271:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1273:1: E302 expected 2 blank lines, found 1
@map_block(166)
^
spock/mcmap/mapdata.py:1275:1: W191 indentation contains tabs
display_name = 'Barrier'
^
spock/mcmap/mapdata.py:1276:1: W191 indentation contains tabs
name = 'barrier'
^
spock/mcmap/mapdata.py:1277:1: W191 indentation contains tabs
hardness = None
^
spock/mcmap/mapdata.py:1278:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1279:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1281:1: E302 expected 2 blank lines, found 1
@map_block(167)
^
spock/mcmap/mapdata.py:1283:1: W191 indentation contains tabs
display_name = 'Iron Trapdoor'
^
spock/mcmap/mapdata.py:1284:1: W191 indentation contains tabs
name = 'ironTrapdoor'
^
spock/mcmap/mapdata.py:1285:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1286:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1287:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1289:1: E302 expected 2 blank lines, found 1
@map_block(168)
^
spock/mcmap/mapdata.py:1291:1: W191 indentation contains tabs
display_name = 'Prismarine'
^
spock/mcmap/mapdata.py:1292:1: W191 indentation contains tabs
name = 'prismarine'
^
spock/mcmap/mapdata.py:1293:1: W191 indentation contains tabs
hardness = 1.5
^
spock/mcmap/mapdata.py:1294:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1295:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1297:1: E302 expected 2 blank lines, found 1
@map_block(169)
^
spock/mcmap/mapdata.py:1299:1: W191 indentation contains tabs
display_name = 'Sea Lantern'
^
spock/mcmap/mapdata.py:1300:1: W191 indentation contains tabs
name = 'seaLantern'
^
spock/mcmap/mapdata.py:1301:1: W191 indentation contains tabs
hardness = 0.3
^
spock/mcmap/mapdata.py:1302:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1304:1: E302 expected 2 blank lines, found 1
@map_block(170)
^
spock/mcmap/mapdata.py:1306:1: W191 indentation contains tabs
display_name = 'Hay Bale'
^
spock/mcmap/mapdata.py:1307:1: W191 indentation contains tabs
name = 'haybale'
^
spock/mcmap/mapdata.py:1308:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:1309:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1311:1: E302 expected 2 blank lines, found 1
@map_block(171)
^
spock/mcmap/mapdata.py:1313:1: W191 indentation contains tabs
display_name = 'Carpet'
^
spock/mcmap/mapdata.py:1314:1: W191 indentation contains tabs
name = 'carpet'
^
spock/mcmap/mapdata.py:1315:1: W191 indentation contains tabs
material = MCM_MAT_WOOL
^
spock/mcmap/mapdata.py:1317:1: E302 expected 2 blank lines, found 1
@map_block(172)
^
spock/mcmap/mapdata.py:1319:1: W191 indentation contains tabs
display_name = 'Hardened Clay'
^
spock/mcmap/mapdata.py:1320:1: W191 indentation contains tabs
name = 'hardenedClay'
^
spock/mcmap/mapdata.py:1321:1: W191 indentation contains tabs
hardness = 1.25
^
spock/mcmap/mapdata.py:1322:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1323:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1325:1: E302 expected 2 blank lines, found 1
@map_block(173)
^
spock/mcmap/mapdata.py:1327:1: W191 indentation contains tabs
display_name = 'Coal'
^
spock/mcmap/mapdata.py:1328:1: W191 indentation contains tabs
name = 'coal'
^
spock/mcmap/mapdata.py:1329:1: W191 indentation contains tabs
hardness = 5
^
spock/mcmap/mapdata.py:1330:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1331:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1333:1: E302 expected 2 blank lines, found 1
@map_block(174)
^
spock/mcmap/mapdata.py:1335:1: W191 indentation contains tabs
display_name = 'Packed Ice'
^
spock/mcmap/mapdata.py:1336:1: W191 indentation contains tabs
name = 'packedIce'
^
spock/mcmap/mapdata.py:1337:1: W191 indentation contains tabs
hardness = 0.5
^
spock/mcmap/mapdata.py:1338:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1340:1: E302 expected 2 blank lines, found 1
@map_block(175)
^
spock/mcmap/mapdata.py:1342:1: W191 indentation contains tabs
display_name = 'Sunflower'
^
spock/mcmap/mapdata.py:1343:1: W191 indentation contains tabs
name = 'sunflower'
^
spock/mcmap/mapdata.py:1344:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1346:1: E302 expected 2 blank lines, found 1
@map_block(176)
^
spock/mcmap/mapdata.py:1348:1: W191 indentation contains tabs
display_name = 'Free Standing Banner'
^
spock/mcmap/mapdata.py:1349:1: W191 indentation contains tabs
name = 'bannerFree'
^
spock/mcmap/mapdata.py:1350:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:1351:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1352:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1354:1: E302 expected 2 blank lines, found 1
@map_block(177)
^
spock/mcmap/mapdata.py:1356:1: W191 indentation contains tabs
display_name = 'Wall Mounted Banner'
^
spock/mcmap/mapdata.py:1357:1: W191 indentation contains tabs
name = 'bannerWall'
^
spock/mcmap/mapdata.py:1358:1: W191 indentation contains tabs
hardness = 1
^
spock/mcmap/mapdata.py:1359:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1360:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1362:1: E302 expected 2 blank lines, found 1
@map_block(178)
^
spock/mcmap/mapdata.py:1364:1: W191 indentation contains tabs
display_name = 'Inverted Daylight Sensor'
^
spock/mcmap/mapdata.py:1365:1: W191 indentation contains tabs
name = 'daylightSensorInverted'
^
spock/mcmap/mapdata.py:1366:1: W191 indentation contains tabs
hardness = 0.2
^
spock/mcmap/mapdata.py:1367:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1369:1: E302 expected 2 blank lines, found 1
@map_block(179)
^
spock/mcmap/mapdata.py:1371:1: W191 indentation contains tabs
display_name = 'Red Sandstone'
^
spock/mcmap/mapdata.py:1372:1: W191 indentation contains tabs
name = 'redSandstone'
^
spock/mcmap/mapdata.py:1373:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1374:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1375:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1377:1: E302 expected 2 blank lines, found 1
@map_block(180)
^
spock/mcmap/mapdata.py:1379:1: W191 indentation contains tabs
display_name = 'Red Sandstone Stairs'
^
spock/mcmap/mapdata.py:1380:1: W191 indentation contains tabs
name = 'redSandstoneStairs'
^
spock/mcmap/mapdata.py:1381:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1382:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1383:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1385:1: E302 expected 2 blank lines, found 1
@map_block(181)
^
spock/mcmap/mapdata.py:1387:1: W191 indentation contains tabs
display_name = 'Red Sandstone Double Slab'
^
spock/mcmap/mapdata.py:1388:1: W191 indentation contains tabs
name = 'redSandstoneDoubleSlab'
^
spock/mcmap/mapdata.py:1389:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1390:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1391:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1393:1: E302 expected 2 blank lines, found 1
@map_block(182)
^
spock/mcmap/mapdata.py:1395:1: W191 indentation contains tabs
display_name = 'Red Sandstone Slab'
^
spock/mcmap/mapdata.py:1396:1: W191 indentation contains tabs
name = 'redSandstoneSlab'
^
spock/mcmap/mapdata.py:1397:1: W191 indentation contains tabs
hardness = 0.8
^
spock/mcmap/mapdata.py:1398:1: W191 indentation contains tabs
material = MCM_MAT_ROCK
^
spock/mcmap/mapdata.py:1399:1: W191 indentation contains tabs
harvest_tools = (270, 274, 257, 278, 285)
^
spock/mcmap/mapdata.py:1401:1: E302 expected 2 blank lines, found 1
@map_block(183)
^
spock/mcmap/mapdata.py:1403:1: W191 indentation contains tabs
display_name = 'Spruce Fence Gate'
^
spock/mcmap/mapdata.py:1404:1: W191 indentation contains tabs
name = 'fenceGateSpruce'
^
spock/mcmap/mapdata.py:1405:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1406:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1408:1: E302 expected 2 blank lines, found 1
@map_block(184)
^
spock/mcmap/mapdata.py:1410:1: W191 indentation contains tabs
display_name = 'Birch Fence Gate'
^
spock/mcmap/mapdata.py:1411:1: W191 indentation contains tabs
name = 'fenceGateBirch'
^
spock/mcmap/mapdata.py:1412:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1413:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1415:1: E302 expected 2 blank lines, found 1
@map_block(185)
^
spock/mcmap/mapdata.py:1417:1: W191 indentation contains tabs
display_name = 'Jungle Fence Gate'
^
spock/mcmap/mapdata.py:1418:1: W191 indentation contains tabs
name = 'fenceGateJungle'
^
spock/mcmap/mapdata.py:1419:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1420:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1422:1: E302 expected 2 blank lines, found 1
@map_block(186)
^
spock/mcmap/mapdata.py:1424:1: W191 indentation contains tabs
display_name = 'Dark Oak Fence Gate'
^
spock/mcmap/mapdata.py:1425:1: W191 indentation contains tabs
name = 'fenceGateDarkOak'
^
spock/mcmap/mapdata.py:1426:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1427:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1429:1: E302 expected 2 blank lines, found 1
@map_block(187)
^
spock/mcmap/mapdata.py:1431:1: W191 indentation contains tabs
display_name = 'Acacia Fence Gate'
^
spock/mcmap/mapdata.py:1432:1: W191 indentation contains tabs
name = 'fenceGateAcacia'
^
spock/mcmap/mapdata.py:1433:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1434:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1436:1: E302 expected 2 blank lines, found 1
@map_block(188)
^
spock/mcmap/mapdata.py:1438:1: W191 indentation contains tabs
display_name = 'Spruce Fence'
^
spock/mcmap/mapdata.py:1439:1: W191 indentation contains tabs
name = 'fenceSpruce'
^
spock/mcmap/mapdata.py:1440:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1441:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1443:1: E302 expected 2 blank lines, found 1
@map_block(189)
^
spock/mcmap/mapdata.py:1445:1: W191 indentation contains tabs
display_name = 'Birch Fence'
^
spock/mcmap/mapdata.py:1446:1: W191 indentation contains tabs
name = 'fenceBirch'
^
spock/mcmap/mapdata.py:1447:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1448:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1450:1: E302 expected 2 blank lines, found 1
@map_block(190)
^
spock/mcmap/mapdata.py:1452:1: W191 indentation contains tabs
display_name = 'Jungle Fence'
^
spock/mcmap/mapdata.py:1453:1: W191 indentation contains tabs
name = 'fenceJungle'
^
spock/mcmap/mapdata.py:1454:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1455:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1457:1: E302 expected 2 blank lines, found 1
@map_block(191)
^
spock/mcmap/mapdata.py:1459:1: W191 indentation contains tabs
display_name = 'Dark Oak Fence'
^
spock/mcmap/mapdata.py:1460:1: W191 indentation contains tabs
name = 'fenceDarkOak'
^
spock/mcmap/mapdata.py:1461:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1462:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1464:1: E302 expected 2 blank lines, found 1
@map_block(192)
^
spock/mcmap/mapdata.py:1466:1: W191 indentation contains tabs
display_name = 'Acacia Fence'
^
spock/mcmap/mapdata.py:1467:1: W191 indentation contains tabs
name = 'fenceAcacia'
^
spock/mcmap/mapdata.py:1468:1: W191 indentation contains tabs
hardness = 2
^
spock/mcmap/mapdata.py:1469:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1471:1: E302 expected 2 blank lines, found 1
@map_block(193)
^
spock/mcmap/mapdata.py:1473:1: W191 indentation contains tabs
display_name = 'Spruce Door'
^
spock/mcmap/mapdata.py:1474:1: W191 indentation contains tabs
name = 'doorSpruce'
^
spock/mcmap/mapdata.py:1475:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1476:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1477:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1479:1: E302 expected 2 blank lines, found 1
@map_block(194)
^
spock/mcmap/mapdata.py:1481:1: W191 indentation contains tabs
display_name = 'Birch Door'
^
spock/mcmap/mapdata.py:1482:1: W191 indentation contains tabs
name = 'doorBirch'
^
spock/mcmap/mapdata.py:1483:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1484:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1485:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1487:1: E302 expected 2 blank lines, found 1
@map_block(195)
^
spock/mcmap/mapdata.py:1489:1: W191 indentation contains tabs
display_name = 'Jungle Door'
^
spock/mcmap/mapdata.py:1490:1: W191 indentation contains tabs
name = 'DoorJungle'
^
spock/mcmap/mapdata.py:1491:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1492:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1493:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1495:1: E302 expected 2 blank lines, found 1
@map_block(196)
^
spock/mcmap/mapdata.py:1497:1: W191 indentation contains tabs
display_name = 'Acacia Door'
^
spock/mcmap/mapdata.py:1498:1: W191 indentation contains tabs
name = 'doorAcacia'
^
spock/mcmap/mapdata.py:1499:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1500:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1501:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1503:1: E302 expected 2 blank lines, found 1
@map_block(197)
^
spock/mcmap/mapdata.py:1505:1: W191 indentation contains tabs
display_name = 'Dark Oak Door'
^
spock/mcmap/mapdata.py:1506:1: W191 indentation contains tabs
name = 'doorDarkOak'
^
spock/mcmap/mapdata.py:1507:1: W191 indentation contains tabs
hardness = 3
^
spock/mcmap/mapdata.py:1508:1: W191 indentation contains tabs
stack_size = 1
^
spock/mcmap/mapdata.py:1509:1: W191 indentation contains tabs
material = MCM_MAT_WOOD
^
spock/mcmap/mapdata.py:1514:1: E302 expected 2 blank lines, found 0
def map_biome(biome_id):
^
spock/mcmap/mapdata.py:1515:1: W191 indentation contains tabs
def inner(cl):
^
spock/mcmap/mapdata.py:1516:1: W191 indentation contains tabs
biomes[biome_id] = cl
^
spock/mcmap/mapdata.py:1517:1: W191 indentation contains tabs
cl.biome_id = biome_id
^
spock/mcmap/mapdata.py:1518:1: W191 indentation contains tabs
return cl
^
spock/mcmap/mapdata.py:1519:1: W191 indentation contains tabs
return inner
^
spock/mcmap/mapdata.py:1521:1: E302 expected 2 blank lines, found 1
def get_biome(biome_id):
^
spock/mcmap/mapdata.py:1522:1: W191 indentation contains tabs
return biomes[biome_id]() if biome_id in biomes else None
^
spock/mcmap/mapdata.py:1524:1: E302 expected 2 blank lines, found 1
class MapBiome:
^
spock/mcmap/mapdata.py:1525:1: W191 indentation contains tabs
name = 'Map Biome'
^
spock/mcmap/mapdata.py:1526:1: W191 indentation contains tabs
temperature = 0.0
^
spock/mcmap/mapdata.py:1528:1: E302 expected 2 blank lines, found 1
@map_biome(0)
^
spock/mcmap/mapdata.py:1530:1: W191 indentation contains tabs
name = 'Ocean'
^
spock/mcmap/mapdata.py:1531:1: W191 indentation contains tabs
temperature = 0.5
^
spock/mcmap/mapdata.py:1533:1: E302 expected 2 blank lines, found 1
@map_biome(1)
^
spock/mcmap/mapdata.py:1535:1: W191 indentation contains tabs
name = 'Plains'
^
spock/mcmap/mapdata.py:1536:1: W191 indentation contains tabs
temperature = 0.8
^
spock/mcmap/mapdata.py:1538:1: E302 expected 2 blank lines, found 1
@map_biome(2)
^
spock/mcmap/mapdata.py:1540:1: W191 indentation contains tabs
name = 'Desert'
^
spock/mcmap/mapdata.py:1541:1: W191 indentation contains tabs
temperature = 2
^
spock/mcmap/mapdata.py:1543:1: E302 expected 2 blank lines, found 1
@map_biome(3)
^
spock/mcmap/mapdata.py:1545:1: W191 indentation contains tabs
name = 'Extreme Hills'
^
spock/mcmap/mapdata.py:1546:1: W191 indentation contains tabs
temperature = 0.2
^
spock/mcmap/mapdata.py:1548:1: E302 expected 2 blank lines, found 1
@map_biome(4)
^
spock/mcmap/mapdata.py:1550:1: W191 indentation contains tabs
name = 'Forest'
^
spock/mcmap/mapdata.py:1551:1: W191 indentation contains tabs
temperature = 0.7
^
spock/mcmap/mapdata.py:1553:1: E302 expected 2 blank lines, found 1
@map_biome(5)
^
spock/mcmap/mapdata.py:1555:1: W191 indentation contains tabs
name = 'Taiga'
^
spock/mcmap/mapdata.py:1556:1: W191 indentation contains tabs
temperature = 0.05
^
spock/mcmap/mapdata.py:1558:1: E302 expected 2 blank lines, found 1
@map_biome(6)
^
spock/mcmap/mapdata.py:1560:1: W191 indentation contains tabs
name = 'Swampland'
^
spock/mcmap/mapdata.py:1561:1: W191 indentation contains tabs
temperature = 0.8
^
spock/mcmap/mapdata.py:1563:1: E302 expected 2 blank lines, found 1
@map_biome(7)
^
spock/mcmap/mapdata.py:1565:1: W191 indentation contains tabs
name = 'River'
^
spock/mcmap/mapdata.py:1566:1: W191 indentation contains tabs
temperature = 0.5
^
spock/mcmap/mapdata.py:1568:1: E302 expected 2 blank lines, found 1
@map_biome(8)
^
spock/mcmap/mapdata.py:1570:1: W191 indentation contains tabs
name = 'Hell'
^
spock/mcmap/mapdata.py:1571:1: W191 indentation contains tabs
temperature = 2
^
spock/mcmap/mapdata.py:1573:1: E302 expected 2 blank lines, found 1
@map_biome(9)
^
spock/mcmap/mapdata.py:1575:1: W191 indentation contains tabs
name = 'Sky'
^
spock/mcmap/mapdata.py:1576:1: W191 indentation contains tabs
temperature = 0.5
^
spock/mcmap/mapdata.py:1578:1: E302 expected 2 blank lines, found 1
@map_biome(10)
^
spock/mcmap/mapdata.py:1580:1: W191 indentation contains tabs
name = 'Frozen Ocean'
^
spock/mcmap/mapdata.py:1581:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1583:1: E302 expected 2 blank lines, found 1
@map_biome(11)
^
spock/mcmap/mapdata.py:1585:1: W191 indentation contains tabs
name = 'Frozen River'
^
spock/mcmap/mapdata.py:1586:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1588:1: E302 expected 2 blank lines, found 1
@map_biome(12)
^
spock/mcmap/mapdata.py:1590:1: W191 indentation contains tabs
name = 'Ice Plains'
^
spock/mcmap/mapdata.py:1591:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1593:1: E302 expected 2 blank lines, found 1
@map_biome(13)
^
spock/mcmap/mapdata.py:1595:1: W191 indentation contains tabs
name = 'Ice Mountains'
^
spock/mcmap/mapdata.py:1596:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1598:1: E302 expected 2 blank lines, found 1
@map_biome(14)
^
spock/mcmap/mapdata.py:1600:1: W191 indentation contains tabs
name = 'Mushroom Island'
^
spock/mcmap/mapdata.py:1601:1: W191 indentation contains tabs
temperature = 0.9
^
spock/mcmap/mapdata.py:1603:1: E302 expected 2 blank lines, found 1
@map_biome(15)
^
spock/mcmap/mapdata.py:1605:1: W191 indentation contains tabs
name = 'Mushroom Island Shore'
^
spock/mcmap/mapdata.py:1606:1: W191 indentation contains tabs
temperature = 0.9
^
spock/mcmap/mapdata.py:1608:1: E302 expected 2 blank lines, found 1
@map_biome(16)
^
spock/mcmap/mapdata.py:1610:1: W191 indentation contains tabs
name = 'Beach'
^
spock/mcmap/mapdata.py:1611:1: W191 indentation contains tabs
temperature = 0.8
^
spock/mcmap/mapdata.py:1613:1: E302 expected 2 blank lines, found 1
@map_biome(17)
^
spock/mcmap/mapdata.py:1615:1: W191 indentation contains tabs
name = 'Desert Hills'
^
spock/mcmap/mapdata.py:1616:1: W191 indentation contains tabs
temperature = 2
^
spock/mcmap/mapdata.py:1618:1: E302 expected 2 blank lines, found 1
@map_biome(18)
^
spock/mcmap/mapdata.py:1620:1: W191 indentation contains tabs
name = 'Forest Hills'
^
spock/mcmap/mapdata.py:1621:1: W191 indentation contains tabs
temperature = 0.7
^
spock/mcmap/mapdata.py:1623:1: E302 expected 2 blank lines, found 1
@map_biome(19)
^
spock/mcmap/mapdata.py:1625:1: W191 indentation contains tabs
name = 'Taiga Hills'
^
spock/mcmap/mapdata.py:1626:1: W191 indentation contains tabs
temperature = 0.05
^
spock/mcmap/mapdata.py:1628:1: E302 expected 2 blank lines, found 1
@map_biome(20)
^
spock/mcmap/mapdata.py:1630:1: W191 indentation contains tabs
name = 'Extreme Hills Edge'
^
spock/mcmap/mapdata.py:1631:1: W191 indentation contains tabs
temperature = 0.2
^
spock/mcmap/mapdata.py:1633:1: E302 expected 2 blank lines, found 1
@map_biome(21)
^
spock/mcmap/mapdata.py:1635:1: W191 indentation contains tabs
name = 'Jungle'
^
spock/mcmap/mapdata.py:1636:1: W191 indentation contains tabs
temperature = 1.2
^
spock/mcmap/mapdata.py:1638:1: E302 expected 2 blank lines, found 1
@map_biome(22)
^
spock/mcmap/mapdata.py:1640:1: W191 indentation contains tabs
name = 'Jungle Hills'
^
spock/mcmap/mapdata.py:1641:1: W191 indentation contains tabs
temperature = 1.2
^
spock/mcmap/mapdata.py:1643:1: E302 expected 2 blank lines, found 1
@map_biome(23)
^
spock/mcmap/mapdata.py:1645:1: W191 indentation contains tabs
name = 'Jungle Edge'
^
spock/mcmap/mapdata.py:1646:1: W191 indentation contains tabs
temperature = 0.95
^
spock/mcmap/mapdata.py:1648:1: E302 expected 2 blank lines, found 1
@map_biome(24)
^
spock/mcmap/mapdata.py:1650:1: W191 indentation contains tabs
name = 'Deep Ocean'
^
spock/mcmap/mapdata.py:1651:1: W191 indentation contains tabs
temperature = 0.5
^
spock/mcmap/mapdata.py:1653:1: E302 expected 2 blank lines, found 1
@map_biome(25)
^
spock/mcmap/mapdata.py:1655:1: W191 indentation contains tabs
name = 'Stone Beach'
^
spock/mcmap/mapdata.py:1656:1: W191 indentation contains tabs
temperature = 0.2
^
spock/mcmap/mapdata.py:1658:1: E302 expected 2 blank lines, found 1
@map_biome(26)
^
spock/mcmap/mapdata.py:1660:1: W191 indentation contains tabs
name = 'Cold Beach'
^
spock/mcmap/mapdata.py:1661:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1663:1: E302 expected 2 blank lines, found 1
@map_biome(27)
^
spock/mcmap/mapdata.py:1665:1: W191 indentation contains tabs
name = 'Birch Forest'
^
spock/mcmap/mapdata.py:1666:1: W191 indentation contains tabs
temperature = 0.6
^
spock/mcmap/mapdata.py:1668:1: E302 expected 2 blank lines, found 1
@map_biome(28)
^
spock/mcmap/mapdata.py:1670:1: W191 indentation contains tabs
name = 'Birch Forest Hills'
^
spock/mcmap/mapdata.py:1671:1: W191 indentation contains tabs
temperature = 0.6
^
spock/mcmap/mapdata.py:1673:1: E302 expected 2 blank lines, found 1
@map_biome(29)
^
spock/mcmap/mapdata.py:1675:1: W191 indentation contains tabs
name = 'Roofed Forest'
^
spock/mcmap/mapdata.py:1676:1: W191 indentation contains tabs
temperature = 0.7
^
spock/mcmap/mapdata.py:1678:1: E302 expected 2 blank lines, found 1
@map_biome(30)
^
spock/mcmap/mapdata.py:1680:1: W191 indentation contains tabs
name = 'Cold Taiga'
^
spock/mcmap/mapdata.py:1681:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1683:1: E302 expected 2 blank lines, found 1
@map_biome(31)
^
spock/mcmap/mapdata.py:1685:1: W191 indentation contains tabs
name = 'Cold Taiga Hills'
^
spock/mcmap/mapdata.py:1686:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1688:1: E302 expected 2 blank lines, found 1
@map_biome(32)
^
spock/mcmap/mapdata.py:1690:1: W191 indentation contains tabs
name = 'Mega Taiga'
^
spock/mcmap/mapdata.py:1691:1: W191 indentation contains tabs
temperature = 0.3
^
spock/mcmap/mapdata.py:1693:1: E302 expected 2 blank lines, found 1
@map_biome(33)
^
spock/mcmap/mapdata.py:1695:1: W191 indentation contains tabs
name = 'Mega Taiga Hills'
^
spock/mcmap/mapdata.py:1696:1: W191 indentation contains tabs
temperature = 0.3
^
spock/mcmap/mapdata.py:1698:1: E302 expected 2 blank lines, found 1
@map_biome(34)
^
spock/mcmap/mapdata.py:1700:1: W191 indentation contains tabs
name = 'Extreme Hills+'
^
spock/mcmap/mapdata.py:1701:1: W191 indentation contains tabs
temperature = 0.2
^
spock/mcmap/mapdata.py:1703:1: E302 expected 2 blank lines, found 1
@map_biome(35)
^
spock/mcmap/mapdata.py:1705:1: W191 indentation contains tabs
name = 'Savanna'
^
spock/mcmap/mapdata.py:1706:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1708:1: E302 expected 2 blank lines, found 1
@map_biome(36)
^
spock/mcmap/mapdata.py:1710:1: W191 indentation contains tabs
name = 'Savanna Plateau'
^
spock/mcmap/mapdata.py:1711:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1713:1: E302 expected 2 blank lines, found 1
@map_biome(37)
^
spock/mcmap/mapdata.py:1715:1: W191 indentation contains tabs
name = 'Mesa'
^
spock/mcmap/mapdata.py:1716:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1718:1: E302 expected 2 blank lines, found 1
@map_biome(38)
^
spock/mcmap/mapdata.py:1720:1: W191 indentation contains tabs
name = 'Mesa Plateau F'
^
spock/mcmap/mapdata.py:1721:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1723:1: E302 expected 2 blank lines, found 1
@map_biome(39)
^
spock/mcmap/mapdata.py:1725:1: W191 indentation contains tabs
name = 'Mesa Plateau'
^
spock/mcmap/mapdata.py:1726:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1728:1: E302 expected 2 blank lines, found 1
@map_biome(129)
^
spock/mcmap/mapdata.py:1730:1: W191 indentation contains tabs
name = 'Sunflower Plains'
^
spock/mcmap/mapdata.py:1731:1: W191 indentation contains tabs
temperature = 0.8
^
spock/mcmap/mapdata.py:1733:1: E302 expected 2 blank lines, found 1
@map_biome(130)
^
spock/mcmap/mapdata.py:1735:1: W191 indentation contains tabs
name = 'Desert M'
^
spock/mcmap/mapdata.py:1736:1: W191 indentation contains tabs
temperature = 2
^
spock/mcmap/mapdata.py:1738:1: E302 expected 2 blank lines, found 1
@map_biome(131)
^
spock/mcmap/mapdata.py:1740:1: W191 indentation contains tabs
name = 'Extreme Hills M'
^
spock/mcmap/mapdata.py:1741:1: W191 indentation contains tabs
temperature = 0.2
^
spock/mcmap/mapdata.py:1743:1: E302 expected 2 blank lines, found 1
@map_biome(132)
^
spock/mcmap/mapdata.py:1745:1: W191 indentation contains tabs
name = 'Flower Forest'
^
spock/mcmap/mapdata.py:1746:1: W191 indentation contains tabs
temperature = 0.7
^
spock/mcmap/mapdata.py:1748:1: E302 expected 2 blank lines, found 1
@map_biome(133)
^
spock/mcmap/mapdata.py:1750:1: W191 indentation contains tabs
name = 'Taiga M'
^
spock/mcmap/mapdata.py:1751:1: W191 indentation contains tabs
temperature = 0.25
^
spock/mcmap/mapdata.py:1753:1: E302 expected 2 blank lines, found 1
@map_biome(134)
^
spock/mcmap/mapdata.py:1755:1: W191 indentation contains tabs
name = 'Swampland M'
^
spock/mcmap/mapdata.py:1756:1: W191 indentation contains tabs
temperature = 0.8
^
spock/mcmap/mapdata.py:1758:1: E302 expected 2 blank lines, found 1
@map_biome(140)
^
spock/mcmap/mapdata.py:1760:1: W191 indentation contains tabs
name = 'Ice Plains Spikes'
^
spock/mcmap/mapdata.py:1761:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1763:1: E302 expected 2 blank lines, found 1
@map_biome(149)
^
spock/mcmap/mapdata.py:1765:1: W191 indentation contains tabs
name = 'Jungle M'
^
spock/mcmap/mapdata.py:1766:1: W191 indentation contains tabs
temperature = 0.95
^
spock/mcmap/mapdata.py:1768:1: E302 expected 2 blank lines, found 1
@map_biome(151)
^
spock/mcmap/mapdata.py:1770:1: W191 indentation contains tabs
name = 'Jungle Edge M'
^
spock/mcmap/mapdata.py:1771:1: W191 indentation contains tabs
temperature = 0.95
^
spock/mcmap/mapdata.py:1773:1: E302 expected 2 blank lines, found 1
@map_biome(155)
^
spock/mcmap/mapdata.py:1775:1: W191 indentation contains tabs
name = 'Birch Forest M'
^
spock/mcmap/mapdata.py:1776:1: W191 indentation contains tabs
temperature = 0.6
^
spock/mcmap/mapdata.py:1778:1: E302 expected 2 blank lines, found 1
@map_biome(156)
^
spock/mcmap/mapdata.py:1780:1: W191 indentation contains tabs
name = 'Birch Forest Hills M'
^
spock/mcmap/mapdata.py:1781:1: W191 indentation contains tabs
temperature = 0.6
^
spock/mcmap/mapdata.py:1783:1: E302 expected 2 blank lines, found 1
@map_biome(157)
^
spock/mcmap/mapdata.py:1785:1: W191 indentation contains tabs
name = 'Roofed Forest M'
^
spock/mcmap/mapdata.py:1786:1: W191 indentation contains tabs
temperature = 0.7
^
spock/mcmap/mapdata.py:1788:1: E302 expected 2 blank lines, found 1
@map_biome(158)
^
spock/mcmap/mapdata.py:1790:1: W191 indentation contains tabs
name = 'Cold Taiga M'
^
spock/mcmap/mapdata.py:1791:1: W191 indentation contains tabs
temperature = 0
^
spock/mcmap/mapdata.py:1793:1: E302 expected 2 blank lines, found 1
@map_biome(160)
^
spock/mcmap/mapdata.py:1795:1: W191 indentation contains tabs
name = 'Mega Spruce Taiga'
^
spock/mcmap/mapdata.py:1796:1: W191 indentation contains tabs
temperature = 0.25
^
spock/mcmap/mapdata.py:1798:1: E302 expected 2 blank lines, found 1
@map_biome(161)
^
spock/mcmap/mapdata.py:1800:1: W191 indentation contains tabs
name = 'Mega Spruce Taiga Hills'
^
spock/mcmap/mapdata.py:1801:1: W191 indentation contains tabs
temperature = 0.25
^
spock/mcmap/mapdata.py:1803:1: E302 expected 2 blank lines, found 1
@map_biome(162)
^
spock/mcmap/mapdata.py:1805:1: W191 indentation contains tabs
name = 'Extreme Hills+ M'
^
spock/mcmap/mapdata.py:1806:1: W191 indentation contains tabs
temperature = 0.2
^
spock/mcmap/mapdata.py:1808:1: E302 expected 2 blank lines, found 1
@map_biome(163)
^
spock/mcmap/mapdata.py:1810:1: W191 indentation contains tabs
name = 'Savanna M'
^
spock/mcmap/mapdata.py:1811:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1813:1: E302 expected 2 blank lines, found 1
@map_biome(164)
^
spock/mcmap/mapdata.py:1815:1: W191 indentation contains tabs
name = 'Savanna Plateau M'
^
spock/mcmap/mapdata.py:1816:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1818:1: E302 expected 2 blank lines, found 1
@map_biome(165)
^
spock/mcmap/mapdata.py:1820:1: W191 indentation contains tabs
name = 'Mesa (Bryce)'
^
spock/mcmap/mapdata.py:1821:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1823:1: E302 expected 2 blank lines, found 1
@map_biome(166)
^
spock/mcmap/mapdata.py:1825:1: W191 indentation contains tabs
name = 'Mesa Plateau F M'
^
spock/mcmap/mapdata.py:1826:1: W191 indentation contains tabs
temperature = 1.0
^
spock/mcmap/mapdata.py:1828:1: E302 expected 2 blank lines, found 1
@map_biome(167)
^
spock/mcmap/mapdata.py:1830:1: W191 indentation contains tabs
name = 'Mesa Plateau M'
^
spock/mcmap/mapdata.py:1831:1: W191 indentation contains tabs
temperature = 1.0
^
8 E101 indentation contains mixed spaces and tabs
4 E111 indentation is not a multiple of four
5 E122 continuation line missing indentation or outdented
1 E124 closing bracket does not match visual indentation
5 E127 continuation line over-indented for visual indent
12 E128 continuation line under-indented for visual indent
40 E131 continuation line unaligned for hanging indent
3 E201 whitespace after '('
3 E202 whitespace before ')'
179 E203 whitespace before ','
138 E221 multiple spaces before operator
4 E222 multiple spaces after operator
11 E225 missing whitespace around operator
74 E227 missing whitespace around bitwise or shift operator
66 E231 missing whitespace after ','
80 E251 unexpected spaces around keyword / parameter equals
23 E261 at least two spaces before inline comment
21 E262 inline comment should start with '# '
429 E265 block comment should start with '# '
1 E272 multiple spaces before keyword
26 E301 expected 1 blank line, found 0
417 E302 expected 2 blank lines, found 1
4 E303 too many blank lines (2)
68 E501 line too long (82 > 79 characters)
10 E701 multiple statements on one line (colon)
1 E703 statement ends with a semicolon
18 E711 comparison to None should be 'if cond is None:'
2 E712 comparison to True should be 'if cond is True:' or 'if cond:'
46 F401 'mcdata' imported but unused
5 F821 undefined name 'data'
1 F841 local variable 'e' is assigned to but never used
35 I100 Imports statements are in the wrong order. from spock.mcp should be before from spock.utils
12 I101 Imported names are in the wrong order. Should be Info, pl_announce, Position
14 I201 Missing newline before sections or imports.
13 N801 class names should use CapWords convention
8 N802 function name should be lowercase
2 N803 argument name should be lowercase
1 N806 variable in function should be lowercase
1 N812 lowercase imported as non lowercase
5105 W191 indentation contains tabs
5 W291 trailing whitespace
1 W292 no newline at end of file
1 W391 blank line at end of file
ERROR: InvocationError: '/home/javier/proyectos/minecraft/spockbot/.tox/flake8/bin/flake8 --show-source --statistics spock tests'
___________________________________ summary ____________________________________
py27: commands succeeded
py30: commands succeeded
py31: commands succeeded
ERROR: py32: InterpreterNotFound: python3.2
ERROR: py33: InterpreterNotFound: python3.3
py34: commands succeeded
ERROR: flake8: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment