Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pre-commit fixes and flake8 config #15

Merged
merged 3 commits into from
Jul 14, 2022
Merged

Conversation

vjeeva
Copy link
Contributor

@vjeeva vjeeva commented Jul 14, 2022

No description provided.

andrewthetechie and others added 2 commits July 14, 2022 10:10
This adds some new entries to pre-commit to help on this project. It
also adds a few supporting files:

* .prettierignore - like gitignore/dockerignore, but for prettier which
  formats files. This ignores all files in the .github folder
* .github/workflows/constraints.txt - This is a requirements.txt file
  for the base tools used in the repo. It defines pip, poetry, and
  virtualenv versions

The pre-commit runs the following checks:

* black - automatic code formatting
* check-added-large-files - Tries to prevent checking large
  files/binaries into git
* check-toml - Lints toml files (pyproject.toml)
* check-yaml - Lints yaml files
* end-of-file-fixer - Makes sure all files end in a new line
* flake8 - python style linting
* pyupgrade - automatically upgrades python syntax for newer versions of
  python. Currently set for python 3.7 and greater
* reoder-python-imports - sorts python imports in python files into
  groups
* trailing-whitespace - trims trailing whitespaces from lines
* prettier - generic file formatter

I added dev requirements to pyproject.toml for all of these pre-commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants