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

Add locate command #1126

Merged
merged 4 commits into from
Dec 22, 2023
Merged

Add locate command #1126

merged 4 commits into from
Dec 22, 2023

Conversation

kiritofeng
Copy link
Member

  • Add locate command: output is
Skipped self-tests

Running local judge...

/tmp/problems/a
/tmp/problems/b
c is not a valid problem, skipping

for file structure

/tmp/problems » tree
.
├── a
│   └── init.yml
└── b
    └── init.yml

3 directories, 2 files
  • Add typing annotations to dmoj/judgeenv.py
  • Make get_problem_root return None if the problem does not exist
  • Fix typo exposed in dmoj/commands/resubmit.py exposed by typing dmoj/judgeenv.py
  • Fix typing annotation in dmoj/packet.py: os.path.getmtime() returns a float not int.

@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0f534a0) 81.91% compared to head (433e9f5) 81.30%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1126      +/-   ##
==========================================
- Coverage   81.91%   81.30%   -0.61%     
==========================================
  Files         141      141              
  Lines        5026     5028       +2     
==========================================
- Hits         4117     4088      -29     
- Misses        909      940      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@quantum5 quantum5 left a comment

Choose a reason for hiding this comment

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

Seems mostly legit.

dmoj/tests/test_globs.py Outdated Show resolved Hide resolved
@kiritofeng kiritofeng merged commit 8d8d452 into master Dec 22, 2023
8 of 18 checks passed
@kiritofeng kiritofeng deleted the locate branch December 22, 2023 00:28
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.

3 participants