Skip to content

Commit

Permalink
Solve test failures due to flake8 version
Browse files Browse the repository at this point in the history
The old flake8 version(greater than 5) caused many failures. I
force-downgraded flake8 to a version less than 5.

See tholo/pytest-flake8#87 for more
information.
  • Loading branch information
MSK61 committed Aug 12, 2022
1 parent 8d3a4c4 commit d168617
Show file tree
Hide file tree
Showing 48 changed files with 391 additions and 249 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
6 changes: 3 additions & 3 deletions .vscode/.ropeproject/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/************************************************************
*
* Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
* Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
* This file is part of processorSim.
*
* processorSim is free software: you can redistribute it and/or modify
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pytest-flake8 = "*"
nbconvert = "*"
ipykernel = "*"
types-pyyaml = "*"
flake8 = "<5"

[packages]
networkx = "*"
Expand Down
393 changes: 268 additions & 125 deletions Pipfile.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/unified memory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": [
"############################################################\n",
"#\n",
"# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi\n",
"# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi\n",
"# This file is part of processorSim.\n",
"#\n",
"# processorSim is free software: you can redistribute it and/or modify\n",
Expand Down Expand Up @@ -37,8 +37,8 @@
"#\n",
"# author: Mohammed El-Afifi (ME)\n",
"#\n",
"# environment: Visual Studdio Code 1.54.3, python 3.8.7, Fedora release\n",
"# 33 (Thirty Three)\n",
"# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release\n",
"# 36 (Thirty Six)\n",
"#\n",
"# notes: This is a private program.\n",
"#\n",
Expand Down
2 changes: 1 addition & 1 deletion src/.pylintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
6 changes: 3 additions & 3 deletions src/container_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/hw_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
2 changes: 1 addition & 1 deletion src/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down
6 changes: 3 additions & 3 deletions src/processorSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -38,8 +38,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.61.1, python 3.9.7, Fedora release
# 34 (Thirty Four)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/processor_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.61.1, python 3.9.7, Fedora release
# 34 (Thirty Four)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/processor_utils/_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -32,8 +32,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.61.1, python 3.9.7, Fedora release
# 34 (Thirty Four)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/processor_utils/_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/processor_utils/_port_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/processor_utils/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -32,8 +32,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/processor_utils/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.54.3, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/program_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/program_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/reg_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.52.1, python 3.8.7, Fedora release
# 33 (Thirty Three)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
6 changes: 3 additions & 3 deletions src/sim_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

############################################################
#
# Copyright 2017, 2019, 2020, 2021 Mohammed El-Afifi
# Copyright 2017, 2019, 2020, 2021, 2022 Mohammed El-Afifi
# This file is part of processorSim.
#
# processorSim is free software: you can redistribute it and/or modify
Expand All @@ -31,8 +31,8 @@
#
# author: Mohammed El-Afifi (ME)
#
# environment: Visual Studdio Code 1.61.1, python 3.9.7, Fedora release
# 34 (Thirty Four)
# environment: Visual Studdio Code 1.70.1, python 3.9.7, Fedora release
# 36 (Thirty Six)
#
# notes: This is a private program.
#
Expand Down
Loading

0 comments on commit d168617

Please sign in to comment.