Skip to content

Commit

Permalink
Merge pull request #64 from mcdonnnj/improvement/use_black_everywhere
Browse files Browse the repository at this point in the history
Use `black` on the entire project
  • Loading branch information
IanLee1521 authored Aug 23, 2022
2 parents 37bfdd3 + ad95de8 commit acaed67
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test:
bandit -r scraper/
flake8 scraper/
black --check scraper/
black --check .
markdownlint '**/*.md'
pyflakes scraper

Expand Down
4 changes: 2 additions & 2 deletions scripts/org_to_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def print_org_members_without_2fa(org_name="llnl"):

for user in org.members(filter="2fa_disabled"):
emails = {
c['author']['email']
c["author"]["email"]
for e in user.events()
if e.type == "PushEvent"
for c in e.payload['commits']
for c in e.payload["commits"]
}
emails = {e for e in emails if "@llnl.gov" in e}
if emails:
Expand Down
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@
url="https://github.com/llnl/scraper",
packages=find_packages(),
install_requires=install_reqs,
entry_points={"console_scripts": ["scraper = scraper.gen_code_gov_json:main",]},
scripts=["scripts/codegov_compute_hours.py",],
entry_points={
"console_scripts": [
"scraper = scraper.gen_code_gov_json:main",
]
},
scripts=[
"scripts/codegov_compute_hours.py",
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down

0 comments on commit acaed67

Please sign in to comment.