Skip to content

Commit

Permalink
autopep
Browse files Browse the repository at this point in the history
  • Loading branch information
trincaog committed Dec 19, 2023
1 parent 4e4ed6a commit 19d026a
Show file tree
Hide file tree
Showing 20 changed files with 1,147 additions and 1,032 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ repos:
- id: end-of-file-fixer
- repo: local
hooks:
- id: autopep
name: autopep
entry: "autopep8 --exit-code --diff --recursive ."
language: system
types: [python]
require_serial: true
args: []
- id: pylint
name: pylint
entry: pylint
Expand Down
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ disable=raw-checker-failed,
too-many-locals,
too-many-instance-attributes,
too-many-arguments,
duplicate-code
duplicate-code,
too-many-return-statements

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
6 changes: 4 additions & 2 deletions examples/cube3x3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import magiccube

# Create the cube in solved state
cube = magiccube.Cube(3,"YYYYYYYYYRRRRRRRRRGGGGGGGGGOOOOOOOOOBBBBBBBBBWWWWWWWWW")
cube = magiccube.Cube(
3, "YYYYYYYYYRRRRRRRRRGGGGGGGGGOOOOOOOOOBBBBBBBBBWWWWWWWWW")

# Print the cube
print(cube)
Expand All @@ -13,7 +14,8 @@
print(cube)

# Create the cube with a fixed state
cube = magiccube.Cube(3, "YYYYYYGGGGGWRRRRRROOOGGWGGWYBBOOOOOORRRYBBYBBWWBWWBWWB")
cube = magiccube.Cube(
3, "YYYYYYGGGGGWRRRRRROOOGGWGGWYBBOOOOOORRRYBBYBBWWBWWBWWB")

# Reset to the initial position
cube.reset()
Expand Down
2 changes: 1 addition & 1 deletion examples/cube4x4.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import magiccube

# Create the cube
cube = magiccube.Cube(4,state="""
cube = magiccube.Cube(4, state="""
YYYYYYYYYYYYGGGG
GGGWRRRRRRRRRRRR
OOOOGGGWGGGWGGGW
Expand Down
Loading

0 comments on commit 19d026a

Please sign in to comment.