Skip to content

TASK: Ensure PEP 8 compliance (#82)#94

Closed
PFCAaron12 wants to merge 2 commits intoTheGittyPerson:mainfrom
PFCAaron12:style/ensure-pep8
Closed

TASK: Ensure PEP 8 compliance (#82)#94
PFCAaron12 wants to merge 2 commits intoTheGittyPerson:mainfrom
PFCAaron12:style/ensure-pep8

Conversation

@PFCAaron12
Copy link
Copy Markdown
Contributor

[📋 Completed Task Template]

Changes

the_town.py:
-Fixed the spacing on each side of the = operator for the instance variables
-Add an instance of myself

theperson/person.py:
-no changes

theperson/goals:
-Changed 'initialise' to 'initialize' to create consistency with other files that used 'initalize'
-Edited the top docstring by putting the last word on the next line to comply with PEP 8's 72 character per line max when it comes to comments and docstrings

theperson/mood.py
-Changed 'initialise' to 'initialize' to create consistency with other files that used 'initalize'
-Edited the top docstring by putting the last word on the next line to comply with PEP 8's 72 character per line max when it comes to comments and docstrings

Closes #82

@github-actions github-actions bot added the task This is a task issue / PR completing a task label Mar 29, 2026
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening your first PR on this repository! Make sure you've read our contributing guidelines — it's very important to us.
Key things to remember when contributing to this repo:

  • Avoid touching others' code when possible
  • Rebase > Merge; When updating your PR branch, always use a rebase and resolve conflicts
  • Try to follow PEP 8
  • Avoid using AI to code, comments, or issue/PR descriptions

@TheGittyPerson
Copy link
Copy Markdown
Owner

TheGittyPerson commented Mar 29, 2026

Hi! Thanks for the contribution; I will review your changes in a bit. But first, as mentioned in the contributing guidelines, you should avoid using a merge to update your PR branch. Please reset your branch to the commit right before the merge commit, then rebase your branch onto main instead before we proceed. Thanks!

@TheGittyPerson TheGittyPerson added refactor Code refactors that do not or barely affect behavior style Code formatting or style fixes and removed refactor Code refactors that do not or barely affect behavior labels Mar 29, 2026
@TheGittyPerson TheGittyPerson self-requested a review March 30, 2026 01:29
Copy link
Copy Markdown
Owner

@TheGittyPerson TheGittyPerson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After addressing the above comment:

Comment thread the_town.py
Comment thread the_town.py
profile=Profile(name="Syed Abdul Aman", gender="male"),
professional=Professional(occupation="Generative AI Developer"),
profile = Profile(name="Syed Abdul Aman", gender="male"),
professional = Professional(occupation="Generative AI Developer"),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For keyword arguments, the equal sign should not have spaces around it: https://peps.python.org/pep-0008/#other-recommendations

@PFCAaron12 PFCAaron12 closed this by deleting the head repository Mar 30, 2026
@PFCAaron12
Copy link
Copy Markdown
Contributor Author

I have made the first change which is creating a new branch, added myself to the town, and created a pull request for it. Pull request #95.

@PFCAaron12
Copy link
Copy Markdown
Contributor Author

I have made the second change and redid the PEP 8 task. TASK: Ensure PEP 8 compliance (#82) [#96]. It is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

style Code formatting or style fixes task This is a task issue / PR completing a task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TASK: Ensure PEP 8 compliance

2 participants