Skip to content

Commit

Permalink
Run Black over fiture
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 26, 2023
1 parent 37b98ae commit 114fff8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# # Adapted from: https://github.com/PyCQA/pylint/blob/b70d2abd7fabe9bfd735a30b593b9cd5eaa36194/tests/functional/g/globals.py
# Adapted from:
# https://github.com/PyCQA/pylint/blob/b70d2abd7fabe9bfd735a30b593b9cd5eaa36194/tests/functional/g/globals.py

CONSTANT = 1


def FUNC():
pass

Expand Down Expand Up @@ -54,7 +57,7 @@ def CONSTANT():

def override_func():
"""Overriding a function should only throw a global statement error"""
global FUNC # [global-statement]
global FUNC # [global-statement]

def FUNC():
pass
Expand All @@ -66,7 +69,7 @@ def override_class():
"""Overriding a class should only throw a global statement error"""
global CLASS # [global-statement]

class CLASS():
class CLASS:
pass

CLASS()
Original file line number Diff line number Diff line change
Expand Up @@ -6,87 +6,87 @@ expression: diagnostics
GlobalStatement:
name: CONSTANT
location:
row: 14
row: 17
column: 4
end_location:
row: 14
row: 17
column: 19
fix: ~
parent: ~
- kind:
GlobalStatement:
name: sys
location:
row: 21
row: 24
column: 4
end_location:
row: 21
row: 24
column: 14
fix: ~
parent: ~
- kind:
GlobalStatement:
name: namedtuple
location:
row: 27
row: 30
column: 4
end_location:
row: 27
row: 30
column: 21
fix: ~
parent: ~
- kind:
GlobalStatement:
name: CONSTANT
location:
row: 33
row: 36
column: 4
end_location:
row: 33
row: 36
column: 19
fix: ~
parent: ~
- kind:
GlobalStatement:
name: CONSTANT
location:
row: 40
row: 43
column: 4
end_location:
row: 40
row: 43
column: 19
fix: ~
parent: ~
- kind:
GlobalStatement:
name: CONSTANT
location:
row: 47
row: 50
column: 4
end_location:
row: 47
row: 50
column: 19
fix: ~
parent: ~
- kind:
GlobalStatement:
name: FUNC
location:
row: 57
row: 60
column: 4
end_location:
row: 57
row: 60
column: 15
fix: ~
parent: ~
- kind:
GlobalStatement:
name: CLASS
location:
row: 67
row: 70
column: 4
end_location:
row: 67
row: 70
column: 16
fix: ~
parent: ~
Expand Down

0 comments on commit 114fff8

Please sign in to comment.